Wish IDE Debugger should have F4 to execute to the selected line

Widget

Well-Known Member
Licensed User
Longtime User
In the Delphi debugger when the debugger is stopped at a line (Line 100), the user moves the editor caret on a line further down in the code (line 120) and presses F4 and the debugger will immediately execute code until it hits that line (120) where the caret is located. This will be the only time the debugger will stop on this line (120) because the breakpoint is used only once (disposable).

This is similar to
  1. setting a breakpoint on line 120,
  2. pressing F5 so the debugger stops on line 120,
  3. then removing the bookmark on line 120.

I find it much simpler to move the editor caret to line 120 and press F4. This comes in handy because I can easily jump ahead in the code and exit loops without physically defining breakpoints.
 

moster67

Expert
Licensed User
Longtime User
Another option would be the one found in Visual Studio "run to the cursor" (I don't remember now the right wording) by right clicking the mouse.
 

Widget

Well-Known Member
Licensed User
Longtime User
Another option would be the one found in Visual Studio "run to the cursor" (I don't remember now the right wording) by right clicking the mouse.

"Run to the Cursor" sounds similar to pressing F4 in Delphi. But when you right click the mouse, do you have to select the menu item "Run to the Cursor" from a popup menu? If so I'd prefer to use F4 because late night debugging I can find the F4 key a lot easier than reading through a popup menu and selecting the proper menu item. My eyes don't work all that great at 2 AM, especially if I have to do it repetitively.
 

moster67

Expert
Licensed User
Longtime User
But when you right click the mouse, do you have to select the menu item "Run to the Cursor" from a popup menu?
Yes, you do but you also have a keyboard shortcut (Ctrl+F8).
 
Top