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

Debuging DLL

4 REPLIES 4
SOLVED
Reply
Message 1 of 5
muthineni
465 Views, 4 Replies

Debuging DLL

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.
4 REPLIES 4
Message 2 of 5
Alfred.NESWADBA
in reply to: muthineni

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
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 3 of 5
muthineni
in reply to: Alfred.NESWADBA

I am using VS 2008, professional, vb.net, 32bit.
Message 4 of 5
Alfred.NESWADBA
in reply to: muthineni

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
Ingenieur Studio HOLLAUS ... www.hollaus.at ... blog.hollaus.at ... CDay 2024
------------------------------------------------------------------------------------
(not an Autodesk consultant)
Message 5 of 5
muthineni
in reply to: Alfred.NESWADBA

Thank you so much.. Now i am able to debug. Great Relief for me.

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