(Edit the file path for Revit.exe if you’ve installed it in a non-default location). Browse for “Revit.exe” file and normally the file will be present in this path( C:\Program Files\Autodesk\Revit 20xx\Revit.exe).In the Properties window, Go to Debug option and choose “Start external program”.In the Solution Explorer window, right Click Lab1PlaceGroup and select Properties.
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 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. Errors in your code are called bugs, and the process of stepping through your code examining the program execution flow and variable values is called debugging. Even if you haven’t made any mistakes that prevent Visual Studio from building your plug-in, it’s quite likely that you made a mistake in your program logic that causes it to produce different results from the ones you expected. It’s rare that you will write a program that runs perfectly the first time.
#CODERUNNER 2 TAKE CONTROL DEBUG HOW TO#
Learn how to use the Visual Studio debugger to step through your code line-by-line to follow the program execution and to watch the values of variables as they are changed by your code My First Revit Plug-in Overview > Lesson 1 > Lesson 2 > Lesson 3 > Lesson 4 > Lesson 5 > Lesson 6 > Lesson 7 > Lesson 8