Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I stop F7 from going into Embarcadero code?

I am trying to debug a dense piece of code with multiple function calls in single lines. I want to single step through all the code that I have written, but in doing that I keep finding myself in the supplied source code, including the assembler code.

This is happening at a client's site on his machine running XE5. It doesn't happen on my own code, running XE2 and XE4.

What is the magic setting that makes this work they way I want?

like image 603
MarkAurelius Avatar asked Aug 10 '15 06:08

MarkAurelius


1 Answers

The best you can do is make sure that Debug DCUs is disabled in the project options. But even doing that sometimes is not sufficient to stop yourself landing in RTL code, in modern Delphi versions. I suspect that you have Debug DCUs disabled and are being caught out by this behaviour change.

The only thing you can do is get used to knowing when to use step out (F8) rather than step in (F7), and being able to escape from a function as quickly as possible. Usually that involves putting the cursor on the last line, running to cursor (F4), and stepping in again.

like image 107
David Heffernan Avatar answered Oct 18 '22 02:10

David Heffernan