in reply to Re: Int-3 equivalent?
in thread Int-3 equivalent?

Nice trick!

On linux I used:

BEGIN { $ENV{PERLDB_OPTS}="NonStop frame=2"; }
which seems to work fine. This technique also works with the ptkdb debugger.

Using it this way with ptkdb on linux, the debugger window appears at the start of the program. I can press 'Run' and the program runs until the equivalent of a 'breakpoint', which is set with the assert() routine.

I wonder if there is a way to get the ptkdb window to appear for the first time when the assert function is called? That way, my program could run normally and only pull up ptkdb when something goes wrong.

It should work perfectly the first time! - toma