Link to home
Create AccountLog in
Avatar of graber
graberFlag for United States of America

asked on

Debugging a Dll used by an application

I have an application that uses a dll.  They are both in the same solution.  I am having a problem setting break points inside the dll and debugging it.  Thanks guys.  I've seen some of the documentation but still hitting a wall.  Thanks.
Gregg
ASKER CERTIFIED SOLUTION
Avatar of JIEXA
JIEXA
Flag of Israel image

Link to home
membership
Create an account to see this answer
Signing up is free. No credit card required.
Create Account
Avatar of graber

ASKER

I have to do this from the exe side.  There are configuration files located in that directory that won't be seen from the dll side.
Avatar of graber

ASKER

Actually that will work.  There are only 3 files that I need. I'll just copy them into the start up folder.  Thanks.  But could you tell me who to do the same thing from the exe side?
Avatar of graber

ASKER

The application launches like it should but the break points are not setting.
You can tell in the Debugging what's the start directory for the DLL.
Again: the startup project is of the DLL, not the EXE.
Avatar of DanRollins
I seem to recall having this problem at one point, and solved it by breakpointing early in the EXE.  As soon as the EXE was in debug mode, I could then breaakpoint the DLL (and/or single-step into it).

But it shouldn't be necessary to do it that way... if the DLL is marked as a dependancy of the EXE, VS should accept breakpoints in it.
Avatar of graber

ASKER

Set the Debug option "Debug Type" to mixed for both projects and vowala.
Avatar of graber

ASKER

this will work but it wasn't the cleanest.