Do any debuggers support "edit and continue?"

Lie Ryan lie.1296 at gmail.com
Wed May 12 15:05:45 EDT 2010


On 05/13/10 03:42, Joel Koltner wrote:
> Just curious... in Microsoft's Visual Studio (and I would presume some
> other tools), for many languages (both interpreted and compiled!)
> there's an "edit and conitnue" option that, when you hit a breakpoint,
> allows you to modify a line of code before it's actually executed.
> 
> Does any Python debugger support this feature?  Being an interpreted
> language it doesn't seem like it would necessarily be too onerous to
> support?  It'd be quite handy in that, especially if you hit a
> breakpoint due to the interpreter throwing an error, you could fix just
> the line in question and keep going, rather than having to stop the
> entire program, fix the line, and then run again and potentially kill a
> bunch of time getting the program back into the same "state."
> 

Using pdb, if you step through a function, you can execute arbitrary
python function in the break and then 'jump' to the line after the next,
effectively simulating "edit and continue". I don't know if there's any
GUI interface to pdb that uses them though.



More information about the Python-list mailing list