Debugging DLLs in Visual Studio (see No. 2 on the list) may be what you are looking for (full disclosure: Yes, this is my personal website).
Using method # 1, you cannot view variables.
Using method # 2, step # 2, if you cannot open the project in the same instance of Visual Studio, you can run the project binary (that is, run it outside of Visual Studio, but make sure you run the debug version.) And attach the Visual Studio debugger to it (menu Debug β Attach to Process).
Here are the steps for method # 2, so no one should follow the link:
Attaching the use process to a DLL project. This is due to the Visual Studio debugger connecting to the running process.
- Open the DLL project in Visual Studio.
- Launch the application using the DLL. This application cannot be started from another instance of Visual Studio because the process will already have a debugger attached to it.
- Here you can add breakpoints and go through the DLL code loaded in Visual Studio (although the breakpoint will be disabled in the same way as in method 1).
Robert gowland
source share