Attention: We are retiring the ASP.NET Community Blogs. Learn more >

Just My Code

I posted a question in the DOTNET-CLR Listserv about catch an exception and simply calling Throw.  Great discussion.

One reply was from Jonathan Keljo:

"If those 29 levels have a tendency to be in the Framework (or other code you didn't write), you'll love a new feature in Visual Studio 2005 called "Just My Code." You turn it on, and suddenly the meaning of "break when an exception is thrown" changes to mean "break when an exception first reaches my code".

"My code," according to VS, is anything that is compiled DEBUG, and for which it was able to find a PDB. (So the entire Framework is automatically not "my code" since it will always be compiled retail.) There's also an attribute (DebuggerNonUserCodeAttribute) you can put on your own functions if you never want to see them in the debugger."

Now this sounds cool.

 

 

No Comments