How to "step into" in the middle of a long piece of code

  • Thread starter Thread starter SteveC
  • Start date Start date
S

SteveC

Hi,

Currently I press F8 to step into a code. Then I have to select a yellow
arrow and drag it down to where I want to start viewing the code, step by
step.

Is there an easier way to step into exactly where you want to, instead of
dragging the arrow down? Like a "step into" at the cursor, option?

thanks...
 
Hi SteveC

You can use the goto call, something like this

At the first line of code put in GoTo SteveCLine

Then at the place you want it to jump to type in SteveCLine:

When your through debuggin remove the lines
 
There are a couple of options...

Ctrl + F8 is run to cursor
F9 adds a break point where code execution will pause
Click on the grey bar beside th line of code is another way to add a break
point.
 
Is there an easier way to step into exactly where you want to, instead of
dragging the arrow down? Like a "step into" at the cursor, option?

Two options that come to mind are selecting your line of code and hit F9 to
set a breakpoint.
(another option later is to click the red dot to toggle on/off)

Another is to start with F8 as you are doing, then Right Click the code of
interest, and select "Run to Cursor."
 
Back
Top