I'd like to debug a project which generates a dll. The dll is used by my an application (without debug info). I'm building my dll to the plugin folder of my application but when I want to debug I get an error message that the debug information cannot be found. I looked at some threads in this forum but nothing helped. All the debug stuff is turned on and the symbol files are generated but I'm not quite shure if they have to be in a specific folder. Currently I'm building all the debug information to the folder where the dll is generated.
|
| apkernMe Wednesday, September 16, 2009 9:03 AM |
Do your breakpoints bind (turn red while running)?
Is the DLL native or managed? (Did you write it in C++?)
You may need to do interop debugging (or sometimes called mixed mode). This is available from the project properties depending upon the project type. - Marked As Answer byrchiodo - MSFTModeratorTuesday, October 13, 2009 6:21 PM
-
|
| rchiodo - MSFT Tuesday, October 13, 2009 6:21 PM |
Hello,
What kind of dll it is if I may ask? Is it native or managed? Is our application (without debug info) managed or unmanaged? If we manually load the symbol file, how about the issue? (Open the Modules window when debugging and right click the module name, choose Load symbols)
Here is a walkthrough of debugging native dlls, hope it helps: http://msdn.microsoft.com/en-us/library/c91k1xcf(VS.80).aspx
Best regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have any feedback, please tell us. Welcome to the All-In-One Code Framework!- Edited byRoahn LuoMSFT, ModeratorThursday, September 17, 2009 2:43 AMlink.
- Edited byRoahn LuoMSFT, ModeratorThursday, September 17, 2009 2:44 AMlink
-
|
| Roahn Luo Thursday, September 17, 2009 2:42 AM |
I am building a native DLL but I don't know if my exe is managed or not! I looked at the walkthrough but everything seems fine in my project. If I start the debugging anyway, I can attach to the exe with "Debug->Attach to process..." and debugging works fine. But it's not a very convenient way to debug... |
| apkernMe Thursday, September 17, 2009 10:08 AM |
Hello,
Have you tried loading the symbols manually afterwe press F5 tostartdebugging? How about the result? If we generate the debug information of our project, how about the issue? If our application isunmanaged, please go to project property page -> Configuration Properties -> C/C++ -> General -> Debug Information Format and enable it. If our application is managed, please make sure our Debug Info is set to full (which is the default value).
Best regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have any feedback, please tell us.
Welcome to the All-In-One Code Framework! |
| Roahn Luo Tuesday, September 22, 2009 2:09 AM |
I tried to set the debugger type to "Managed only". My application starts now and there's no message about missing debug symbols. But I am not able to debug anything although VC++ seems to be running, the breakpoints are not hit. |
| apkernMe Tuesday, September 29, 2009 7:20 AM |
Well, please change the code type to Native type since this is a native dll. Best regards,
Please remember to mark the replies as answers if they help and unmark them if they provide no help. If you have any feedback, please tell us.
Welcome to the All-In-One Code Framework!- Marked As Answer byrchiodo - MSFTModeratorTuesday, October 13, 2009 6:21 PM
- Unmarked As Answer byrchiodo - MSFTModeratorTuesday, October 13, 2009 6:21 PM
-
|
| Roahn Luo Tuesday, September 29, 2009 7:27 AM |
Do your breakpoints bind (turn red while running)?
Is the DLL native or managed? (Did you write it in C++?)
You may need to do interop debugging (or sometimes called mixed mode). This is available from the project properties depending upon the project type. - Marked As Answer byrchiodo - MSFTModeratorTuesday, October 13, 2009 6:21 PM
-
|
| rchiodo - MSFT Tuesday, October 13, 2009 6:21 PM |