Debuging DLL

Debuging DLL

Anonymous
Not applicable
829 Views
4 Replies
Message 1 of 5

Debuging DLL

Anonymous
Not applicable
Can anyone explain me how to debug the dll by keeping the breakpoints and know which line error is coming. Now i have created a DLL and when i load that one in a drawing, it is showing error giving some description and line number. Is it possible to keep a breakpoint and run the program. Thank you.
0 Likes
Accepted solutions (1)
830 Views
4 Replies
Replies (4)
Message 2 of 5

Alfred.NESWADBA
Consultant
Consultant

Hi,

 

short answer: look >>>here<<< ... scroll down to the part from August, 23rd.

And a little search with Google also gives a lot of videos to watch. 😉

 

For a detailed description there are some things missing:

a) do you work with VS2008 or 2010

b) do you work with VS...Express or VS..Professional

c) do you work with VB.NET or C# or ...

d) (not as important but good to know) 32bit or 64bit

 

- alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 3 of 5

Anonymous
Not applicable
I am using VS 2008, professional, vb.net, 32bit.
0 Likes
Message 4 of 5

Alfred.NESWADBA
Consultant
Consultant
Accepted solution

Hi,

 

then go to your start-project (in VS) ==> right mouse click ==> properties

Within the property-window change to tab "DEBUG", find the field for "start external program" (hope it's called so) and select the ACAD.EXE to be started.

Also be sure that your project is set to "Debug" and not to "Release" (you see that in project-properties ==> tab "compile" ==> there you find on top a combobox for setting that).

The next step is just to start VS-"Start Debugging" (green "Play"-symbol or pull-down-menu "Debug" ==> "start debugging").

 

That will start now AutoCAD, within AutoCAD you can now NETLOAD your dll and are "Debug-Mode", so breakpoints should stop your code running and exceptions will also break your code at the line where it occured (as long as you didn't changed to much options within VS/within your project-settings).

 

HTH. - alfred -

------------------------------------------------------------------------------------
Alfred NESWADBA
ISH-Solutions GmbH / Ingenieur Studio HOLLAUS
www.ish-solutions.at ... blog.ish-solutions.at ... LinkedIn ... CDay 2026
------------------------------------------------------------------------------------

(not an Autodesk consultant)
Message 5 of 5

Anonymous
Not applicable
Thank you so much.. Now i am able to debug. Great Relief for me.
0 Likes