Results 1 to 4 of 4

Thread: [RESOLVED] Break stopped working

  1. #1

    Thread Starter
    Lively Member
    Join Date
    Aug 2016
    Posts
    109

    Resolved [RESOLVED] Break stopped working

    I have been working a project for several weeks.
    I used to set breaks and they worked properly.
    Today when I set breaks, nothing happens and the breaks are ignored.
    I did not change any code
    .

  2. #2
    eXtreme Programmer .paul.'s Avatar
    Join Date
    May 2007
    Location
    Chelmsford UK
    Posts
    25,464

    Re: Break stopped working

    The only time that breakpoints don’t work, is if code execution doesn’t reach the breakpoint. This could happen if you have a breakpoint inside a conditional block of code…

  3. #3
    Super Moderator Shaggy Hiker's Avatar
    Join Date
    Aug 2002
    Location
    Idaho
    Posts
    38,989

    Re: Break stopped working

    Or if you are running the release version, in which case the ball in the left margin will become white in the center at runtime. They will appear as normal until you try to run the program, then they will change.

    That and what .paul. suggested are the only two ways that I have ever seen breakpoints get skipped.

    Edit: Strike that. There's a third way, but it's pretty rare. If you have turned on all the optimizations for compiling, then there is no guarantee that a breakpoint on any particular line will be hit. It USUALLY will be hit, but if the line got optimized away, then it might not be. However, optimizations are normally off for debug versions, which is as they should be.
    My usual boring signature: Nothing

  4. #4

    Thread Starter
    Lively Member
    Join Date
    Aug 2016
    Posts
    109

    Re: Break stopped working

    Break point never reached.
    Reset it and it works,

    Thanks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  



Click Here to Expand Forum to Full Width