Watch, Follow, &
Connect with Us

For forums, blogs and more please visit our
Developer Tools Community.


Welcome, Guest
Guest Settings
Help

Thread: Breakpoint not work - Embarcadero with CLand = disaster


This question is not answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 7 - Last Post: Jun 9, 2017 9:45 AM Last Post By: Rudy Velthuis (... Threads: [ Previous | Next ]
Roberto Carrer

Posts: 6
Registered: 3/21/16
Breakpoint not work - Embarcadero with CLand = disaster  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 7, 2017 2:47 AM
How is the breakpoint point put into the comments?

See this: https://goo.gl/photos/Z6CeegEkBQvTiPyy9

The breakpoint in if not work.

here the source of minimal project: https://www.dropbox.com/s/7tomgy3sat07ps4/TestBreakpoint.ZIP?dl=0

Edited by: Roberto Carrer on Jun 7, 2017 2:48 AM

Edited by: Roberto Carrer on Jun 7, 2017 2:51 AM

Rudy Velthuis (...


Posts: 7,731
Registered: 9/22/99
Re: Breakpoint not work - Embarcadero with CLand = disaster [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 7, 2017 1:03 PM   in response to: Roberto Carrer in response to: Roberto Carrer
Roberto Carrer wrote:

How is the breakpoint point put into the comments?

See this: https://goo.gl/photos/Z6CeegEkBQvTiPyy9

The breakpoint in if not work.

Breakpoints can only be put in code. That line does not contain any
code, it is part of a comment. The blue dots in the gutter indicate
which lines are code and can be used to put a breakpoint on.

If you run, the breakpoint should show a red cross over it. This
indicates that it is not a valid breakpoint.

--
Rudy Velthuis http://www.rvelthuis.de

"Knowing others is intelligence; knowing yourself is true
wisdom. Mastering others is strength; mastering yourself is
true power."
-- Lao Tzu
Roberto Carrer

Posts: 6
Registered: 3/21/16
Re: Breakpoint not work - Embarcadero with CLand = disaster [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 7, 2017 11:52 PM   in response to: Rudy Velthuis (... in response to: Rudy Velthuis (...
Breakpoints can only be put in code.

Wow! Sure?!? It's new for me!

If you look at my picture well, You can see that the compiler indicates the breakpoint at line 47 is valid even if line 47 is a comment!
Roberto Carrer

Posts: 6
Registered: 3/21/16
Re: Breakpoint not work - Embarcadero with CLand = disaster [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 8, 2017 12:32 AM   in response to: Roberto Carrer in response to: Roberto Carrer
Look here for another case

Simple exe compiled with CLang options.

The blue point of debug is not correctly set.

https://goo.gl/photos/nAbFdCg7FYgrxsyE6

The source file for test is here: https://www.dropbox.com/s/br82rkymd4fksrd/CLangTestBreakpoint.zip?dl=0
Mike Versteeg

Posts: 118
Registered: 9/16/07
Re: Breakpoint not work - Embarcadero with CLand = disaster [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 8, 2017 1:45 AM   in response to: Roberto Carrer in response to: Roberto Carrer
Unfortunately I am quite used to seeing breakpoints that aren't really breakpoints (and in fact vice versa). It seems what is visually indicated and what is internally used regularly gets out of sync. Just one of many bugs you'll have to live with I'm afraid.
Jan Dijkstra

Posts: 206
Registered: 11/4/99
Re: Breakpoint not work - Embarcadero with CLand = disaster [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 8, 2017 3:40 AM   in response to: Mike Versteeg in response to: Mike Versteeg
Mike Versteeg wrote:
Unfortunately I am quite used to seeing breakpoints that aren't really breakpoints (and in fact vice versa). It seems what is visually indicated and what is internally used regularly gets out of sync. Just one of many bugs you'll have to live with I'm afraid.

I'm confronted with this in XE8 with the bcc32 classic compiler sometimes too. To date, it has always turned out to be caused by too many source files open in the editor concurrently. When I close most of those, and do a full rebuild, the internal map and what's visually indicated is back in sync again.

For completeness, once it gets out of sync, a full rebuild with all those editor tabs open does NOT restore the sync between them.
Rudy Velthuis (...


Posts: 7,731
Registered: 9/22/99
Re: Breakpoint not work - Embarcadero with CLand = disaster [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 9, 2017 9:39 AM   in response to: Mike Versteeg in response to: Mike Versteeg
Mike Versteeg wrote:

Unfortunately I am quite used to seeing breakpoints that aren't
really breakpoints (and in fact vice versa). It seems what is
visually indicated and what is internally used regularly gets out of
sync. Just one of many bugs you'll have to live with I'm afraid.

I am not. That is why I suspect something else must be wrong.

--
Rudy Velthuis http://www.rvelthuis.de

"It's so easy to become mesmerized by the immediacy of a result
that you don't question its validity." -- Naomi Karten
Rudy Velthuis (...


Posts: 7,731
Registered: 9/22/99
Re: Breakpoint not work - Embarcadero with CLand = disaster [Edit]  
Click to report abuse...   Click to reply to this thread Reply
  Posted: Jun 9, 2017 9:45 AM   in response to: Roberto Carrer in response to: Roberto Carrer
Roberto Carrer wrote:

Breakpoints can only be put in code.

Wow! Sure?!? It's new for me!

No need to use that tone. It is rude, especially to someone trying to
help.

If you look at my picture well, You can see that the compiler
indicates the breakpoint at line 47 is valid even if line 47 is a
comment!

Neither picture at the link https://goo.gl/photos/Z6CeegEkBQvTiPyy9
shows a blue dot on a comment.

So don't put a breakpoint on a comment.

--
Rudy Velthuis http://www.rvelthuis.de

"Everywhere is walking distance if you have the time."
-- Steven Wright
Legend
Helpful Answer (5 pts)
Correct Answer (10 pts)

Server Response from: ETNAJIVE02