Reputation: 61
I was wondering how to debug multiple projects at once (specifically, project that builds into an executable and a project that builds into a DLL). More specifically, I want to step through the DLL, whose source is open to me.
I was wondering how to do this for both C++ and C# projects?
I think I know how to do this for the C# case:
Does this sound correct? If not, could anyone tell me what I am missing?
More importantly, how do I do this for the C++ case? Thanks!
R
Upvotes: 3
Views: 1377
Reputation: 9
Which editor you are using? If visual studio, you can run the project and link the exe at run time.Most of the steps you have already written.
Upvotes: 0
Reputation: 283634
Looks like you have most of the steps in place. Make sure the .pdb file is available to the debugger. The C++ compiler will automatically create it in the output directory, but Visual Studio copies referenced DLLs as part of the C# build process and probably didn't include that all-important debug data. Copying it to the C# output directory should be sufficient.
Upvotes: 2