In Visual Studio, when you're debugging with breakpoints you can change which line of code will be next to execute by dragging the execution cursor to another line; this lets you skip IF statements and the like.
I was idly wondering if there was a similar feature in Delphi anyone knew about?
I've been having a look around in the CPU window (Delphi 2006) but you only seem to be able to run through the instructions in order, not skip them.
Debugging delphi source files You need to go to "project->options->compiler" on this tab you need to check the "use debug DCUs". After that you need to build your project again and you can run your application. From now on breakpoints also stop in Delphi source files.
In Delphi XE you can drag the execution cursor to another line as well. Not in the CPU window, but in the editor itself.
In CPU View you can right-click and choose "New EIP (Ctrl + N)" to set the instruction pointer.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With