Mega Search
23.2 Million


Sign Up

Make a donation  
Debugger gets confused  
News Group: embarcadero.public.delphi.firemonkey

Hi

It seems that the debugger gets confused - when I am debugging a file called, say *main*, and I then open another file also called main but maybe an earlier version or belonging to some other project - the debugger will jump to the same line number as where I have placed the breakpoints in the correct file. If for instance I've placed a breakpoint in line 100 in the correct file, the debugger will go to line 100 but in the main-file I opened last. 

Anyone else noticed the same thing?

Best regards
Poul

Vote for best question.
Score: 0  # Vote:  0
Date Posted: 17-Jan-2015, at 7:14 AM EST
From: Poul Kristensen
 
Re: Debugger gets confused  
News Group: embarcadero.public.delphi.firemonkey
Yes, I can understand why it happens. I meant, why hasn't it been fixed? I know it was an issue in Delphi 7 - but still? In XE5? I mean, if you have two files, choose the one in the same folder as the rest of the program or if that doesn't work, choose the one in the editor or something. It doesn't seem hard to me. It is a real pain and you can't just undo it. I have to load another projekt and then the first one again - it's just silly. 

Poul

> {quote:title=Linden ROTH wrote:}{quote}
> > {quote:title=Poul Kristensen wrote:}{quote}
> > Hi
> > 
> > It seems that the debugger gets confused - when I am debugging a file called, say *main*, and I then open another file also called main but maybe an earlier version or belonging to some other project - the debugger will jump to the same line number as where I have placed the breakpoints in the correct file. If for instance I've placed a breakpoint in line 100 in the correct file, the debugger will go to line 100 but in the main-file I opened last. 
> > 
> > Anyone else noticed the same thing?
> > 
> > Best regards
> > Poul
> 
> Yes ... it not hard to understand the debug says to the IDE go to line 100 in file main ... if you have to 2 of more file of the same name opened you may get randomish results ... if you need to re open a file us a different editor/rename the file/open in a new instance of the IDE
> 
> This is not just a Firemonkey issue
> 
> --
> Linden
> "Mango" was Cool but "Wasabi" was Hotter but remember it's all in the "source"

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 19-Jan-2015, at 8:32 AM EST
From: Poul Kristensen
 
Re: Debugger gets confused  
News Group: embarcadero.public.delphi.firemonkey
> {quote:title=Poul Kristensen wrote:}{quote}
> Hi
> 
> It seems that the debugger gets confused - when I am debugging a file called, say *main*, and I then open another file also called main but maybe an earlier version or belonging to some other project - the debugger will jump to the same line number as where I have placed the breakpoints in the correct file. If for instance I've placed a breakpoint in line 100 in the correct file, the debugger will go to line 100 but in the main-file I opened last. 
> 
> Anyone else noticed the same thing?
> 
> Best regards
> Poul

Yes ... it not hard to understand the debug says to the IDE go to line 100 in file main ... if you have to 2 of more file of the same name opened you may get randomish results ... if you need to re open a file us a different editor/rename the file/open in a new instance of the IDE

This is not just a Firemonkey issue

--
Linden
"Mango" was Cool but "Wasabi" was Hotter but remember it's all in the "source"

Vote for best answer.
Score: 0  # Vote:  0
Date Posted: 17-Jan-2015, at 12:48 PM EST
From: Linden ROTH