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

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...
 
D

DownThePaint

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
 
J

Jim Thomlinson

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.
 
D

Dana DeLouis

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."
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top