简体   繁体   中英

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.

  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.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM