<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Visual Studio fans: someone explain debugging to me in ArcObjects SDK Questions</title>
    <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-fans-someone-explain-debugging-to-me/m-p/209618#M5450</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;IMHO, catching and eating general exceptions is bad form.&amp;nbsp; This issue is discussed extensively on the web and in fact FxCop will raise this as an issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://blogs.msdn.com/b/codeanalysis/archive/2006/06/14/631923.aspx"&gt;http://blogs.msdn.com/b/codeanalysis/archive/2006/06/14/631923.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I might do something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; // my code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;catch (Exception e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#if DEBUG&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; if (!Debugger.IsAttached)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debugger.Launch();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Debugger.Break();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; // Code to log the problem in production&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; // Rethrow the exception&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; throw;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Mon, 10 Jan 2011 18:41:13 GMT</pubDate>
    <dc:creator>RichardWatson</dc:creator>
    <dc:date>2011-01-10T18:41:13Z</dc:date>
    <item>
      <title>Visual Studio fans: someone explain debugging to me</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-fans-someone-explain-debugging-to-me/m-p/209610#M5442</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;All,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm a C# developer and know VS well.&amp;nbsp; I developed VBA-backed ArcGIS solutions a number of years ago but am now getting back into GIS dev work.&amp;nbsp; I've stepped through some ESRI examples for creating simple ArcMap Add-Ins and all makes sense, but I'm having problems with my breakpoints and debugging.&amp;nbsp; Before launching into deeper questions, can someone briefly explain what a healthy ArcMap Add-In debug process looks like?&amp;nbsp; As a hint for where I'm going:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) I'm seeing "The breakpoint will not currently be hit. No symbols have been loaded for this document." problems with the breakpoints.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) The ArcGIS crash reporter gizmo seems to prevent the debugger from halting the code so I can examine the stack trace.&amp;nbsp; When debugging an ArcMap Add-In and you hit a bug, should Visual Studio then leap into action so I can examine the trace or do I have to examine the dump files?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I'm on VS2010 and ArcGIS 10 on XP.&amp;nbsp; &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks tons,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cale&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 07 Jan 2011 22:54:57 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-fans-someone-explain-debugging-to-me/m-p/209610#M5442</guid>
      <dc:creator>CaleBerkey</dc:creator>
      <dc:date>2011-01-07T22:54:57Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio fans: someone explain debugging to me</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-fans-someone-explain-debugging-to-me/m-p/209611#M5443</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;If you want to debug ArcMap then you have 2 choices:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;1) Set ArcMap.exe as the startup process for the project that you are building, i.e. your "library", and then hit run/F5.&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;2) Run ArcMap.exe and then attach Visual Studio as the debugger.&amp;nbsp; I think that it is called something like "Attach to process".&amp;nbsp; Use the Visual Studio instance with the project/library that you want to debug open.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;You should build your project/library using the Debug configuration.&amp;nbsp; Make sure that the generated pdb file sits physically next to the dll.&amp;nbsp; When you do that then you should be able to set breakpoints.&amp;nbsp; If that isn't working then you can look at the modules that are loaded (there is a view for that in Visual Studio) and try to figure out where it is getting the DLL.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We do this extensively and it works well.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Jan 2011 12:24:31 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-fans-someone-explain-debugging-to-me/m-p/209611#M5443</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2011-01-08T12:24:31Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio fans: someone explain debugging to me</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-fans-someone-explain-debugging-to-me/m-p/209612#M5444</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Richard,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks for the reply.&amp;nbsp; It sounds like since you attach the process, you aren't describing add-ins?&amp;nbsp; Is that correct?&amp;nbsp; My impression from what I've looked at so far is that the VS2010 add-in template automatically calls ArcMap.exe as an external process and the debugger is attached that way.&amp;nbsp; Sounds like you're manually attaching to ArcMap?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;What about bugs?&amp;nbsp; Using the process you describe does the debugger pick up when bugs occur so you can examine the stack trace?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cale&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Jan 2011 17:51:47 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-fans-someone-explain-debugging-to-me/m-p/209612#M5444</guid>
      <dc:creator>CaleBerkey</dc:creator>
      <dc:date>2011-01-08T17:51:47Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio fans: someone explain debugging to me</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-fans-someone-explain-debugging-to-me/m-p/209613#M5445</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I do not use add-ins so I was generically describing the process of debugging DLLs/assembly in ArcMap.&amp;nbsp; If the add-in template automatically sets ArcMap as the startup process then you do not need to do it.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;ESRI catches unhandled exceptions, generates a dump file, and (if you let it) reports the crash back to ESRI.&amp;nbsp; If your code is crashing ArcMap then you can repeat the flow while running in the debugger.&amp;nbsp; You could also try attaching the debugger.&amp;nbsp; Finally, you can load generated dump file in Visual Studio in order to view the stack trace.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;There may be some way to disable ESRI from catching unhandled exceptions.&amp;nbsp; If that were possible then Visual Studio would launch as the Just In Time debugger.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 08 Jan 2011 18:29:06 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-fans-someone-explain-debugging-to-me/m-p/209613#M5445</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2011-01-08T18:29:06Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio fans: someone explain debugging to me</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-fans-someone-explain-debugging-to-me/m-p/209614#M5446</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Richard,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again.&amp;nbsp; I'm able to set breakpoints and can halt the code as expected.&amp;nbsp; When ArcMap crashes I can load the dump file, but when attempting to run it I receive the following message:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;"Debugging information for 'ArcMap.exe' cannot be found or does not match.&amp;nbsp; Symbols loaded (source information stripped)."&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When I continue debugging, I'm informed of an unhandled exception and have the option of examining what looks like assembler output.&amp;nbsp; I'd like to simply be able to know where my code is crashing and view the stack trace.&amp;nbsp; Any clues?&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 15:12:58 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-fans-someone-explain-debugging-to-me/m-p/209614#M5446</guid>
      <dc:creator>CaleBerkey</dc:creator>
      <dc:date>2011-01-10T15:12:58Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio fans: someone explain debugging to me</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-fans-someone-explain-debugging-to-me/m-p/209615#M5447</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Cale,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;See if these ESRI Symbol Server references are helpful:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]For ArcGIS 9.3&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]&lt;/SPAN&gt;&lt;A href="http://resources.esri.com/help/9.3/ArcGISDesktop/dotnet/37148c9a-1bd3-4a20-82f1-edc81f9c0347.htm"&gt;http://resources.esri.com/help/9.3/ArcGISDesktop/dotnet/37148c9a-1bd3-4a20-82f1-edc81f9c0347.htm&lt;/A&gt;&lt;SPAN&gt;[/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;For ArcGIS 10&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;[INDENT]&lt;/SPAN&gt;&lt;A href="http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//000100000127000000"&gt;http://help.arcgis.com/en/sdk/10.0/arcobjects_net/conceptualhelp/index.html#//000100000127000000&lt;/A&gt;&lt;SPAN&gt;[/INDENT][/INDENT]&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Stuart&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 15:25:02 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-fans-someone-explain-debugging-to-me/m-p/209615#M5447</guid>
      <dc:creator>V_StuartFoote</dc:creator>
      <dc:date>2011-01-10T15:25:02Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio fans: someone explain debugging to me</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-fans-someone-explain-debugging-to-me/m-p/209616#M5448</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Look at the StackTrace on the Exception object.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 15:57:11 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-fans-someone-explain-debugging-to-me/m-p/209616#M5448</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2011-01-10T15:57:11Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio fans: someone explain debugging to me</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-fans-someone-explain-debugging-to-me/m-p/209617#M5449</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;What I do is just wrap everthing in a catch-all exception handler that reports the stack trace. For example, a button Add-In would have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;PRE class="lia-code-sample line-numbers language-none"&gt;
protected override void OnClick()
{
&amp;nbsp;&amp;nbsp;&amp;nbsp; try
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; // Code, or call to other methods here
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; ...
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
&amp;nbsp;&amp;nbsp;&amp;nbsp; catch (Exception ex)
&amp;nbsp;&amp;nbsp;&amp;nbsp; {
&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; MessageBox.Show(ex.Message + "\n\n" + ex.StackTrace);
&amp;nbsp;&amp;nbsp;&amp;nbsp; }
}
&lt;/PRE&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;This also keeps the otherwise unhandled exception from crashing ArcMap.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Sat, 11 Dec 2021 10:20:23 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-fans-someone-explain-debugging-to-me/m-p/209617#M5449</guid>
      <dc:creator>JeffreyHamblin</dc:creator>
      <dc:date>2021-12-11T10:20:23Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio fans: someone explain debugging to me</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-fans-someone-explain-debugging-to-me/m-p/209618#M5450</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;IMHO, catching and eating general exceptions is bad form.&amp;nbsp; This issue is discussed extensively on the web and in fact FxCop will raise this as an issue:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;A href="http://blogs.msdn.com/b/codeanalysis/archive/2006/06/14/631923.aspx"&gt;http://blogs.msdn.com/b/codeanalysis/archive/2006/06/14/631923.aspx&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I might do something like this:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;try&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; // my code&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;catch (Exception e)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;{&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#if DEBUG&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; if (!Debugger.IsAttached)&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; {&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; Debugger.Launch();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; }&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; Debugger.Break();&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#else&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; // Code to log the problem in production&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;#endif&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; // Rethrow the exception&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;&amp;nbsp;&amp;nbsp; throw;&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;}&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 18:41:13 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-fans-someone-explain-debugging-to-me/m-p/209618#M5450</guid>
      <dc:creator>RichardWatson</dc:creator>
      <dc:date>2011-01-10T18:41:13Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio fans: someone explain debugging to me</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-fans-someone-explain-debugging-to-me/m-p/209619#M5451</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I usually agree about catch-all exception handlers that eat everything being bad form. However, when any unhandled exception occurs in an Add-In, ArcMap immediately crashes with no information about the error other than the generic ESRI error report dialog.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;So, I find it useful during the debugging stages.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Whether the exception should be re-thrown after getting the stack trace depends on whether there is the potential for ArcMap to be left in a corrupt state. But re-throwing removes any chance to save work or continue.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I am actually still waffling on what to do at the release stage. At this time I am still leaning toward eating them, and then displaying a warning depending on the level of the Add-In's potential for corruption.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;-Jeff&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 19:20:27 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-fans-someone-explain-debugging-to-me/m-p/209619#M5451</guid>
      <dc:creator>JeffreyHamblin</dc:creator>
      <dc:date>2011-01-10T19:20:27Z</dc:date>
    </item>
    <item>
      <title>Re: Visual Studio fans: someone explain debugging to me</title>
      <link>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-fans-someone-explain-debugging-to-me/m-p/209620#M5452</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Re-throwing the exception to ArcMap is usually not a good idea unless you know how ArcMap is going to deal with it.&amp;nbsp; If in the middle of an edit operation and you have an onChange listener and you want to abort the edit, in that case throwing an exception will do that.&amp;nbsp; Sinking the exception only is usually not good either.&amp;nbsp; It really depends on the application, the users and the concern for security.&amp;nbsp; Generally giving the user a warning that something went wrong is a good idea.&amp;nbsp; Putting the details in a file or in an application event log is good because you, the developer, can look at it after an error has happened in release code.&amp;nbsp; Some people consider that a security risk because it potentially exposes details of the inner workings (call stack) to the users and will only write to a secure database.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 10 Jan 2011 19:42:50 GMT</pubDate>
      <guid>https://community.esri.com/t5/arcobjects-sdk-questions/visual-studio-fans-someone-explain-debugging-to-me/m-p/209620#M5452</guid>
      <dc:creator>AlexanderGray</dc:creator>
      <dc:date>2011-01-10T19:42:50Z</dc:date>
    </item>
  </channel>
</rss>

