Speed up debugging
For scripts that take a while to run, the slowdown from attaching the debugger can be a bit of a problem. In my case, it takes an hour to get to the first breakpoint.
Is it possible to attach the debugger after the script has been running normally for a while? Then the first part, where I don't need any debugging, would run much faster.
Any other ways to speed up debugging (without resorting to print statements and running without the debugger)?
Thanks for reading!
Is it possible to attach the debugger after the script has been running normally for a while? Then the first part, where I don't need any debugging, would run much faster.
Any other ways to speed up debugging (without resorting to print statements and running without the debugger)?
Thanks for reading!
2 comments
Sort by
Date
Votes
Disabling exception breakpoints makes debugger work faster.
Also it is possible to use Remote Debug Server - that will allow you to enable tracing exactly in the place you want it to be - read http://www.jetbrains.com/pycharm/webhelp/remote-debugging.html#6 for details.
Please sign in to leave a comment.