AutoCAD 2010 and the .NET debugger

AutoCAD 2010 and the .NET debugger

Anonymous
Not applicable
532 Views
2 Replies
Message 1 of 3

AutoCAD 2010 and the .NET debugger

Anonymous
Not applicable
Hello,

Does anyone know if the debugger in Visual Studio operates while in Autocad while .NET is executing. We tried it and nothing happens. It just skips right over it.

THX,
Dan
0 Likes
533 Views
2 Replies
Replies (2)
Message 2 of 3

Anonymous
Not applicable
Hello dan.mcrae,
It works in non-express versions of Visual Studio without any modification
except to tell it to launch Autocad when you start debugging (or you can
attach to the Autocad process before net loading your code). If you are using
an Express version of Visual Studio there is a hack you need to implement
before you can debug. Here's is Kean Walmsley's "Through the Interface" article
on setting up Express debugging: http://through-the-interface.typepad.com/through_the_interface/2006/07/debugging_using.html

> Hello,
>
> Does anyone know if the debugger in Visual Studio operates while in
> Autocad while .NET is executing. We tried it and nothing happens. It
> just skips right over it.
>
> THX,
> Dan
0 Likes
Message 3 of 3

Anonymous
Not applicable
Dan,

If you're not using the Express version, then:

1. Go to your solution's Properties (menu: Project/ Properties)
2. Select the Debug Tab
3. Select Start external program: C:\Program Files\AutoCAD 2010\acad.exe
4. Set Working Directory: C:\Program Files\AutoCAD 2010
5. Ensure your active configuration is Debug (if you look at this, if not it may be there by default)
6. Click the Start Debugging icon (or F5), it should open AutoCAD for you
7. Type Netload, then select your debug dll (eg. C:\....\ProjectName\ProjectName\bin\Debug\ProjectName.dll)
8. Type in your command and now its in debug mode! If you have a breakpoint set, it should find it.
0 Likes