开发者

Runtime debugging not working.

开发者 https://www.devze.com 2023-01-25 15:43 出处:网络
just recently my Visual Studio 2010 and 2008 Professional have stopped catching runtime errors. I\'m not sure if a setting within these IDEs were configured wrong or if it is a firewall problem (my OS

just recently my Visual Studio 2010 and 2008 Professional have stopped catching runtime errors. I'm not sure if a setting within these IDEs were configured wrong or if it is a firewall problem (my OS is Windows 7 and the firewall is turned off). For instance this code should result in a runtime error in visual studio:

XmlDocument doc = null;
XmlElement element = doc.getElementByID("element");

If i place a breakpoint after this code it is not reached, however the breakpoint is successfully triggering before this code sample is executed. My C# application appears fine, but all co开发者_运维百科de that was executed after the error is nonexistent.

I would appreciate it if any could help me solve this issue.


In C#, this code should not even compile due to the invalid casing on GetElementById() in your example.

In Visual Studio, go to Debug -> Exceptions, check "Thrown" next to "Common Language Runtime Exceptions".

Re-run the code ... does it break?

0

精彩评论

暂无评论...
验证码 换一张
取 消