From the course: Revit: Creating C# Plugins

Unlock the full course today

Join today to access over 22,600 courses taught by industry experts or purchase this course individually.

Debugging

Debugging

From the course: Revit: Creating C# Plugins

Start my 1-month free trial

Debugging

- [Instructor] We have learned how to automatically compile our command, and copy the files into the required directory. We can also automatically launch Revit from within Visual Studio too and test our command. To do this, we need to run the solution in debug mode. This will allow us to test our command and investigate any bugs that it might contain. To test the command, we need to tell Visual Studio to run Revit once debug mode is started. To do this, go to the debug menu at the top, and then, properties at the bottom. And this is where we can add Revit. To do that, we need to tell Visual Studio what .exe file to run; that is Revit.exe. To add this, click the Start external program option, and then Browse. Navigate to where you have Revit installed. On my machine, this is in C:, Program Files, Autodesk, Revit 2019. And in here, we can find Revit.exe. Go ahead and click Open to add that in. So now we can test our command directly from Visual Studio. Let's try that by going up to the…

Contents