Not able to Debug Perl fork code in komodo 4.4.1 . Can anyone please help out, what steps i need to follow so that i debug the when creating multiple process using fork.Debugger just hangs not sure whether its in child or parent.
Not being able to debug forking apps is making things really tough for me. :( Particularly apps that spawn off other jobs in parallel. While I could prevent forking and limit to 1 job at a time, this actually changes application behavior in most case I run into this. I'm still having to resort to not using a debugger at all, but instead having each process print to a trace file with debug information in it. :(
Ideally, we'd have a setting to say whether the debugger should stay with the parent or follow to the child, accessible as a preference and also avilable as $DB::varname to set more dynamically.
Even better is to process both, but.. understandable if komodo can track only one process at a time.
There are a few other improvements I'd like to make to the
Perl debugger, and this is one of them next time I have
a block of time to work on it.
- Eric
Not being able to debug forking apps is making things really tough for me. :( Particularly apps that spawn off other jobs in parallel. While I could prevent forking and limit to 1 job at a time, this actually changes application behavior in most case I run into this. I'm still having to resort to not using a debugger at all, but instead having each process print to a trace file with debug information in it. :(
Ideally, we'd have a setting to say whether the debugger should stay with the parent or follow to the child, accessible as a preference and also avilable as $DB::varname to set more dynamically.
Even better is to process both, but.. understandable if komodo can track only one process at a time.