Jump to content
Henry Olive

Debug Break Point

Recommended Posts

Good Day,
Delphi 10.3

When i compile or build my program i cant see in some code lines

small BLUE POINT on the most left side of code screen

so program doesnt read the lines with out blue point

(I didnt change anything in Tools/Options.... etc.)

. MyTable.Close; // There is blue point

  MyTable.Open; // No blue point

 


Thank You
 

 

Share this post


Link to post

You usually get that on lines that have been removed by the smart linker since it has concluded that this code is never executed.

 

If you are sure that the code can be reached your source file may contain invalid line breaks (just CR or just LF instead of the CR LF pair). The IDE editor still breaks the line on such characters but it throws off the calculation of source code locations from the compiled binary. You can get such bad line breaks if you paste code copied from a web page or get source from an improperly configured version control system. As a test, place the editor's caret at the end of the line before the one with the missing dot and press the DEL key until the break is removed, then hit the RETURN key to insert a proper line break. Rebuild the project and see if the dot is now there.

Share this post


Link to post
  • more info ( source code it's necessary )...
  • Project->Options-Building->Compiling->Optimization = false
  • DCU should be compiled in "Debug mode" to produce info
  • object shoud be in use in some code point... else, compiler try ignore it

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×