How to enable BreakPoint in a DLL

Author Message
 Posted 4/4/2011 10:30:51 PM
StrataFrame User

StrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame UserStrataFrame User

Group: StrataFrame Users
Last Login: 5/14/2013 5:19:24 AM
Posts: 430, Visits: 507
I am trying to trace through some of my code. I have all my base classes set up in a DLL and am trying to trace through code.I have a BreakPoint set in the code that creates the DLL (say a messageBox) , the MessageBox displays fine, but the program does not stop and allow me to trace . Any BreakpOintsa I have on the Main program are workong fine..... How do I get BreakPoints to work frm a called DLL ?
Post #29833
Add to Twitter Add to Facebook
 Posted 4/5/2011 3:55:21 AM
Strategic Support Team Member

Strategic Support Team Member

Group: Forum Members
Last Login: 10/6/2011 5:13:18 AM
Posts: 2,019, Visits: 6,605
I'm guessing that you don't have the DLL project included in your solution. This is the easiest way to debug. If you include the project in your solution, you can then just set a break point as you normally would.  Note that if you use C#, there really isn't a disadvantage to just including the project in the solution. VB does some sort of background compile thing that kills you if you have a large solution with lots of projects. Also note that it is completely fine to include a project in more than one solution.

The other way would be to compile the DLL in debug mode (so the debugging info is available), then set the break in you main code just before the DLL code is called (or on the line that calls the DLL code).

Hope that helps!


Tags:

Edited: 4/5/2011 3:58:33 AM by Greg McGuffey
Post #29839
Add to Twitter Add to Facebook


Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse

Site Map - Home - My Account - Forum - About Us - Contact Us - Try It - Buy It

Microsoft, Visual Studio, and the Visual Studio logo are trademarks or registered trademarks of Microsoft Corporation in the United States and/or other countries.