Re: No symbols have been loaded for this document




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: 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)
  • Re: Remote debugging MSVC++ 6.0, unable to break into COM DLL
    ... In the Breakpoints window, the Edit Code button is not available for the ... But breakpoints in myDll.dll don't work anyway... ... > When the DLL is loaded, what happens if you open Breakpoints window, ... Copy the DLL and its client to the target system, ...
    (microsoft.public.vc.debugger)
  • Re: Disable breakpoints inside dll
    ... Change the project type to dll ... Creating a new exe which its only goal is to load and run the dll. ... >> Trying to debug it with the debugger, the exe dose run but breakpoints ...
    (microsoft.public.win32.programmer.kernel)
  • Re: Mysteriously changing variable
    ... Breakpoints should work on a COM DLL, there is nothing special about a COM ... >is why I have to use a trace file. ... >variable changes. ...
    (microsoft.public.dotnet.languages.vc)
  • Re: Mysteriously changing variable
    ... breakpoints in the IDE. ... So how do you run the dll in your IDE? ... >>is why I have to use a trace file. ... >>the variable changes. ...
    (microsoft.public.dotnet.languages.vc)

Loading