Emacs debugger and perl fork

K

Kelly Corcam

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
 
P

Peter Scott

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.
 

Ask a Question

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

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,734
Messages
2,569,441
Members
44,832
Latest member
GlennSmall

Latest Threads

Top