In Delphi: How to skip sections of code while debugging?

前端 未结 8 1218
有刺的猬
有刺的猬 2020-12-24 04:18

I often accidently step into code that I\'m not interested in while debugging in Delphi.

Let\'s start by saying that I know that you can step over with F8, and that

8条回答
  •  一整个雨季
    2020-12-24 05:06

    There is a "magic nodebug switch". {$D-} will disable the generation of debug code. Place that at the top of your FastMM unit and you won't end up tracing into it. And if you do end up in a function you don't want to be in, SHIFT-F8 will get you out very quickly. (WARNING: Don't use SHIFT-F8 from inside an assembly-code routine that plays around with the stack. Unpredictable behavior can result. F4 to the bottom of it instead.)

提交回复
热议问题