• Advertisement
Sign in to follow this  

DLL Debugging

This topic is 3697 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

I've setup the base system for a small engine-ish library I'm working on and am at the point where I can start developing a game along side it. As I've started doing that, I've noticed that if I try to step-into one of the engine's methods from the DLL, it doesn't allow me to. Is there a way to set it up so that I can step-into the code from the library? Another thing is, I've been copying the DLL over from the engine project's directory every time I make a change and compile. Hopefully I'll be making less and less changes as I get the bugs worked out, but is there a way to have it always link with that DLL location, rather than having to copy it over all the time?

Share this post


Link to post
Share on other sites
Advertisement
You did not mention your IDE. But the short answer to your question is "yes".

There are usually ways to do both. For example if you're using Visual Studio, then you can build your DLL as "debug" and to make debugging easier add the DLL project to your solution. You can also use the "Post-Build" settings to automatically copy your DLL upon building to the correct location. Alternatively (but not less recommended) you can use relative paths when setting the DLL paths as input to the linker (in VS this is in the Linker settings).

Share this post


Link to post
Share on other sites
Oh sorry, I'm using Visual C++ 2008 Express.

For some reason, the step-into just started working. I will try the post-build though, thanks!

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement