Discussion:
symbols not loaded for document
(too old to reply)
jonpb
2008-03-20 22:01:35 UTC
Permalink
Hello,

I am trying to debug a C++ dll which is being called by a C# application
but none of my break points work because the symbols are not getting
loaded by the debugger.

1) Using VS 2008
2) Set C# app as debug command
3) linker output set to folder of C# app
4) /ZI compiler switch used
5) I tried deleting both the dll name pdb and vc90.pdb and recompiling
6) Output says that symbols are loaded for the C# app
7) I know that my newly compiled dll is linked by the C# app because a
new test messagebox is displayed.

Using process explorer I see that the dll is delay loaded by the C# app,
(i.e. it is only loaded after the first call to it). Is this a problem?
If so, how do I solve that problem?

What am I doing wrong?

Thanks,
John
jonpb
2008-03-25 23:15:53 UTC
Permalink
Post by jonpb
Hello,
I am trying to debug a C++ dll which is being called by a C# application
but none of my break points work because the symbols are not getting
loaded by the debugger.
In case anyone is interested there is a Debugger Type property setting.
If set to Auto you cannot debug a C++ dll project if the Command
property is a C# application. You have to set Debugger Type to Mixed or
Native Only.

Loading...