Revit API Forum
Welcome to Autodesk’s Revit API Forums. Share your knowledge, ask questions, and explore popular Revit API topics.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

Debug mode

1 REPLY 1
SOLVED
Reply
Message 1 of 2
abajenov
223 Views, 1 Reply

Debug mode

Can anybody help me. I am new to API and decided to use debug mode for better understanding of my code. However, every debugging session launches a new instance of Revit. Is there any way to debug file that is already opened? And maybe somebody know, how to pin variables forever. They disappear when I stop debugging. Google didn't help me with that. Thank you in advance and have a nice day!

1 REPLY 1
Message 2 of 2
jeremy_tammik
in reply to: abajenov

Yes, there are several ways to debug in an existing Revit session. One way is to 'attach to process':

  

  

You can also launch Revit.exe inside the Visual Studio debugger and then use the 'hot reload' feature to update you code when you make a modification:

  

  

The Building Coder lists more possibilities for Edit and Continue, Debug without Restart, Live Development:

  

  

Jeremy Tammik, Developer Advocacy and Support, The Building Coder, Autodesk Developer Network, ADN Open

Can't find what you're looking for? Ask the community or share your knowledge.

Post to forums  

Autodesk Customer Advisory Groups


Rail Community