Page 1 of 2 12 LastLast
Results 1 to 10 of 11

Thread: Delphi breakpoint bug?

  1. #1
    Legendary Member NecroDOME's Avatar
    Join Date
    Mar 2004
    Location
    The Netherlands, Eindhoven
    Posts
    1,059

    Delphi breakpoint bug?

    Hi there,

    Since a while I got sometimes strange thing in Delphi while debuggin...

    Breakpoints that are not valid according Delphi. The blue points are missing almost everywhere and appear on the blank lines somehow... However I can't debug like this, but It works...

    Here is a screenie:


    It's funny the first time, but it starts to annoy me now...
    NecroSOFT - End of line -

  2. #2

    Delphi breakpoint bug?

    I believe it is an indicator of recompiled lines. I have always thought it such, but I've never been absolutely sure.

  3. #3
    Legendary Member NecroDOME's Avatar
    Join Date
    Mar 2004
    Location
    The Netherlands, Eindhoven
    Posts
    1,059

    Delphi breakpoint bug?

    Well, it's fixed when I restart delphi...

    The blue dots indicate points I can set breakpoints... not recompiled lines.
    NecroSOFT - End of line -

  4. #4

    Delphi breakpoint bug?

    You can place breakpoints anywhere, including where the blue dots aren't. Just remember that blank lines or ones without conditionals that evaluate don't provide any insight.

  5. #5

    Delphi breakpoint bug?

    These breakpoints appear that way because either that piece of code never executes or it cannot stop there because of optimizations enabled.

    Make sure to rebuild your project so that new breakpoints are marked correctly (no need to restart Delphi ).

  6. #6

    Delphi breakpoint bug?

    I had the same problem and almost went crazy because of that ;-)

    Until (like lifepower said) I discovered that rebuilding project solves the problem

  7. #7
    Legendary Member NecroDOME's Avatar
    Join Date
    Mar 2004
    Location
    The Netherlands, Eindhoven
    Posts
    1,059

    Delphi breakpoint bug?

    thnx, will rebuild next time
    NecroSOFT - End of line -

  8. #8

    Delphi breakpoint bug?

    Also, turn off optimizations in Project -> Options -> Compiler for any debug build. It does stuff that's meant to help your program run more efficiently, but it can screw up a lot of debugging efforts by eliminating certain variables whose value you might want to see. I've also had them screw up breakpoints once or twice, though I'm not quite sure why.

    (Just remember to turn Optimizations back on again for any real version.)

    Mason

  9. #9

    Delphi breakpoint bug?

    Quote Originally Posted by masonwheeler
    I've also had them screw up breakpoints once or twice, though I'm not quite sure why.
    When I was working on Delphi 6 I've noticed a bug; my program was running differently with breakpoints and without. Quite strange

  10. #10

    Delphi breakpoint bug?

    Are you kidding me? delphi has a debugger - you call that a debugger? since delphi 4, the debugger went downhill, in delphi 7 it is as much useable as lazarus's for example...
    This is my game project - Top Down City:
    http://www.pascalgamedevelopment.com...y-Topic-Reboot

    My OpenAL audio wrapper with Intelligent Source Manager to use unlimited:
    http://www.pascalgamedevelopment.com...source+manager

Page 1 of 2 12 LastLast

Bookmarks

Posting Permissions

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