views:

36

answers:

2

using vb.net 2008 When I put a break on a line and then press F5 the debugger does break on the line which I put the Break (F9) but Step In (F8) as well as F5 are grayed out, not working, as well as a bunch of other debug tools. Any clue why this is? Is there a setting that needs to be set?

A: 

Is it because that breakpoint will never be hit because it is not lying in your path of execution?

Make sure that you can F5 into the entry point ( typically, the main() method) and start from there.

Ngu Soon Hui
the breakpoint is hit, and it breaks, but then the f5 and f8 are disabled
bochur1
A: 

It's probably because you're running a Release Build. Check if you have a combobox somewhere on your toolbars with the text Release... you should select Debug instead.

If you have trouble finding this toolbar, this MSDN article might help you.

Meta-Knight