Debugging

Debugging

Anonymous
Not applicable
941 Views
2 Replies
Message 1 of 3

Debugging

Anonymous
Not applicable

I'm using Revit 2013. I'm trying to learn C#. I programmed AutoCAD using VBA and LISP. When I debugged programs in Visual Basic for AutoCAD I was easily able to debug the program by stepping into the program line by line and the variables window would tell me what the variables were set to. I am basically brand new to C#. When I try to debug my simple macro by using the Debug pulldown do I "Attach to Process"? If so do I chose Revit? I tried this and when I click anywhere inside my macro the Step over/into/out functions are greyed out. I just need a basic understanding of how to get the debugging to work so that I could see what my variables are being set to and be able to send results to the output window. (like debug.print in visual basic. Any help with this would deeply appreciated.

0 Likes
942 Views
2 Replies
Replies (2)
Message 2 of 3

jeremytammik
Autodesk
Autodesk

Dear Gary,

Thank you for your query.

I would suggest a different approach, namely setting up Revit as the debugging process instead of attaching to process.

The exact process is documented step by step in great detail in the DevTV video and in the 'My first Revit plugin' tutorials available from the Revit developer page:

http://www.autodesk.com/developrevit

Here is more getting started material explaining lots of related topics and including pointers to the Visual Studio add-in wizards that simply and efficiently set up your add-in projects totally automatically on a single click, including automated setup of all debugging information:


I hope this helps.

Best regards,

Jeremy



Jeremy Tammik
Developer Technical Services
Autodesk Developer Network, ADN Open
The Building Coder

0 Likes
Message 3 of 3

Anonymous
Not applicable

I went through alot of that. Good stuff. The answer to my question seemed to be pretty simple now that I found it. Maybe there is also another way, I dont know. But I found on the Macro Manager dialog there is a button for "Step Into". Then I could proceed line by line using F10.

0 Likes