Unable to debug Simple Revit 2019 Plugin with VS

Unable to debug Simple Revit 2019 Plugin with VS

t.a.gordeeva97
Explorer Explorer
477 Views
3 Replies
Message 1 of 4

Unable to debug Simple Revit 2019 Plugin with VS

t.a.gordeeva97
Explorer
Explorer

Hi, I'm trying to master revit api, but I can open it in debuge mod. When I try to start debugging, revit starts but stops on the loading window (a small window with demo geometry) and nothing else happens . Start without debug works and Revit opens.  I attempt to alter debug setting but nothing helped me.

 

0 Likes
478 Views
3 Replies
Replies (3)
Message 2 of 4

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @t.a.gordeeva97 ,

 

Are you getting any error messages?

Could you please share with me the screenshot of the loading window you are getting?

Also, Please take a look at the below links

1) https://forums.autodesk.com/t5/revit-api-forum/debugging-in-vs-does-not-work/td-p/10596519 

2) https://forums.autodesk.com/t5/revit-api-forum/advice-on-debugging-c-in-visual-studio/td-p/6496811 

3) https://stackoverflow.com/questions/48706016/debugging-revit-plug-in-through-the-visual-studio-ide 


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes
Message 3 of 4

t.a.gordeeva97
Explorer
Explorer

Hi @naveen.kumar.t

Thank u for sharing links. Unfortunately, it doesn't help in my case. I can share screenshot.Снимок.PNG

0 Likes
Message 4 of 4

naveen.kumar.t
Autodesk Support
Autodesk Support

Hi @t.a.gordeeva97 ,

 

Sorry, I don't have a specific answer to why this didn't work on your end.

 

To me, this looks like a problem with Visual Studio.

 

One suggestion I have is

1)Open your Visual Studio Revit project
2)Open Revit
3)After Revit got opened, Inside Visual studio press Ctrl+Alt+P
4)In "Available Processes", Select Revit.exe
5)Click "Attach".

 

Also, Please take a look at the below link

https://stackoverflow.com/questions/42158547/use-managed-compatibility-mode-or-enable-native-code-de... 

 

I also recommend you search this Revit API forum for similar issues.

 

Some suggestions/solutions given by some experts in this Revit API forum may help you to resolve your problem.


Naveen Kumar T
Developer Technical Services
Autodesk Developer Network

0 Likes