Debugger doesn't stop at break points

  • I am writing a C++ command line function. I have set a break point in main()  where I a call a function.
    The debugger will stop at this break.  There is another break point set in the called function.
    The debugger does not stop at this or other break points in the called function.

    I have tried using StepIn at the main() break point and I can then step into the function and step line
    by line through it, however, using run once inside the function will not stop at subsequent breaks points
    in the function.

    Any ideas on what I might be doing wrong?
  • On May 16, 2013, at 13:05, "David Fitterman" <dfitterman...> wrote:

    > I am writing a C++ command line function. I have set a break point in main()  where I a call a function.
    > The debugger will stop at this break.  There is another break point set in the called function.
    > The debugger does not stop at this or other break points in the called function.
    >
    > I have tried using StepIn at the main() break point and I can then step into the function and step line
    > by line through it, however, using run once inside the function will not stop at subsequent breaks points
    > in the function.
    >
    > Any ideas on what I might be doing wrong?

    Try setting the debugger to GDB if it's set to LLDB. Make sure you aren't trying to debug a release build and optimizations are off, etc.

    I also run into situations where disabled breakpoints will cause enabled breakpoints to not stop.

    Steve via iPad
  • > Try setting the debugger to GDB if it's set to LLDB. Make sure you aren't trying to debug a release build and optimizations are off, etc.
    >
    > I also run into situations where disabled breakpoints will cause enabled breakpoints to not stop.
    Changing the debugger worked. Thanks!
previous month may 2013 next month
MTWTFSS
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Go to today