{"id":90,"date":"2004-04-07T14:35:21","date_gmt":"2004-04-07T04:35:21","guid":{"rendered":"http:\/\/www.malcolmgroves.com\/blog\/?p=90"},"modified":"2004-04-07T14:35:21","modified_gmt":"2004-04-07T04:35:21","slug":"inspect-exception-object","status":"publish","type":"post","link":"http:\/\/www.malcolmgroves.com\/blog\/?p=90","title":{"rendered":"Inspect Exception Object"},"content":{"rendered":"<p>I&#8217;ve been doing some work in another .NET tool, which shall remain nameless for what it&#8217;s worth :-), and I&#8217;ve found myself missing a few features from <a href=\"http:\/\/www.borland.com\/csharpbuilder\/\">C#Builder<\/a> and <a href=\"http:\/\/www.borland.com\/delphi_net\/\">Delphi<\/a> 8. I don&#8217;t want to start a &quot;My tool&#8217;s better than your tool&quot; war, but I guess it&#8217;s not until you use another tool that you notice some of the features of the tool you&#8217;re used to.<\/p>\n<p>Case in point: Exceptions. When an exception occurs during debugging, this other tool gives me a modal dialog with the details of the exception, but being modal, I have to dismiss it before I can go looking for my error. Problem is, my memory sucks. So, once I&#8217;ve dimissed this modal dialog, I invariably forget some of the details. I believe there is a magic string I can enter into the watch window to get the details of the exception, but I don&#8217;t think it&#8217;s documented and buggered if I can remember what it is.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.malcolmgroves.com\/images\/exceptiondemo1.gif\" \/><\/p>\n<p><a href=\"http:\/\/www.borland.com\/csharpbuilder\/\">C#Builder<\/a> and <a href=\"http:\/\/www.borland.com\/delphi_net\/\">Delphi<\/a> 8, on the other hand, give me the same modal dialog, but notice in the screenshot above, the checkbox in the bottom right corner that says <a href=\"http:\/\/www.malcolmgroves.com\/2004\/04\/07.html#a42\">Inspect Exception Object<\/a>? If I leave that checked, I get a Debug Inspector showing all the details of the Exception object that I can dock against my code while I go looking for my error.<\/p>\n<p><img decoding=\"async\" src=\"http:\/\/www.malcolmgroves.com\/images\/exceptiondemo2.gif\" \/><\/p>\n<p>A little thing maybe, but a little thing that I didn&#8217;t really notice until it wasn&#8217;t there.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>I&#8217;ve been doing some work in another .NET tool, which shall remain nameless for what it&#8217;s worth :-), and I&#8217;ve found myself missing a few features from C#Builder and Delphi 8. I don&#8217;t want to start a &quot;My tool&#8217;s better than your tool&quot; war, but I guess it&#8217;s not until you use another tool that [&hellip;]<\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-90","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"http:\/\/www.malcolmgroves.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/90","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/www.malcolmgroves.com\/blog\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/www.malcolmgroves.com\/blog\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/www.malcolmgroves.com\/blog\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"http:\/\/www.malcolmgroves.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=90"}],"version-history":[{"count":0,"href":"http:\/\/www.malcolmgroves.com\/blog\/index.php?rest_route=\/wp\/v2\/posts\/90\/revisions"}],"wp:attachment":[{"href":"http:\/\/www.malcolmgroves.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=90"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/www.malcolmgroves.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=90"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/www.malcolmgroves.com\/blog\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=90"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}