Thanh Tien
Thanh Tien

Reputation: 31

how to debug C++ dll called from C++ DllImport

I wonder if there is any way to debug c++ dll called from C++ DllImport in VS 2010. I tried to attach the project into c++ application but it didn't work - didn't stop at a break point.

Any advice will be appreciated.

Upvotes: 0

Views: 1064

Answers (1)

Alex
Alex

Reputation: 7848

  1. Open the solution which has the code for the DLL
  2. Compile the DLL with debug symbols
  3. Start the program that loads the DLL
  4. Open "Attach to process" and choose the process of the program.

If the program has loaded the DLL you can now debug it.

Upvotes: 1

Related Questions