Re: No symbols have been loaded for this document

Tech-Archive recommends: Repair Windows Errors & Optimize Windows Performance




I have a solution with three projects, a C# Windows application using
a managed C++ dll (which is a wrapper for the C++ dll) and a native C+
+ dll. When I try to debug I can only set breakpoints to the C#
application and the managed C++ wrapper dll, but not in the native C++
dll project. Any breakpoints there lead to: "The breakpoint will not
currently be hit No symbols have been loaded for this document.". All
three projects generating a .pdb file which has the same date and time
as the dlls generated so its generated anytime I build the solution.
In the output window (loading symbols) and the Debug -> Windows ->
Modules window only the C# application and the managed C++ dll occur.
Calling methods from the native C++ dll work properly so the dll is
working and used properly. Why are the symbols for this dll are not
loaded and how can I get the breakpoints working?

You need to enable mixed mode debugging.
If you are debugging from the C# app's project, check "Enable unmanaged debugging"
in the project settings. If you are debugging from a C++ project, find "Debugger Type"
setting (in Project properties | Configuration Properties | Debugging) and set it
to Mixed.

--
Oleg
[VC++ MVP http://www.debuginfo.com/]



.



Relevant Pages

  • Re: Visual Studio Breakpoint Question.
    ... > "One or more breakpoints cannot be set and have been disabled. ... Sometimes, if you're calling a dll from your code, you can't set the ... and then set breakpoints in the dll code. ...
    (microsoft.public.vc.language)
  • Re: breakpoints dont work any more!
    ... > breakpoints are disabled too. ... Make sure the executable is built with debug information. ... Start debugging, and check that the executable is loaded from the expected location ... If you are debugging a .DLL file, insert DebugBreakor "__asm int 3" statements ...
    (microsoft.public.vc.debugger)
  • 64Bit TSP - no UI
    ... happens except the selection window of telephon.cpl ... init-routines of the 64Bit dll the breakpoints will be hit. ... I wrote a small app which consumes my 64 bit dll. ...
    (microsoft.public.win32.programmer.tapi)
  • Re: Setting global breakpoint using einspect (Global debugging)
    ... A privileged user can set one or more global ... with the case of the procedure/function name as it exists and as ... that the procedure/function exists in the DLL that you've loaded ...
    (comp.sys.tandem)
  • Re: question about FreeLibrary
    ... where is the "main Dialog's destructor" code located? ... It can't be in the DLL, ... that you had breakpoints set in the DLL, and when the debugger failed to be able to re-set ... MVP Tips:http://www.flounder.com/mvp_tips.htm ...
    (microsoft.public.vc.mfc)