multiple statements in the debugger

Discussion in 'Perl Misc' started by avilella@gmail.com, Jun 14, 2006.

  1. Guest

    Hi all,

    I am using the perl debugger under Emacs, and for a long time I have
    wondered if
    there is a way to do trigger more than one statement at the same line.

    For example:

    Let's say I have a breakpoint at a place in my code, and at some point
    I want to do a:

    DB<2> c

    and after that I want to print the contents of something, like:

    DB<2> x @foo

    and I want to do this all over again, and again.

    Is there a way to do that in one line?

    Something like:

    DB<2> c ; x @foo

    At some point, then I will be able to do something like:

    DB<2> c ; x @foo; c ; x @foo2; c x @foo3 ; c; x @foo4; n; x @bar; n; n;
    x @bar2

    or anything more complicated...

    I'm sure there is a Perl/Emacs guru out there that knows how to do
    that, in a way or another.

    Thanks in advance,

    Bests,

    Albert.
     
    , Jun 14, 2006
    #1
    1. Advertisements

Want to reply to this thread or ask your own question?

It takes just 2 minutes to sign up (and it's free!). Just click the sign up button to choose a username and then you can ask your own questions on the forum.
Similar Threads
  1. Neil Zanella
    Replies:
    8
    Views:
    1,465
    mfmehdi
    Oct 20, 2006
  2. Joe via DotNetMonster.com

    Multiple Select Statements in resultset

    Joe via DotNetMonster.com, Mar 26, 2005, in forum: ASP .Net
    Replies:
    3
    Views:
    8,412
    Jim via DotNetMonster.com
    Mar 27, 2005
  3. Harry George
    Replies:
    6
    Views:
    670
    Bart Nessux
    Feb 23, 2004
  4. Vince
    Replies:
    12
    Views:
    967
    Martin Gregorie
    Jan 21, 2008
  5. John Crichton
    Replies:
    6
    Views:
    452
    John Crichton
    Jul 12, 2010
  6. Replies:
    1
    Views:
    163
    Xicheng Jia
    Jun 15, 2006
  7. Robert Oschler
    Replies:
    1
    Views:
    403
    Mcginkel
    Sep 5, 2005
  8. aflat362
    Replies:
    7
    Views:
    490
    naixn
    Dec 7, 2006
Loading...