Is there quick way to set multiple breakpoints?

  • Thread starter Thread starter Fred Boer
  • Start date Start date
F

Fred Boer

Hello! I am examining the code in a somewhat involved (for me at least!<g>)
function in order to learn how it works. I thought I would try setting
breakpoints on all of the lines in the function, so that I could watch it
work, line by line.

1. Is there an easy way to select a big chunk of code and automatically set
a breakpoint on all appropriate lines (i.e. on code, not comment lines, dim
statements, etc..). I know I can comment or uncomment a block of code...

2. Or is there a better way to step through code line by line?

Thanks!
Fred Boer
 
Fred,

Use F8 to step through your code.

If you have a function, write a procedure which calls the
function as you cannot launce from a function in some
cases.

You will then be able to step thro a line at a time.

You can then put breaks as well if there are bug loops in
the code and use F5 to run to the next break.

Hope that this helps.

Robin
 
Thanks, Robin!

Fred


Robin Guest said:
Fred,

Use F8 to step through your code.

If you have a function, write a procedure which calls the
function as you cannot launce from a function in some
cases.

You will then be able to step thro a line at a time.

You can then put breaks as well if there are bug loops in
the code and use F5 to run to the next break.

Hope that this helps.

Robin
 
Back
Top