I unable to find “Start external program” In the Properties window, then click on Debug option

I unable to find “Start external program” In the Properties window, then click on Debug option

real_imrann
Community Visitor Community Visitor
628 Views
4 Replies
Message 1 of 5

I unable to find “Start external program” In the Properties window, then click on Debug option

real_imrann
Community Visitor
Community Visitor

I unable to find “Start external program” In the Properties window, then click on Debug option

To debug your plug-in code, you’re going to have to launch Revit from your Visual Studio debugger and load your plug-in into Revit.

 In order to be able to debug using Visual Studio, we have to make some manual edits to the project files by implementing the following steps:

  1. In the Solution Explorer window, right Click Lab1PlaceGroup and select Properties.
  2. In the Properties window, Go to Debug option and choose “Start external program”.
  3. Browse for “Revit.exe” file and normally the file will be present in this path(C:\Program Files\Autodesk\Revit 20xx\Revit.exe).

(Edit the file path for Revit.exe if you’ve installed it in a non-default location).

           Thus, the Properties settings allow you to set the executable to launch when you start the debugger:

0 Likes
629 Views
4 Replies
Replies (4)
Message 2 of 5

jeremy_tammik
Alumni
Alumni

The best way to find out is probably to search for something like "visual studio debug external":

    

https://duckduckgo.com/?q=visual+studio+debug+external

  

Jeremy Tammik Developer Advocacy and Support + The Building Coder + Autodesk Developer Network + ADN Open
0 Likes
Message 3 of 5

mblackman
Observer
Observer

for anyone else wondering, choose Debug Properties -> Create a new profile ->Executable

Message 4 of 5

ctm_mka
Collaborator
Collaborator

It seems it depends on the type of project you create, for instance if you choose "Class Library (.NET Framework)" for 2024 & down, then OP's directions are correct. But if you choose just "Class Library", its a bit different.

0 Likes
Message 5 of 5

Moustafa_K
Collaborator
Collaborator

see if this post helps

Moustafa Khalil
Cropped-Sharp-Bim-500x125-Autodesk-1
0 Likes