How do breakpoints work?

2,109 views
Skip to first unread message

mrclary

unread,
Jul 25, 2011, 3:16:51 PM7/25/11
to spyder
I'm new to Spyder, so I'm hoping that someone can set me straight.
When I set a breakpoint in the editor (double clicking a line number),
then run the debugger, pdb starts up in the console but starts at the
beginning of the script file rather than executing up to the
breakpoint. Are the breakpoints only applicable to winpdb? or am I
missing something?

Mac OSX 10.6.8
Spyder 2.0.8
Python 2.6.7 (r267:88850)
pyflakes 0.4.0
rope 0.9.2
Python 2.6.7, Qt 4.7.3, PyQt 4.8.4 on Darwin

Carlos Córdoba

unread,
Jul 25, 2011, 8:38:17 PM7/25/11
to spyd...@googlegroups.com
Hi,

Just press c + enter on the pdb console to get to the next breakpoint.
For much more info on how to work with pdb, please take a look at:

http://pythonconquerstheuniverse.wordpress.com/2009/09/10/debugging-in-python/

Cheers,
Carlos

El 25/07/11 14:16, mrclary escribió:

Ryan Clary

unread,
Jul 26, 2011, 1:51:05 AM7/26/11
to spyd...@googlegroups.com
Thanks, Carlos. That did the trick.

> --
> You received this message because you are subscribed to the Google Groups "spyder" group.
> To post to this group, send email to spyd...@googlegroups.com.
> To unsubscribe from this group, send email to spyderlib+...@googlegroups.com.
> For more options, visit this group at http://groups.google.com/group/spyderlib?hl=en.
>

Reply all
Reply to author
Forward
0 new messages