Link to home
Create AccountLog in
Avatar of SETP
SETP

asked on

Stepping

When stepping through my code in VB.NET 2003 line by line, if an error is encountered, execution jumps to the catch error handler. However, in Visual Basic 6, there was an option to rather stop at that line of code - even if you had an error handler it wouldn't jump to it. Is it possible to get VB.NET to behave this way aswell?
Avatar of 123654789987
123654789987

IF the exception handler is not successful in catching a exception, then an unhandled exception dialog box appers and the application exits without going to the exception handler. This is the case in VB as well
try the settings in the

Debug Menu --> Exceptions

Choose When the Exception is Thrown

Break into Debugger
Well most of the debugging scenario is pretty same as in vb6, there also in case of error on one line the control moved to the Error handler (unless you had On Error Resume Next).  One of the benefits that vb6 line by line debugging gave was that it allowed to modify the lines during debugging. For that you can use the immediate window.

ASKER CERTIFIED SOLUTION
Avatar of RobertRFreeman
RobertRFreeman
Flag of United States of America image

Link to home
membership
Create a free account to see this answer
Signing up is free and takes 30 seconds. No credit card required.
See answer