.NET
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

AutoCAD 2010 and the .NET debugger

2 REPLIES 2
Reply
Message 1 of 3
not.testee
440 Views, 2 Replies

AutoCAD 2010 and the .NET debugger

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
2 REPLIES 2
Message 2 of 3
Anonymous
in reply to: not.testee

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
Message 3 of 3
bjhuffine
in reply to: not.testee

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.

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

Post to forums  

Autodesk DevCon in Munich May 28-29th


Autodesk Design & Make Report

”Boost