##// END OF EJS Templates
Document the new usage of %debug
Takafumi Arakaki -
Show More
@@ -308,8 +308,16 b' python-profiler package from non-free.""")'
308 308 )
309 309 @line_cell_magic
310 310 def debug(self, line='', cell=None):
311 """Activate the interactive debugger in post-mortem mode.
311 """Activate the interactive debugger.
312 312
313 This magic command support two ways of activating debugger.
314 One is to activate debugger before executing code. This way, you
315 can set a break point, to step through the code from the point.
316 You can use this mode by giving statements to execute and optionally
317 a breakpoint.
318
319 The other one is to activate debugger in post-mortem mode. You can
320 activate this mode simply running %debug without any argument.
313 321 If an exception has just occurred, this lets you inspect its stack
314 322 frames interactively. Note that this will always work only on the last
315 323 traceback that occurred, so you must call this quickly after an
General Comments 0
You need to be logged in to leave comments. Login now