Stepping Backwards in Code ( debugger/VS03.net )

  • Thread starter Thread starter c# newbie
  • Start date Start date
C

c# newbie

When stepping through code, to find where an error is thrown, the problem is
that I have to step threw the statement that causes the error, and if it's
in a class that's instantiated from the main program, then I may miss the
statement that causes the error.

How can I get the debugger to stop right at the statement that causes the
error.
 
If the class is part of the same project then you can step into it with F11
instead of F10 (assuming you are using the default key mapping for VS.Net)
 
try CTRL + ALT + E, which will take you to the Debug exceptions window.
there you can tell visual studio to immediately break on any exception or
any .net exception etc. you can also find this under Debug -> Exceptions...

let me know if you have other questions or if this doesn't help.

jeff.

--

This posting is provided "AS IS" with no warranties, and confers no rights.
Use of included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm

Note: For the benefit of the community-at-large, all responses to this
message are best directed to the newsgroup/thread from which they
originated.
 
Tell VS.NET to break when an excepion is thrown. Look on the
Debug/Exceptions menu.

Regards,
Aaron Queenan.
 
Back
Top