in reply to Neat Debugger tricks
I've also been using the debugger quite often recently because of inherited code. The ones I use most:
- break at a line number: b 234
- break at a function : b foo
- simply change the value of a variable, e.g, the script is processing all files a directory, so it got a list at the beginning, I only want to look at a particular file, I can simply break after gettting the list, then change the list to contain that particular file.
- dump a data structure: use Data::Dumper; p Dumper($foo)
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^2: Neat Debugger tricks
by QM (Parson) on Nov 17, 2005 at 03:49 UTC | |
by harleypig (Monk) on Jun 07, 2007 at 19:18 UTC | |
Re^2: Neat Debugger tricks
by tye (Sage) on Nov 17, 2005 at 06:05 UTC | |
by Ovid (Cardinal) on Nov 17, 2005 at 18:10 UTC |
In Section
Meditations