Question

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.

Was it helpful?

Solution

In CPU View you can right-click and choose "New EIP (Ctrl + N)" to set the instruction pointer.

OTHER TIPS

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 the IDE of 2007 you can also set the execution pointer from the Debug-Contextmenu in the sourcecode. I've tried it a few times, but its very tricky. Don't try to move the pointer outside any begin-end block or it will bite you in the @ss later

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top