ipdb icon indicating copy to clipboard operation
ipdb copied to clipboard

Associate commands to ipdb.set_trace

Open Ricardo-Koenige opened this issue 5 years ago • 1 comments

I'm new to ipdb. In my company, this is the debugger. It's helping me a lot with introspection but I'm having an issue: I introduce breakpoints in code with ipdb.set_trace() and I want to set a watch with commands, but the breakpoint set in code doesn't seem to have a breakpoint number, which commands needs. Literally, I type break and the list comes back empty. Is there a way to add code traces to the "official" breakpoint list, or add these commands to the traace in the code?

Ricardo-Koenige avatar Feb 28 '20 09:02 Ricardo-Koenige

I am not fully sure I understand what you try to do. I have never used commands myself. (Thx for introducing it to me) commands is a pdb feature. Have you tried with pdb.set_trace() ?

gotcha avatar Feb 28 '20 15:02 gotcha