471,350 Members | 1,692 Online
Bytes | Software Development & Data Engineering Community
Post +

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 471,350 software developers and data experts.

VS2003.NET debugger highlights the line _AFTER_ the exception line

My code generates an exception, but when then VS2003.NET goes into debug mode
the row AFTER the bad line is highlighted in green. Why does it highlight the
wrong line?

For instance, this in code:

SoapEnvelope envelope = new SoapEnvelope();
envelope.CreateHeader();
envelope.CreateBody();
envelope.InnerXml = "<hello>world</hello>";
Console.WriteLine("test");

VS tells me that the line "Console.WriteLine("test");" threw
SoapFormatException which cant really be thrown by Console.WriteLine() at
all. The line above it can and should throw that exception with the given
input.

I recall having similar problems in C++ too, but I'm not 100% sure.
sincerly,
martin
Jan 23 '06 #1
0 857

This discussion thread is closed

Replies have been disabled for this discussion.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.