pudb icon indicating copy to clipboard operation
pudb copied to clipboard

add pdb style 'commands [bpnumber]' to break point

Open pzi123 opened this issue 8 years ago • 2 comments

One of the most useful features of a source debugger is ability to execute debugger commands as part of the break point processing. This is implemented as part of the pdb debugger with 'commands [bpnumber]' command. This can be used to print an expression with pp and then issue 'continue'. This works as the alternative to planting print statements directly in the code.

In pdb we issue 'commands 1;; pp spam;; continue;; end' to bind these commands to break point 1. Please consider adding it to the break point options alongside 'Condition'.

Now if all that could be saved in the ~/.pdbrc style file so it can be reused between runs it would be wonderful.

pzi123 avatar Jan 18 '17 22:01 pzi123

I'd be happy to consider a PR to that effect.

inducer avatar Jan 18 '17 23:01 inducer

(But I don't have the spare cycles to do it myself at the moment, unfortunately.)

inducer avatar Jan 18 '17 23:01 inducer