Beefy Boxes and Bandwidth Generously Provided by pair Networks
We don't bite newbies here... much
 
PerlMonks  

Re: I usually debug via...

by jmcnamara (Monsignor)
on Feb 15, 2005 at 10:11 UTC ( #431094=note: print w/ replies, xml ) Need Help??


in reply to I usually debug via...


I use perldb via emacs.

I try to avoid bugs by thinking about what I'm coding and writing tests. But everyone is fallible.

--
John.


Comment on Re: I usually debug via...
Re^2: I usually debug via...
by Courage (Parson) on Feb 15, 2005 at 17:49 UTC
    Do you mean, that emacs supports step-by-step debugging for Perl, or it is your own chortcut/copy-pasto circuit?

    In case your technique is supported for emacs, then it is a thing that Vim can not do, but emacsers easily do; am I right? What other languages also supported?

    (I am not going to start discussion about what editor is better)


      The Emacs perl debugger is available via the GUD, the Grand Unified Debugger and cperl-mode.

      It looks a little like this.

      --
      John.

      then it is a thing that Vim can not do, but emacsers easily do; am I right?

      There are a *lot* of such things.

        You are behind the times. Vim has been able to embed Perl, Python and Ruby for a while. There's a Vim plugin using the Perl interpreter to turn Vim into an IRC client, f.ex. One of my pet projects uses the Perl interpreter and Gtk2 to add some minor IDE-ish features to gvim/gtk+.

        Makeshifts last the longest.

      it is a thing that Vim can not do, but emacsers easily do; am I right?

      No. Vim can embed Perl, Python and Ruby. You can do anything with Vim that you can do with Emacs.

      Makeshifts last the longest.

        Actually I know that vim can embed perl. More to that, I, personally, write a number of vim scripts with perl, and found this technology extremely powerfull.

        To say, I saw how someone implements in VIM script a bubble-sort, to save people from feeding lines to 'sort' external program (it is not always available).
        Needless to say, this is just one line in Perl.
        I do SGML stuff using Perl from inside VIM scripts, among other things.

        But VIM probably do not allow step-by-step debugging like Emacs, due to its intention to be compact and not part of OS.

        I saw somewhere that "emacs is a good OS but lacks editing capabilities"

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://431094]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others perusing the Monastery: (6)
As of 2014-10-20 05:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    For retirement, I am banking on:










    Results (72 votes), past polls