Re: Break points with a "?"
- From: "Oleg Starodumov" <com-dot-debuginfo-at-oleg>
- Date: Tue, 17 Jan 2006 12:11:24 +0200
> You are right on the configuration.
> The surrogate one which is hosted by dllhost.exe. We are using regsvcs
> to register and make a .tlb out of it which will be referenced by the
> traget app (in VB6.0).
>
> 1. I could not try with ATLTRACE, it was giving compile errors. I
> included Atlcom.h,Atlbase.h,AtlTrace.h and said "Dynamically link to
> ATL" in project properties but that did not help. It was throwing up
> many ambiguity errors in the above headers
> (TYPEDESC,IDLDESC,PARAMDESC,TYPEKIND,etc,...)
>
You can try using OutputDebugString function directly.
> 2. I tried attaching the dll to both dllhost.exe and also
> targetApp.exe(this is in VB6.0). But it wont break at the inserted
> break-points and "?" yet appears.
>
You should attach to dllhost.exe to debug the DLL.
> 3. Tried attaching the dll to only dllhost.exe, in this case, in the
> Debug->Module window, it shows that the "this.dll" has loaded the
> symbols info and points to the GlobalAssemblyCache where it has been
> loaded. But yet it wont break at the inserted break-points and "?" still
> appears.
>
So it looks like the DLL is managed?
Try these things:
- When attaching the debugger to dllhost.exe process, make sure that you select
both "Native" and "Common Language Runtime" debug engines (in Attach to Process dialog).
- After you have rebuilt the DLL, copy its .PDB file to the same directory where the DLL
is located (to the GAC). (This step is optional and not necessary if the first step helps)
Oleg
.
- References:
- Re: Break points with a "?"
- From: Oleg Starodumov
- Re: Break points with a "?"
- From: ravi
- Re: Break points with a "?"
- Prev by Date: RE: edit and continue in web projects and class libraries
- Next by Date: Re: Lost debugging when I applied SBS 2003 SP1
- Previous by thread: Re: Break points with a "?"
- Next by thread: Break points with a "?"
- Index(es):
Relevant Pages
|
Loading