<?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: Using Revit Viewer 2018 to Debug in Visual Studio in Revit API Forum</title>
    <link>https://forums.autodesk.com/t5/revit-api-forum/using-revit-viewer-2018-to-debug-in-visual-studio/m-p/8931112#M44881</link>
    <description>&lt;P&gt;Hello again,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've found that "Use managed compatibility mode" under Debug &amp;gt; Options &amp;gt; Debugging &amp;gt; General must be checked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
    <pubDate>Thu, 25 Jul 2019 18:11:46 GMT</pubDate>
    <dc:creator>Anonymous</dc:creator>
    <dc:date>2019-07-25T18:11:46Z</dc:date>
    <item>
      <title>Using Revit Viewer 2018 to Debug in Visual Studio</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/using-revit-viewer-2018-to-debug-in-visual-studio/m-p/8524329#M44879</link>
      <description>&lt;P&gt;Hello, forum!&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;I’ve recently started using Visual Studio to code add ins for Revit and would like to be able to debug right from the VS console. Unfortunately, I only have access to Revit Viewer. I’ve tried putting the file path to the Revit.exe file under Project &amp;gt; Properties &amp;gt; Debug &amp;gt; Start External Program and adding “/viewer” to the command line arguments, but it always causes Revit to crash with error x0. Using the Revit Viewer shortcut file path also results in an error as VS expects a .exe file. The only work around I’ve found so far is to run the add in directly from an open Revit Viewer window, but then I lose access to the debugging tools in VS.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;On Jeremy Tammik's suggestion, I opened Revit Viewer and used "Attach to Process" to run my add in and debug it. So far, that's been working well (Thanks, Jeremy!), but I'm still curious to know if anyone has come up with a way to make Revit Viewer&amp;nbsp;open when the addin is run.&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks!&lt;/P&gt;</description>
      <pubDate>Tue, 15 Jan 2019 18:21:56 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/using-revit-viewer-2018-to-debug-in-visual-studio/m-p/8524329#M44879</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-01-15T18:21:56Z</dc:date>
    </item>
    <item>
      <title>Re: Using Revit Viewer 2018 to Debug in Visual Studio</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/using-revit-viewer-2018-to-debug-in-visual-studio/m-p/8800190#M44880</link>
      <description>&lt;P&gt;Hi Lia,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Sorry for the late reply. Adding&amp;nbsp;&lt;EM&gt;&lt;STRONG&gt;/viewer /language ENU&lt;/STRONG&gt;&lt;/EM&gt; to the Command line arguments works for me (tested both in 2018 and 2019).&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&lt;span class="lia-inline-image-display-wrapper lia-image-align-inline" image-alt="revitViewer.PNG" style="width: 653px;"&gt;&lt;img src="https://forums.autodesk.com/t5/image/serverpage/image-id/638070i6EA8970272734BB3/image-size/large?v=v2&amp;amp;px=999" role="button" title="revitViewer.PNG" alt="revitViewer.PNG" /&gt;&lt;/span&gt;&lt;/P&gt;</description>
      <pubDate>Sun, 19 May 2019 08:39:44 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/using-revit-viewer-2018-to-debug-in-visual-studio/m-p/8800190#M44880</guid>
      <dc:creator>giobro</dc:creator>
      <dc:date>2019-05-19T08:39:44Z</dc:date>
    </item>
    <item>
      <title>Re: Using Revit Viewer 2018 to Debug in Visual Studio</title>
      <link>https://forums.autodesk.com/t5/revit-api-forum/using-revit-viewer-2018-to-debug-in-visual-studio/m-p/8931112#M44881</link>
      <description>&lt;P&gt;Hello again,&amp;nbsp;&lt;/P&gt;&lt;P&gt;I've found that "Use managed compatibility mode" under Debug &amp;gt; Options &amp;gt; Debugging &amp;gt; General must be checked.&amp;nbsp;&lt;/P&gt;&lt;P&gt;Thanks for your help!&lt;/P&gt;</description>
      <pubDate>Thu, 25 Jul 2019 18:11:46 GMT</pubDate>
      <guid>https://forums.autodesk.com/t5/revit-api-forum/using-revit-viewer-2018-to-debug-in-visual-studio/m-p/8931112#M44881</guid>
      <dc:creator>Anonymous</dc:creator>
      <dc:date>2019-07-25T18:11:46Z</dc:date>
    </item>
  </channel>
</rss>

