ASP.NET Debugging und .NET Debugging

by robert 2. October 2008 19:32

um vernünftig debuggen zu können, ist es nötig das Exception in Visual Studio, unter "Debug"->"Exceptions" "Common Language Runtime Exception" zu aktivieren. Ist jedoch "Enable Just My Code" (unter "Tools"->"Options" und dann im Bereich Debugging) nicht angewählt...

enable just my code 

... dann fehlt im Exeptions Windows ...

exceptions-dialog 

... die "User-unhandeld" Spalte.

exceptions-dialog 2 

etwas unerklärlich, aber per Default war bei uns (Oliver und mir) anscheinend

  • "Thrown" für Common Language Runtime Exceptions nicht ausgewählt
  • Nachdem "Thrown" expliziet aktiviert wurde, sprang der Debugger in alle Exceptions auch "User handled" Exceptions. Also auch in evil "Try Catch" Blöcke.

Die Lösung ist es nun "Enable Just My Code" zu aktivieren:

enable just my code checked

Vielleicht hilft es :-)

Add comment

  Country flag

biuquote
  • Comment
  • Preview
Loading

About Oliver

shades-of-orange.com code blog logo I build web applications using ASP.NET and have a passion for javascript. Enjoy MVC 4 and Orchard CMS, and I do TDD whenever I can. I like clean code. Love to spend time with my wife and our children. My profile on Stack Exchange, a network of free, community-driven Q&A sites

About Anton

shades-of-orange.com code blog logo I'm a software developer at teamaton. I code in C# and work with MVC, Orchard, SpecFlow, Coypu and NHibernate. I enjoy beach volleyball, board games and Coke.