Emacs debugger and perl fork

Discussion in 'Perl Misc' started by Kelly Corcam, Aug 22, 2003.

  1. Kelly Corcam

    Kelly Corcam Guest

    Does anyone know how to use emacs
    perl debugger to debug a forked child
    process? I want to be able to open
    another emacs window for each child
    process so that I can debug it.

    Is this possible?


    Thanks,
    Kelly
     
    Kelly Corcam, Aug 22, 2003
    #1
    1. Advertising

  2. Kelly Corcam

    Peter Scott Guest

    In article <>,
    (Kelly Corcam) writes:
    >Does anyone know how to use emacs
    >perl debugger to debug a forked child
    >process? I want to be able to open
    >another emacs window for each child
    >process so that I can debug it.
    >
    >Is this possible?


    Not in emacs. There is only one circumstance under which you
    can run the debugger on a program that forks, and that is
    when the debugger is running in an xterm (and IIRC the TERM
    environment var must be set to 'xterm'). Then when the fork
    happens another xterm will open with a debugger prompt for
    debugging the child. You shouldn't find it any great
    inconvenience to use xterm instead of emacs.

    Under any other circumstance, running the debugger on a
    program when it forks is disastrous. You get one terminal
    talking to multiple processes and you will be lucky if
    you can just figure out how to get out of them and clean
    up.

    --
    Peter Scott
    http://www.perldebugged.com
     
    Peter Scott, Aug 23, 2003
    #2
    1. Advertising

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. Eric Snow

    os.fork and pty.fork

    Eric Snow, Jan 8, 2009, in forum: Python
    Replies:
    0
    Views:
    575
    Eric Snow
    Jan 8, 2009
  2. Hunter Kelly

    Emacs support in debugger

    Hunter Kelly, Mar 21, 2005, in forum: Ruby
    Replies:
    0
    Views:
    92
    Hunter Kelly
    Mar 21, 2005
  3. Adam Funk
    Replies:
    4
    Views:
    239
    Adam Funk
    Jan 29, 2007
  4. lilostitch
    Replies:
    0
    Views:
    111
    lilostitch
    May 20, 2007
  5. Robert Oschler
    Replies:
    1
    Views:
    225
    Mcginkel
    Sep 5, 2005
Loading...

Share This Page