Is there any way to debug c++ dll called from C# DllImport?

后端 未结 3 616
野性不改
野性不改 2020-12-25 12:58

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

3条回答
  •  刺人心
    刺人心 (楼主)
    2020-12-25 13:25

    If you run up a C++ debugger while your program is running, and then go to Debug->Attach To Process->Find your process and attach to it. You should be able to debug it.

    Make sure that you have compiled your DLL with the debugger symbols. (.pdb) file and that they are in the directory where you run things from.

提交回复
热议问题