<?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: Debug problems with Visual Studio 2010 and AutoCAD 2009 in .NET Forum</title>
    <link>https://forums.autodesk.com/t5/net-forum/debug-problems-with-visual-studio-2010-and-autocad-2009/m-p/2860938#M62608</link>
    <description>&lt;P&gt;So, It seem that you didn't understand me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Debugging works well and all breakpoints are available. But when I try to call some Command from AutoCAD it says, that this Command is &lt;STRONG&gt;Unknown&lt;/STRONG&gt;. Only if I in &lt;STRONG&gt;debug&lt;/STRONG&gt; mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to remind, that breakpoint at&amp;nbsp;IExtensionApplication.Initialize() works well and I can debug this method. I've marked this method with "Command" attribute and it is called on assembly load and I can debug it, but when plugin initialization finishes, I cannot call the method. AutoCAD environment says "&lt;STRONG&gt;Unknown command&lt;/STRONG&gt;"&amp;nbsp;&lt;/P&gt;</description>
    <pubDate>Mon, 20 Dec 2010 21:48:59 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2010-12-20T21:48:59Z</dc:date>
    <item>
      <title>Debug problems with Visual Studio 2010 and AutoCAD 2009</title>
      <link>https://forums.autodesk.com/t5/net-forum/debug-problems-with-visual-studio-2010-and-autocad-2009/m-p/2860254#M62606</link>
      <description>&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;Hello, I got a debug problem with Visual Studio 2010 and AutoCAD 2009.&lt;/FONT&gt;&lt;/DIV&gt;&lt;DIV&gt;&lt;FONT size="2"&gt;&lt;BR /&gt;&lt;/FONT&gt;&lt;/DIV&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;Problem description:&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;BR /&gt;In project start up options I set to run acad.exe. I set up output directory for my plugin to the same path, that at in the AutoCAD registry.&amp;nbsp;So, when I hit F5 key AutoCAD starts and it loads just builded version of plugin. I set breakpoint at IExtensionApplication.Initialize() methodand it works perferctly. But when during debug I try to call some method marked with [CommandMethod("Method")] attribute AutoCAD says, that the commandis unknown. When I start AutoCAD with the same dll (but not from debug) is see all my method marked with [CommandMethod()] attribute.&amp;nbsp;&lt;/FONT&gt;&lt;/P&gt;&lt;P&gt;&lt;FONT size="2"&gt;&lt;BR /&gt;Previously I used Visual Studio 2008 with same AutoCAD version but I had no problem with debugging. Please, help.&lt;/FONT&gt;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2010 00:23:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/debug-problems-with-visual-studio-2010-and-autocad-2009/m-p/2860254#M62606</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-20T00:23:40Z</dc:date>
    </item>
    <item>
      <title>Re: Debug problems with Visual Studio 2010 and AutoCAD 2009</title>
      <link>https://forums.autodesk.com/t5/net-forum/debug-problems-with-visual-studio-2010-and-autocad-2009/m-p/2860366#M62607</link>
      <description>&lt;P&gt;My solutions for VisStudio 2010+AutoCAD 2011 are:&lt;/P&gt;&lt;P&gt;&amp;nbsp;&amp;nbsp;&amp;nbsp; I:edit: acad.exe.config, add&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;startup&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;lt;supportedRuntime version="v2.0.50727" /&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp; &amp;lt;/startup&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;lt;/configuration&amp;gt;&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;or II:&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 1. Right-click the Solution in the Solution Explorer and select Add -&amp;gt; Existing Project... &amp;gt;acad.exe&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 2. Right-click on the Project that has just been added and select Set as StartUp Project&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 3. Right-click on the Project and select Properties&lt;BR /&gt;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; &amp;nbsp;&amp;nbsp;&amp;nbsp; 4. Set the Debugger Type to Managed (v2.0, v1.1, v1.0)&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2010 11:17:39 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/debug-problems-with-visual-studio-2010-and-autocad-2009/m-p/2860366#M62607</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-20T11:17:39Z</dc:date>
    </item>
    <item>
      <title>Re: Debug problems with Visual Studio 2010 and AutoCAD 2009</title>
      <link>https://forums.autodesk.com/t5/net-forum/debug-problems-with-visual-studio-2010-and-autocad-2009/m-p/2860938#M62608</link>
      <description>&lt;P&gt;So, It seem that you didn't understand me.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;Debugging works well and all breakpoints are available. But when I try to call some Command from AutoCAD it says, that this Command is &lt;STRONG&gt;Unknown&lt;/STRONG&gt;. Only if I in &lt;STRONG&gt;debug&lt;/STRONG&gt; mode.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;I want to remind, that breakpoint at&amp;nbsp;IExtensionApplication.Initialize() works well and I can debug this method. I've marked this method with "Command" attribute and it is called on assembly load and I can debug it, but when plugin initialization finishes, I cannot call the method. AutoCAD environment says "&lt;STRONG&gt;Unknown command&lt;/STRONG&gt;"&amp;nbsp;&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2010 21:48:59 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/debug-problems-with-visual-studio-2010-and-autocad-2009/m-p/2860938#M62608</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-20T21:48:59Z</dc:date>
    </item>
    <item>
      <title>Re: Debug problems with Visual Studio 2010 and AutoCAD 2009</title>
      <link>https://forums.autodesk.com/t5/net-forum/debug-problems-with-visual-studio-2010-and-autocad-2009/m-p/2860962#M62609</link>
      <description>&lt;P&gt;Some more symptoms that may be can help to find solution&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;1 I start AutoCAD and I can to run any command from my plugin.&lt;/P&gt;&lt;P&gt;2 I attach to acad.exe process and all breakpoints becomes available&lt;/P&gt;&lt;P&gt;3 When I try to call some command to rich my break point than AutoCAD hangs&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2010 22:03:40 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/debug-problems-with-visual-studio-2010-and-autocad-2009/m-p/2860962#M62609</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-20T22:03:40Z</dc:date>
    </item>
    <item>
      <title>Re: Debug problems with Visual Studio 2010 and AutoCAD 2009</title>
      <link>https://forums.autodesk.com/t5/net-forum/debug-problems-with-visual-studio-2010-and-autocad-2009/m-p/2861024#M62610</link>
      <description>&lt;P&gt;1 or more things is happening.&lt;/P&gt;&lt;P&gt;1.&amp;nbsp; Your dll you reference in Debug is not there when it runs without debug, or the path has changed to it, or something like that.&lt;/P&gt;&lt;P&gt;2.&amp;nbsp; You are not autoloading it, and need to force netload it.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;What I would do...&amp;nbsp; I would run ACAD normally, and then force load the dll manually (NETLOAD command).&amp;nbsp; If that is working ok, then I would check the registry entry to see if it is properly mapped for the CURRENT user.&amp;nbsp; Yep it can be different for every user.&lt;/P&gt;&lt;P&gt;&amp;nbsp;&lt;/P&gt;&lt;P&gt;If you didn't make it past the first idea, then possibly the dll, is trying to copy to source the acad dlls (bad mojo), and that causes the Netloading process to abort.&lt;/P&gt;&lt;P&gt;jvj&lt;/P&gt;</description>
      <pubDate>Mon, 20 Dec 2010 23:04:28 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/net-forum/debug-problems-with-visual-studio-2010-and-autocad-2009/m-p/2861024#M62610</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2010-12-20T23:04:28Z</dc:date>
    </item>
  </channel>
</rss>

