Debugger - fails to "continue" with breakpoint set

E

Ed Greenberg

I'm pretty new to Python, but I am really enjoying it as an alternative
to Perl and PHP.

When I run the debugger [import pdb; pdb.set_trace()] and then do next
and step, and evaluate variables, etc, when I hit 'c' for continue, we
go to the end, just fine.

As soon as I set a breakpoint down the line, [b <line number>] the
behavior of 'c' changes. Instead of continuing until the breakpoint, or
until the end, if the breakpoint is hidden by a conditional, the
debugger starts to treat 'c' as a step (or a next, I'm not sure which.)

This behavior is repeatable and consistent.

I see this in python 2.6.4 on Ubuntu 9.10 and also in 2.5.2 on Ubuntu
8.04 (Hardy), both using the installed packages.

I must be missing something. Assistance will be welcome.

Thanks,

Ed Greenberg
 
L

Lie Ryan

I'm pretty new to Python, but I am really enjoying it as an alternative
to Perl and PHP.

When I run the debugger [import pdb; pdb.set_trace()] and then do next
and step, and evaluate variables, etc, when I hit 'c' for continue, we
go to the end, just fine.

As soon as I set a breakpoint down the line, [b <line number>] the
behavior of 'c' changes. Instead of continuing until the breakpoint, or
until the end, if the breakpoint is hidden by a conditional, the
debugger starts to treat 'c' as a step (or a next, I'm not sure which.)

This behavior is repeatable and consistent.

can you write a test script and post its corresponding gdb session that
demonstrates what you meant?
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

Forum statistics

Threads
473,764
Messages
2,569,566
Members
45,041
Latest member
RomeoFarnh

Latest Threads

Top