473,386 Members | 1,908 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

debugging

is there a way, using windbg.exe and dbgclr.exe together, to debug a mixed
DLL? (without using VS IDE)
i.e., to sort of make windbg "take over" when it gets to the unmanaged
part...
?
Nov 17 '05 #1
13 2243
You can use windbg and SOS (Son Of Strike) together. Google the MSDN site
for instructions.

Ronald Laeremans
Visual C++ team

"Bonj" <benjtaylor at hotpop d0t com> wrote in message
news:OX**************@TK2MSFTNGP15.phx.gbl...
is there a way, using windbg.exe and dbgclr.exe together, to debug a mixed
DLL? (without using VS IDE)
i.e., to sort of make windbg "take over" when it gets to the unmanaged
part...
?

Nov 17 '05 #2
Son of Strike! Sound impressive, I'll check it out!

"Ronald Laeremans [MSFT]" <ro*****@online.microsoft.com> wrote in message
news:OE**************@TK2MSFTNGP10.phx.gbl...
You can use windbg and SOS (Son Of Strike) together. Google the MSDN site
for instructions.

Ronald Laeremans
Visual C++ team

"Bonj" <benjtaylor at hotpop d0t com> wrote in message
news:OX**************@TK2MSFTNGP15.phx.gbl...
is there a way, using windbg.exe and dbgclr.exe together, to debug a
mixed DLL? (without using VS IDE)
i.e., to sort of make windbg "take over" when it gets to the unmanaged
part...
?


Nov 17 '05 #3
Is it possible to download this SOS thing?
"Ronald Laeremans [MSFT]" wrote:
You can use windbg and SOS (Son Of Strike) together. Google the MSDN site
for instructions.

Ronald Laeremans
Visual C++ team

"Bonj" <benjtaylor at hotpop d0t com> wrote in message
news:OX**************@TK2MSFTNGP15.phx.gbl...
is there a way, using windbg.exe and dbgclr.exe together, to debug a mixed
DLL? (without using VS IDE)
i.e., to sort of make windbg "take over" when it gets to the unmanaged
part...
?


Nov 17 '05 #4
Doesn't it not come already with the debugger package or with the framework
itself ?

D:\Program Files\Debugging Tools for Windows\clr10\sos.dll

D:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\sos.d ll

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Bonj" <Bo**@discussions.microsoft.com> wrote in message
news:7D**********************************@microsof t.com...
Is it possible to download this SOS thing?
"Ronald Laeremans [MSFT]" wrote:
You can use windbg and SOS (Son Of Strike) together. Google the MSDN site for instructions.

Ronald Laeremans
Visual C++ team

"Bonj" <benjtaylor at hotpop d0t com> wrote in message
news:OX**************@TK2MSFTNGP15.phx.gbl...
is there a way, using windbg.exe and dbgclr.exe together, to debug a mixed DLL? (without using VS IDE)
i.e., to sort of make windbg "take over" when it gets to the unmanaged
part...
?


Nov 17 '05 #5
Oh yes, I have got it. But it doesn't work.
Sorry for being a bit thick here, but if I take the following steps, am I
doing it right?

1) Open a command prompt, run the environment variables batch file, and
build the managed program in debug mode
2) Start windbg.exe, and open the source files
3) Go to 'File', 'Open Executable', and choose the program that I built
4) Type ".load sos" in the command window. (When I do this, it does nothing
great, but doesn't complain.)
5) Set a breakpoint, and press F5.... but it doesn't get hit and the program
carries on oblivious

Then should it be able to debug managed code?
Or is there a whole load of other things I need to do for it to succeed?
"Ivan Brugiolo [MSFT]" <iv******@online.microsoft.com> wrote in message
news:uJ**************@TK2MSFTNGP14.phx.gbl...
Doesn't it not come already with the debugger package or with the
framework
itself ?

D:\Program Files\Debugging Tools for Windows\clr10\sos.dll

D:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\sos.d ll

--
This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Bonj" <Bo**@discussions.microsoft.com> wrote in message
news:7D**********************************@microsof t.com...
Is it possible to download this SOS thing?
"Ronald Laeremans [MSFT]" wrote:
> You can use windbg and SOS (Son Of Strike) together. Google the MSDN site > for instructions.
>
> Ronald Laeremans
> Visual C++ team
>
> "Bonj" <benjtaylor at hotpop d0t com> wrote in message
> news:OX**************@TK2MSFTNGP15.phx.gbl...
> > is there a way, using windbg.exe and dbgclr.exe together, to debug a mixed > > DLL? (without using VS IDE)
> > i.e., to sort of make windbg "take over" when it gets to the
> > unmanaged
> > part...
> > ?
> >
> >
>
>
>


Nov 17 '05 #6
Ivan, I did exactly what it said in this article
http://msdn.microsoft.com/msdnmag/is...r/default.aspx
and it resulted in an error. The output was this:

Symbol search path is: C:\Documents and Settings\TheMagicBonj\My
Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug

Microsoft (R) Windows Debugger Version 6.3.0017.0
Copyright (c) Microsoft Corporation. All rights reserved.

CommandLine: "C:\Documents and Settings\TheMagicBonj\My
Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug\ExceptApp.exe"
Symbol search path is: C:\Documents and Settings\TheMagicBonj\My
Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug
Executable search path is:
ModLoad: 00400000 00408000 ExceptApp.exe
ModLoad: 7c900000 7c9b0000 ntdll.dll
ModLoad: 78800000 7883a000 C:\WINDOWS\system32\mscoree.dll
ModLoad: 7c800000 7c8f4000 C:\WINDOWS\system32\KERNEL32.dll
ModLoad: 77dd0000 77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
ModLoad: 77e70000 77f01000 C:\WINDOWS\system32\RPCRT4.dll
(d30.694): Break instruction exception - code 80000003 (first chance)
eax=00241eb4 ebx=7ffdc000 ecx=00000007 edx=00000080 esi=00241f48
edi=00241eb4
eip=7c901230 esp=0012fb20 ebp=0012fc94 iopl=0 nv up ei pl nz na pe
nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
efl=00000202
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
ntdll.dll -
ntdll!DbgBreakPoint:
7c901230 cc int 3
0:000> g
ModLoad: 77f60000 77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
ModLoad: 77c10000 77c68000 C:\WINDOWS\system32\msvcrt.dll
ModLoad: 77f10000 77f56000 C:\WINDOWS\system32\GDI32.dll
ModLoad: 77d40000 77dd0000 C:\WINDOWS\system32\USER32.dll
ModLoad: 791b0000 793e2000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor wks.dll
ModLoad: 7c000000 7c054000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\MSVCR 70.dll
ModLoad: 79040000 79079000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\fusio n.dll
ModLoad: 7c9c0000 7d1d4000 C:\WINDOWS\system32\SHELL32.dll
ModLoad: 773d0000 774d2000
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0.2600.2180_x-ww_a84f1ff9\comctl32.dll
ModLoad: 5d090000 5d127000 C:\WINDOWS\system32\comctl32.dll
ModLoad: 79780000 7996c000
c:\windows\microsoft.net\framework\v1.0.3705\mscor lib.dll
ModLoad: 79970000 79c98000
c:\windows\assembly\nativeimages1_v1.0.3705\mscorl ib\1.0.3300.0__b77a5c561934e089_d3f49f0e\mscorlib. dll
ModLoad: 79510000 79521000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor sn.dll
ModLoad: 79430000 7947a000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\MSCOR JIT.DLL
ModLoad: 51820000 5188b000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\diasy mreader.dll
ModLoad: 774e0000 7761c000 C:\WINDOWS\system32\ole32.dll
(d30.694): CLR exception - code e0434f4d (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=0012f4fc ebx=00aae168 ecx=0014d648 edx=00002aba esi=00000000
edi=00000000
eip=7c81eb33 esp=0012f4f8 ebp=0012f54c iopl=0 nv up ei pl zr na po
nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
efl=00000246
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\system32\KERNEL32.dll -
KERNEL32!RaiseException+0x52:
7c81eb33 5e pop esi
0:000> .load sos
0:000> !threads
*** ERROR: Symbol file could not be found. Defaulted to export symbols for
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor wks.dll -
PDB symbol for mscorwks.dll not loaded
failed to load from resource.Failed to load SOS data.
No valid SOS data table found.
"Ivan Brugiolo [MSFT]" <iv******@online.microsoft.com> wrote in message
news:uJ**************@TK2MSFTNGP14.phx.gbl...
Doesn't it not come already with the debugger package or with the
framework
itself ?

D:\Program Files\Debugging Tools for Windows\clr10\sos.dll

D:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\sos.d ll

--
This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Bonj" <Bo**@discussions.microsoft.com> wrote in message
news:7D**********************************@microsof t.com...
Is it possible to download this SOS thing?
"Ronald Laeremans [MSFT]" wrote:
> You can use windbg and SOS (Son Of Strike) together. Google the MSDN site > for instructions.
>
> Ronald Laeremans
> Visual C++ team
>
> "Bonj" <benjtaylor at hotpop d0t com> wrote in message
> news:OX**************@TK2MSFTNGP15.phx.gbl...
> > is there a way, using windbg.exe and dbgclr.exe together, to debug a mixed > > DLL? (without using VS IDE)
> > i.e., to sort of make windbg "take over" when it gets to the
> > unmanaged
> > part...
> > ?
> >
> >
>
>
>


Nov 17 '05 #7
Did you set the symbols path correctly?

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Bonj" <benjtaylor at hotpop d0t com> wrote in message
news:eP**************@TK2MSFTNGP09.phx.gbl...
Ivan, I did exactly what it said in this article
http://msdn.microsoft.com/msdnmag/is...r/default.aspx
and it resulted in an error. The output was this:

Symbol search path is: C:\Documents and Settings\TheMagicBonj\My
Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug

Microsoft (R) Windows Debugger Version 6.3.0017.0
Copyright (c) Microsoft Corporation. All rights reserved.

CommandLine: "C:\Documents and Settings\TheMagicBonj\My
Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug\ExceptApp.exe"
Symbol search path is: C:\Documents and Settings\TheMagicBonj\My
Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug
Executable search path is:
ModLoad: 00400000 00408000 ExceptApp.exe
ModLoad: 7c900000 7c9b0000 ntdll.dll
ModLoad: 78800000 7883a000 C:\WINDOWS\system32\mscoree.dll
ModLoad: 7c800000 7c8f4000 C:\WINDOWS\system32\KERNEL32.dll
ModLoad: 77dd0000 77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
ModLoad: 77e70000 77f01000 C:\WINDOWS\system32\RPCRT4.dll
(d30.694): Break instruction exception - code 80000003 (first chance)
eax=00241eb4 ebx=7ffdc000 ecx=00000007 edx=00000080 esi=00241f48
edi=00241eb4
eip=7c901230 esp=0012fb20 ebp=0012fc94 iopl=0 nv up ei pl nz na pe
nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
efl=00000202
*** ERROR: Symbol file could not be found. Defaulted to export symbols for ntdll.dll -
ntdll!DbgBreakPoint:
7c901230 cc int 3
0:000> g
ModLoad: 77f60000 77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
ModLoad: 77c10000 77c68000 C:\WINDOWS\system32\msvcrt.dll
ModLoad: 77f10000 77f56000 C:\WINDOWS\system32\GDI32.dll
ModLoad: 77d40000 77dd0000 C:\WINDOWS\system32\USER32.dll
ModLoad: 791b0000 793e2000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor wks.dll
ModLoad: 7c000000 7c054000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\MSVCR 70.dll
ModLoad: 79040000 79079000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\fusio n.dll
ModLoad: 7c9c0000 7d1d4000 C:\WINDOWS\system32\SHELL32.dll
ModLoad: 773d0000 774d2000
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0
..2600.2180_x-ww_a84f1ff9\comctl32.dll ModLoad: 5d090000 5d127000 C:\WINDOWS\system32\comctl32.dll
ModLoad: 79780000 7996c000
c:\windows\microsoft.net\framework\v1.0.3705\mscor lib.dll
ModLoad: 79970000 79c98000
c:\windows\assembly\nativeimages1_v1.0.3705\mscorl ib\1.0.3300.0__b77a5c56193
4e089_d3f49f0e\mscorlib.dll ModLoad: 79510000 79521000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor sn.dll
ModLoad: 79430000 7947a000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\MSCOR JIT.DLL
ModLoad: 51820000 5188b000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\diasy mreader.dll
ModLoad: 774e0000 7761c000 C:\WINDOWS\system32\ole32.dll
(d30.694): CLR exception - code e0434f4d (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=0012f4fc ebx=00aae168 ecx=0014d648 edx=00002aba esi=00000000
edi=00000000
eip=7c81eb33 esp=0012f4f8 ebp=0012f54c iopl=0 nv up ei pl zr na po
nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
efl=00000246
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\WINDOWS\system32\KERNEL32.dll -
KERNEL32!RaiseException+0x52:
7c81eb33 5e pop esi
0:000> .load sos
0:000> !threads
*** ERROR: Symbol file could not be found. Defaulted to export symbols for C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor wks.dll -
PDB symbol for mscorwks.dll not loaded
failed to load from resource.Failed to load SOS data.
No valid SOS data table found.
"Ivan Brugiolo [MSFT]" <iv******@online.microsoft.com> wrote in message
news:uJ**************@TK2MSFTNGP14.phx.gbl...
Doesn't it not come already with the debugger package or with the
framework
itself ?

D:\Program Files\Debugging Tools for Windows\clr10\sos.dll

D:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\sos.d ll

--
This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Bonj" <Bo**@discussions.microsoft.com> wrote in message
news:7D**********************************@microsof t.com...
Is it possible to download this SOS thing?
"Ronald Laeremans [MSFT]" wrote:

> You can use windbg and SOS (Son Of Strike) together. Google the MSDN

site
> for instructions.
>
> Ronald Laeremans
> Visual C++ team
>
> "Bonj" <benjtaylor at hotpop d0t com> wrote in message
> news:OX**************@TK2MSFTNGP15.phx.gbl...
> > is there a way, using windbg.exe and dbgclr.exe together, to debug
a mixed
> > DLL? (without using VS IDE)
> > i.e., to sort of make windbg "take over" when it gets to the
> > unmanaged
> > part...
> > ?
> >
> >
>
>
>



Nov 17 '05 #8
Yes, the symbol path was set to the same path that the exe is in, that also
contains the .pdb file that was created by csc.exe (it confirms this in the
first few lines of the output).
Do I need to set any other symbol paths that contain other .pdb files?

"Ivan Brugiolo [MSFT]" <iv******@online.microsoft.com> wrote in message
news:ep**************@TK2MSFTNGP15.phx.gbl...
Did you set the symbols path correctly?

--
This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Bonj" <benjtaylor at hotpop d0t com> wrote in message
news:eP**************@TK2MSFTNGP09.phx.gbl...
Ivan, I did exactly what it said in this article
http://msdn.microsoft.com/msdnmag/is...r/default.aspx
and it resulted in an error. The output was this:

Symbol search path is: C:\Documents and Settings\TheMagicBonj\My
Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug

Microsoft (R) Windows Debugger Version 6.3.0017.0
Copyright (c) Microsoft Corporation. All rights reserved.

CommandLine: "C:\Documents and Settings\TheMagicBonj\My
Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug\ExceptApp.exe"
Symbol search path is: C:\Documents and Settings\TheMagicBonj\My
Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug
Executable search path is:
ModLoad: 00400000 00408000 ExceptApp.exe
ModLoad: 7c900000 7c9b0000 ntdll.dll
ModLoad: 78800000 7883a000 C:\WINDOWS\system32\mscoree.dll
ModLoad: 7c800000 7c8f4000 C:\WINDOWS\system32\KERNEL32.dll
ModLoad: 77dd0000 77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
ModLoad: 77e70000 77f01000 C:\WINDOWS\system32\RPCRT4.dll
(d30.694): Break instruction exception - code 80000003 (first chance)
eax=00241eb4 ebx=7ffdc000 ecx=00000007 edx=00000080 esi=00241f48
edi=00241eb4
eip=7c901230 esp=0012fb20 ebp=0012fc94 iopl=0 nv up ei pl nz na
pe
nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
efl=00000202
*** ERROR: Symbol file could not be found. Defaulted to export symbols

for
ntdll.dll -
ntdll!DbgBreakPoint:
7c901230 cc int 3
0:000> g
ModLoad: 77f60000 77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
ModLoad: 77c10000 77c68000 C:\WINDOWS\system32\msvcrt.dll
ModLoad: 77f10000 77f56000 C:\WINDOWS\system32\GDI32.dll
ModLoad: 77d40000 77dd0000 C:\WINDOWS\system32\USER32.dll
ModLoad: 791b0000 793e2000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor wks.dll
ModLoad: 7c000000 7c054000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\MSVCR 70.dll
ModLoad: 79040000 79079000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\fusio n.dll
ModLoad: 7c9c0000 7d1d4000 C:\WINDOWS\system32\SHELL32.dll
ModLoad: 773d0000 774d2000

C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0
.2600.2180_x-ww_a84f1ff9\comctl32.dll
ModLoad: 5d090000 5d127000 C:\WINDOWS\system32\comctl32.dll
ModLoad: 79780000 7996c000
c:\windows\microsoft.net\framework\v1.0.3705\mscor lib.dll
ModLoad: 79970000 79c98000

c:\windows\assembly\nativeimages1_v1.0.3705\mscorl ib\1.0.3300.0__b77a5c56193
4e089_d3f49f0e\mscorlib.dll
ModLoad: 79510000 79521000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor sn.dll
ModLoad: 79430000 7947a000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\MSCOR JIT.DLL
ModLoad: 51820000 5188b000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\diasy mreader.dll
ModLoad: 774e0000 7761c000 C:\WINDOWS\system32\ole32.dll
(d30.694): CLR exception - code e0434f4d (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=0012f4fc ebx=00aae168 ecx=0014d648 edx=00002aba esi=00000000
edi=00000000
eip=7c81eb33 esp=0012f4f8 ebp=0012f54c iopl=0 nv up ei pl zr na
po
nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
efl=00000246
*** ERROR: Symbol file could not be found. Defaulted to export symbols

for
C:\WINDOWS\system32\KERNEL32.dll -
KERNEL32!RaiseException+0x52:
7c81eb33 5e pop esi
0:000> .load sos
0:000> !threads
*** ERROR: Symbol file could not be found. Defaulted to export symbols

for
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor wks.dll -
PDB symbol for mscorwks.dll not loaded
failed to load from resource.Failed to load SOS data.
No valid SOS data table found.
"Ivan Brugiolo [MSFT]" <iv******@online.microsoft.com> wrote in message
news:uJ**************@TK2MSFTNGP14.phx.gbl...
> Doesn't it not come already with the debugger package or with the
> framework
> itself ?
>
> D:\Program Files\Debugging Tools for Windows\clr10\sos.dll
>
> D:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\sos.d ll
>
> --
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> Use of any included script samples are subject to the terms specified
> at
> http://www.microsoft.com/info/cpyright.htm
>
>
> "Bonj" <Bo**@discussions.microsoft.com> wrote in message
> news:7D**********************************@microsof t.com...
>> Is it possible to download this SOS thing?
>>
>>
>> "Ronald Laeremans [MSFT]" wrote:
>>
>> > You can use windbg and SOS (Son Of Strike) together. Google the MSDN
> site
>> > for instructions.
>> >
>> > Ronald Laeremans
>> > Visual C++ team
>> >
>> > "Bonj" <benjtaylor at hotpop d0t com> wrote in message
>> > news:OX**************@TK2MSFTNGP15.phx.gbl...
>> > > is there a way, using windbg.exe and dbgclr.exe together, to debug a > mixed
>> > > DLL? (without using VS IDE)
>> > > i.e., to sort of make windbg "take over" when it gets to the
>> > > unmanaged
>> > > part...
>> > > ?
>> > >
>> > >
>> >
>> >
>> >
>
>



Nov 17 '05 #9
I ment: does you symbol path include the OS symbols ?

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Bonj" <benjtaylor at hotpop d0t com> wrote in message
news:#B**************@TK2MSFTNGP11.phx.gbl...
Yes, the symbol path was set to the same path that the exe is in, that also contains the .pdb file that was created by csc.exe (it confirms this in the first few lines of the output).
Do I need to set any other symbol paths that contain other .pdb files?

"Ivan Brugiolo [MSFT]" <iv******@online.microsoft.com> wrote in message
news:ep**************@TK2MSFTNGP15.phx.gbl...
Did you set the symbols path correctly?

--
This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Bonj" <benjtaylor at hotpop d0t com> wrote in message
news:eP**************@TK2MSFTNGP09.phx.gbl...
Ivan, I did exactly what it said in this article
http://msdn.microsoft.com/msdnmag/is...r/default.aspx
and it resulted in an error. The output was this:

Symbol search path is: C:\Documents and Settings\TheMagicBonj\My
Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug

Microsoft (R) Windows Debugger Version 6.3.0017.0
Copyright (c) Microsoft Corporation. All rights reserved.

CommandLine: "C:\Documents and Settings\TheMagicBonj\My
Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug\ExceptApp.exe" Symbol search path is: C:\Documents and Settings\TheMagicBonj\My
Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug
Executable search path is:
ModLoad: 00400000 00408000 ExceptApp.exe
ModLoad: 7c900000 7c9b0000 ntdll.dll
ModLoad: 78800000 7883a000 C:\WINDOWS\system32\mscoree.dll
ModLoad: 7c800000 7c8f4000 C:\WINDOWS\system32\KERNEL32.dll
ModLoad: 77dd0000 77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
ModLoad: 77e70000 77f01000 C:\WINDOWS\system32\RPCRT4.dll
(d30.694): Break instruction exception - code 80000003 (first chance)
eax=00241eb4 ebx=7ffdc000 ecx=00000007 edx=00000080 esi=00241f48
edi=00241eb4
eip=7c901230 esp=0012fb20 ebp=0012fc94 iopl=0 nv up ei pl nz na
pe
nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
efl=00000202
*** ERROR: Symbol file could not be found. Defaulted to export symbols

for
ntdll.dll -
ntdll!DbgBreakPoint:
7c901230 cc int 3
0:000> g
ModLoad: 77f60000 77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
ModLoad: 77c10000 77c68000 C:\WINDOWS\system32\msvcrt.dll
ModLoad: 77f10000 77f56000 C:\WINDOWS\system32\GDI32.dll
ModLoad: 77d40000 77dd0000 C:\WINDOWS\system32\USER32.dll
ModLoad: 791b0000 793e2000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor wks.dll
ModLoad: 7c000000 7c054000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\MSVCR 70.dll
ModLoad: 79040000 79079000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\fusio n.dll
ModLoad: 7c9c0000 7d1d4000 C:\WINDOWS\system32\SHELL32.dll
ModLoad: 773d0000 774d2000

C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0 .2600.2180_x-ww_a84f1ff9\comctl32.dll
ModLoad: 5d090000 5d127000 C:\WINDOWS\system32\comctl32.dll
ModLoad: 79780000 7996c000
c:\windows\microsoft.net\framework\v1.0.3705\mscor lib.dll
ModLoad: 79970000 79c98000

c:\windows\assembly\nativeimages1_v1.0.3705\mscorl ib\1.0.3300.0__b77a5c56193 4e089_d3f49f0e\mscorlib.dll
ModLoad: 79510000 79521000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor sn.dll
ModLoad: 79430000 7947a000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\MSCOR JIT.DLL
ModLoad: 51820000 5188b000
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\diasy mreader.dll
ModLoad: 774e0000 7761c000 C:\WINDOWS\system32\ole32.dll
(d30.694): CLR exception - code e0434f4d (first chance)
First chance exceptions are reported before any exception handling.
This exception may be expected and handled.
eax=0012f4fc ebx=00aae168 ecx=0014d648 edx=00002aba esi=00000000
edi=00000000
eip=7c81eb33 esp=0012f4f8 ebp=0012f54c iopl=0 nv up ei pl zr na
po
nc
cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
efl=00000246
*** ERROR: Symbol file could not be found. Defaulted to export symbols

for
C:\WINDOWS\system32\KERNEL32.dll -
KERNEL32!RaiseException+0x52:
7c81eb33 5e pop esi
0:000> .load sos
0:000> !threads
*** ERROR: Symbol file could not be found. Defaulted to export symbols

for
C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor wks.dll -
PDB symbol for mscorwks.dll not loaded
failed to load from resource.Failed to load SOS data.
No valid SOS data table found.
"Ivan Brugiolo [MSFT]" <iv******@online.microsoft.com> wrote in message
news:uJ**************@TK2MSFTNGP14.phx.gbl...
> Doesn't it not come already with the debugger package or with the
> framework
> itself ?
>
> D:\Program Files\Debugging Tools for Windows\clr10\sos.dll
>
> D:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\sos.d ll
>
> --
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> Use of any included script samples are subject to the terms specified
> at
> http://www.microsoft.com/info/cpyright.htm
>
>
> "Bonj" <Bo**@discussions.microsoft.com> wrote in message
> news:7D**********************************@microsof t.com...
>> Is it possible to download this SOS thing?
>>
>>
>> "Ronald Laeremans [MSFT]" wrote:
>>
>> > You can use windbg and SOS (Son Of Strike) together. Google the MSDN > site
>> > for instructions.
>> >
>> > Ronald Laeremans
>> > Visual C++ team
>> >
>> > "Bonj" <benjtaylor at hotpop d0t com> wrote in message
>> > news:OX**************@TK2MSFTNGP15.phx.gbl...
>> > > is there a way, using windbg.exe and dbgclr.exe together, to
debug a
> mixed
>> > > DLL? (without using VS IDE)
>> > > i.e., to sort of make windbg "take over" when it gets to the
>> > > unmanaged
>> > > part...
>> > > ?
>> > >
>> > >
>> >
>> >
>> >
>
>



Nov 17 '05 #10
No - should it?
It looks like the one it is complaining about it mscorwks.
I've noticed on my work computer that it has got mscorwks.pdb in
C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\symbols
but I don't know whether that will work at home where I've only got the SDK
installed, not the full Visual Studio (the directory name seems a bit of a
contradiction in terms...)
but I'll see if I've got that when I get home
"Ivan Brugiolo [MSFT]" wrote:
I ment: does you symbol path include the OS symbols ?

--
This posting is provided "AS IS" with no warranties, and confers no rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Bonj" <benjtaylor at hotpop d0t com> wrote in message
news:#B**************@TK2MSFTNGP11.phx.gbl...
Yes, the symbol path was set to the same path that the exe is in, that

also
contains the .pdb file that was created by csc.exe (it confirms this in

the
first few lines of the output).
Do I need to set any other symbol paths that contain other .pdb files?

"Ivan Brugiolo [MSFT]" <iv******@online.microsoft.com> wrote in message
news:ep**************@TK2MSFTNGP15.phx.gbl...
Did you set the symbols path correctly?

--
This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Bonj" <benjtaylor at hotpop d0t com> wrote in message
news:eP**************@TK2MSFTNGP09.phx.gbl...
> Ivan, I did exactly what it said in this article
> http://msdn.microsoft.com/msdnmag/is...r/default.aspx
> and it resulted in an error. The output was this:
>
> Symbol search path is: C:\Documents and Settings\TheMagicBonj\My
> Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug
>
> Microsoft (R) Windows Debugger Version 6.3.0017.0
> Copyright (c) Microsoft Corporation. All rights reserved.
>
> CommandLine: "C:\Documents and Settings\TheMagicBonj\My
> Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug\ExceptApp.exe"> Symbol search path is: C:\Documents and Settings\TheMagicBonj\My
> Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug
> Executable search path is:
> ModLoad: 00400000 00408000 ExceptApp.exe
> ModLoad: 7c900000 7c9b0000 ntdll.dll
> ModLoad: 78800000 7883a000 C:\WINDOWS\system32\mscoree.dll
> ModLoad: 7c800000 7c8f4000 C:\WINDOWS\system32\KERNEL32.dll
> ModLoad: 77dd0000 77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
> ModLoad: 77e70000 77f01000 C:\WINDOWS\system32\RPCRT4.dll
> (d30.694): Break instruction exception - code 80000003 (first chance)
> eax=00241eb4 ebx=7ffdc000 ecx=00000007 edx=00000080 esi=00241f48
> edi=00241eb4
> eip=7c901230 esp=0012fb20 ebp=0012fc94 iopl=0 nv up ei pl nz na
> pe
> nc
> cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
> efl=00000202
> *** ERROR: Symbol file could not be found. Defaulted to export symbols
for
> ntdll.dll -
> ntdll!DbgBreakPoint:
> 7c901230 cc int 3
> 0:000> g
> ModLoad: 77f60000 77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
> ModLoad: 77c10000 77c68000 C:\WINDOWS\system32\msvcrt.dll
> ModLoad: 77f10000 77f56000 C:\WINDOWS\system32\GDI32.dll
> ModLoad: 77d40000 77dd0000 C:\WINDOWS\system32\USER32.dll
> ModLoad: 791b0000 793e2000
> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor wks.dll
> ModLoad: 7c000000 7c054000
> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\MSVCR 70.dll
> ModLoad: 79040000 79079000
> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\fusio n.dll
> ModLoad: 7c9c0000 7d1d4000 C:\WINDOWS\system32\SHELL32.dll
> ModLoad: 773d0000 774d2000
>
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0 .2600.2180_x-ww_a84f1ff9\comctl32.dll
> ModLoad: 5d090000 5d127000 C:\WINDOWS\system32\comctl32.dll
> ModLoad: 79780000 7996c000
> c:\windows\microsoft.net\framework\v1.0.3705\mscor lib.dll
> ModLoad: 79970000 79c98000
>
c:\windows\assembly\nativeimages1_v1.0.3705\mscorl ib\1.0.3300.0__b77a5c56193 4e089_d3f49f0e\mscorlib.dll
> ModLoad: 79510000 79521000
> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor sn.dll
> ModLoad: 79430000 7947a000
> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\MSCOR JIT.DLL
> ModLoad: 51820000 5188b000
> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\diasy mreader.dll
> ModLoad: 774e0000 7761c000 C:\WINDOWS\system32\ole32.dll
> (d30.694): CLR exception - code e0434f4d (first chance)
> First chance exceptions are reported before any exception handling.
> This exception may be expected and handled.
> eax=0012f4fc ebx=00aae168 ecx=0014d648 edx=00002aba esi=00000000
> edi=00000000
> eip=7c81eb33 esp=0012f4f8 ebp=0012f54c iopl=0 nv up ei pl zr na
> po
> nc
> cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
> efl=00000246
> *** ERROR: Symbol file could not be found. Defaulted to export symbols
for
> C:\WINDOWS\system32\KERNEL32.dll -
> KERNEL32!RaiseException+0x52:
> 7c81eb33 5e pop esi
> 0:000> .load sos
> 0:000> !threads
> *** ERROR: Symbol file could not be found. Defaulted to export symbols
for
> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor wks.dll -
> PDB symbol for mscorwks.dll not loaded
> failed to load from resource.Failed to load SOS data.
> No valid SOS data table found.
>
>
> "Ivan Brugiolo [MSFT]" <iv******@online.microsoft.com> wrote in message
> news:uJ**************@TK2MSFTNGP14.phx.gbl...
> > Doesn't it not come already with the debugger package or with the
> > framework
> > itself ?
> >
> > D:\Program Files\Debugging Tools for Windows\clr10\sos.dll
> >
> > D:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\sos.d ll
> >
> > --
> > This posting is provided "AS IS" with no warranties, and confers no
> > rights.
> > Use of any included script samples are subject to the terms specified
> > at
> > http://www.microsoft.com/info/cpyright.htm
> >
> >
> > "Bonj" <Bo**@discussions.microsoft.com> wrote in message
> > news:7D**********************************@microsof t.com...
> >> Is it possible to download this SOS thing?
> >>
> >>
> >> "Ronald Laeremans [MSFT]" wrote:
> >>
> >> > You can use windbg and SOS (Son Of Strike) together. Google the MSDN> > site
> >> > for instructions.
> >> >
> >> > Ronald Laeremans
> >> > Visual C++ team
> >> >
> >> > "Bonj" <benjtaylor at hotpop d0t com> wrote in message
> >> > news:OX**************@TK2MSFTNGP15.phx.gbl...
> >> > > is there a way, using windbg.exe and dbgclr.exe together, to debug a
> > mixed
> >> > > DLL? (without using VS IDE)
> >> > > i.e., to sort of make windbg "take over" when it gets to the
> >> > > unmanaged
> >> > > part...
> >> > > ?
> >> > >
> >> > >
> >> >
> >> >
> >> >
> >
> >
>
>



Nov 17 '05 #11
I found this not to be the problem.
I set my symbol path to have c:\program files\microsft.net\sdk\v2.0\symbols
and it did the same thing!

"Bonj" <Bo**@discussions.microsoft.com> wrote in message
news:91**********************************@microsof t.com...
No - should it?
It looks like the one it is complaining about it mscorwks.
I've noticed on my work computer that it has got mscorwks.pdb in
C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\symbols
but I don't know whether that will work at home where I've only got the
SDK
installed, not the full Visual Studio (the directory name seems a bit of a
contradiction in terms...)
but I'll see if I've got that when I get home
"Ivan Brugiolo [MSFT]" wrote:
I ment: does you symbol path include the OS symbols ?

--
This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Bonj" <benjtaylor at hotpop d0t com> wrote in message
news:#B**************@TK2MSFTNGP11.phx.gbl...
> Yes, the symbol path was set to the same path that the exe is in, that

also
> contains the .pdb file that was created by csc.exe (it confirms this in

the
> first few lines of the output).
> Do I need to set any other symbol paths that contain other .pdb files?
>
> "Ivan Brugiolo [MSFT]" <iv******@online.microsoft.com> wrote in message
> news:ep**************@TK2MSFTNGP15.phx.gbl...
> > Did you set the symbols path correctly?
> >
> > --
> > This posting is provided "AS IS" with no warranties, and confers no
> > rights.
> > Use of any included script samples are subject to the terms specified
> > at
> > http://www.microsoft.com/info/cpyright.htm
> >
> >
> > "Bonj" <benjtaylor at hotpop d0t com> wrote in message
> > news:eP**************@TK2MSFTNGP09.phx.gbl...
> >> Ivan, I did exactly what it said in this article
> >> http://msdn.microsoft.com/msdnmag/is...r/default.aspx
> >> and it resulted in an error. The output was this:
> >>
> >> Symbol search path is: C:\Documents and Settings\TheMagicBonj\My
> >> Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug
> >>
> >> Microsoft (R) Windows Debugger Version 6.3.0017.0
> >> Copyright (c) Microsoft Corporation. All rights reserved.
> >>
> >> CommandLine: "C:\Documents and Settings\TheMagicBonj\My
> >>

Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug\ExceptApp.exe"
> >> Symbol search path is: C:\Documents and Settings\TheMagicBonj\My
> >> Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug
> >> Executable search path is:
> >> ModLoad: 00400000 00408000 ExceptApp.exe
> >> ModLoad: 7c900000 7c9b0000 ntdll.dll
> >> ModLoad: 78800000 7883a000 C:\WINDOWS\system32\mscoree.dll
> >> ModLoad: 7c800000 7c8f4000 C:\WINDOWS\system32\KERNEL32.dll
> >> ModLoad: 77dd0000 77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
> >> ModLoad: 77e70000 77f01000 C:\WINDOWS\system32\RPCRT4.dll
> >> (d30.694): Break instruction exception - code 80000003 (first
> >> chance)
> >> eax=00241eb4 ebx=7ffdc000 ecx=00000007 edx=00000080 esi=00241f48
> >> edi=00241eb4
> >> eip=7c901230 esp=0012fb20 ebp=0012fc94 iopl=0 nv up ei pl nz
> >> na
> >> pe
> >> nc
> >> cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
> >> efl=00000202
> >> *** ERROR: Symbol file could not be found. Defaulted to export
> >> symbols
> > for
> >> ntdll.dll -
> >> ntdll!DbgBreakPoint:
> >> 7c901230 cc int 3
> >> 0:000> g
> >> ModLoad: 77f60000 77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
> >> ModLoad: 77c10000 77c68000 C:\WINDOWS\system32\msvcrt.dll
> >> ModLoad: 77f10000 77f56000 C:\WINDOWS\system32\GDI32.dll
> >> ModLoad: 77d40000 77dd0000 C:\WINDOWS\system32\USER32.dll
> >> ModLoad: 791b0000 793e2000
> >> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor wks.dll
> >> ModLoad: 7c000000 7c054000
> >> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\MSVCR 70.dll
> >> ModLoad: 79040000 79079000
> >> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\fusio n.dll
> >> ModLoad: 7c9c0000 7d1d4000 C:\WINDOWS\system32\SHELL32.dll
> >> ModLoad: 773d0000 774d2000
> >>
> >

C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0
> > .2600.2180_x-ww_a84f1ff9\comctl32.dll
> >> ModLoad: 5d090000 5d127000 C:\WINDOWS\system32\comctl32.dll
> >> ModLoad: 79780000 7996c000
> >> c:\windows\microsoft.net\framework\v1.0.3705\mscor lib.dll
> >> ModLoad: 79970000 79c98000
> >>
> >

c:\windows\assembly\nativeimages1_v1.0.3705\mscorl ib\1.0.3300.0__b77a5c56193
> > 4e089_d3f49f0e\mscorlib.dll
> >> ModLoad: 79510000 79521000
> >> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor sn.dll
> >> ModLoad: 79430000 7947a000
> >> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\MSCOR JIT.DLL
> >> ModLoad: 51820000 5188b000
> >> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\diasy mreader.dll
> >> ModLoad: 774e0000 7761c000 C:\WINDOWS\system32\ole32.dll
> >> (d30.694): CLR exception - code e0434f4d (first chance)
> >> First chance exceptions are reported before any exception handling.
> >> This exception may be expected and handled.
> >> eax=0012f4fc ebx=00aae168 ecx=0014d648 edx=00002aba esi=00000000
> >> edi=00000000
> >> eip=7c81eb33 esp=0012f4f8 ebp=0012f54c iopl=0 nv up ei pl zr
> >> na
> >> po
> >> nc
> >> cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
> >> efl=00000246
> >> *** ERROR: Symbol file could not be found. Defaulted to export
> >> symbols
> > for
> >> C:\WINDOWS\system32\KERNEL32.dll -
> >> KERNEL32!RaiseException+0x52:
> >> 7c81eb33 5e pop esi
> >> 0:000> .load sos
> >> 0:000> !threads
> >> *** ERROR: Symbol file could not be found. Defaulted to export
> >> symbols
> > for
> >> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor wks.dll -
> >> PDB symbol for mscorwks.dll not loaded
> >> failed to load from resource.Failed to load SOS data.
> >> No valid SOS data table found.
> >>
> >>
> >> "Ivan Brugiolo [MSFT]" <iv******@online.microsoft.com> wrote in
> >> message
> >> news:uJ**************@TK2MSFTNGP14.phx.gbl...
> >> > Doesn't it not come already with the debugger package or with the
> >> > framework
> >> > itself ?
> >> >
> >> > D:\Program Files\Debugging Tools for Windows\clr10\sos.dll
> >> >
> >> > D:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\sos.d ll
> >> >
> >> > --
> >> > This posting is provided "AS IS" with no warranties, and confers
> >> > no
> >> > rights.
> >> > Use of any included script samples are subject to the terms
> >> > specified
> >> > at
> >> > http://www.microsoft.com/info/cpyright.htm
> >> >
> >> >
> >> > "Bonj" <Bo**@discussions.microsoft.com> wrote in message
> >> > news:7D**********************************@microsof t.com...
> >> >> Is it possible to download this SOS thing?
> >> >>
> >> >>
> >> >> "Ronald Laeremans [MSFT]" wrote:
> >> >>
> >> >> > You can use windbg and SOS (Son Of Strike) together. Google the

MSDN
> >> > site
> >> >> > for instructions.
> >> >> >
> >> >> > Ronald Laeremans
> >> >> > Visual C++ team
> >> >> >
> >> >> > "Bonj" <benjtaylor at hotpop d0t com> wrote in message
> >> >> > news:OX**************@TK2MSFTNGP15.phx.gbl...
> >> >> > > is there a way, using windbg.exe and dbgclr.exe together, to

debug
> > a
> >> > mixed
> >> >> > > DLL? (without using VS IDE)
> >> >> > > i.e., to sort of make windbg "take over" when it gets to the
> >> >> > > unmanaged
> >> >> > > part...
> >> >> > > ?
> >> >> > >
> >> >> > >
> >> >> >
> >> >> >
> >> >> >
> >> >
> >> >
> >>
> >>
> >
> >
>
>


Nov 17 '05 #12
Bonj,

some time ago, I wrote an article about the usage of the SOS extension.
You can find it at :

http://support.microsoft.com/directo...g.doc?&gssnb=1

Wish you all the luck :-).

H.
"Bonj" wrote:
I found this not to be the problem.
I set my symbol path to have c:\program files\microsft.net\sdk\v2.0\symbols
and it did the same thing!

"Bonj" <Bo**@discussions.microsoft.com> wrote in message
news:91**********************************@microsof t.com...
No - should it?
It looks like the one it is complaining about it mscorwks.
I've noticed on my work computer that it has got mscorwks.pdb in
C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\symbols
but I don't know whether that will work at home where I've only got the
SDK
installed, not the full Visual Studio (the directory name seems a bit of a
contradiction in terms...)
but I'll see if I've got that when I get home
"Ivan Brugiolo [MSFT]" wrote:
I ment: does you symbol path include the OS symbols ?

--
This posting is provided "AS IS" with no warranties, and confers no
rights.
Use of any included script samples are subject to the terms specified at
http://www.microsoft.com/info/cpyright.htm
"Bonj" <benjtaylor at hotpop d0t com> wrote in message
news:#B**************@TK2MSFTNGP11.phx.gbl...
> Yes, the symbol path was set to the same path that the exe is in, that
also
> contains the .pdb file that was created by csc.exe (it confirms this in
the
> first few lines of the output).
> Do I need to set any other symbol paths that contain other .pdb files?
>
> "Ivan Brugiolo [MSFT]" <iv******@online.microsoft.com> wrote in message
> news:ep**************@TK2MSFTNGP15.phx.gbl...
> > Did you set the symbols path correctly?
> >
> > --
> > This posting is provided "AS IS" with no warranties, and confers no
> > rights.
> > Use of any included script samples are subject to the terms specified
> > at
> > http://www.microsoft.com/info/cpyright.htm
> >
> >
> > "Bonj" <benjtaylor at hotpop d0t com> wrote in message
> > news:eP**************@TK2MSFTNGP09.phx.gbl...
> >> Ivan, I did exactly what it said in this article
> >> http://msdn.microsoft.com/msdnmag/is...r/default.aspx
> >> and it resulted in an error. The output was this:
> >>
> >> Symbol search path is: C:\Documents and Settings\TheMagicBonj\My
> >> Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug
> >>
> >> Microsoft (R) Windows Debugger Version 6.3.0017.0
> >> Copyright (c) Microsoft Corporation. All rights reserved.
> >>
> >> CommandLine: "C:\Documents and Settings\TheMagicBonj\My
> >>
Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug\ExceptApp.exe"
> >> Symbol search path is: C:\Documents and Settings\TheMagicBonj\My
> >> Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug
> >> Executable search path is:
> >> ModLoad: 00400000 00408000 ExceptApp.exe
> >> ModLoad: 7c900000 7c9b0000 ntdll.dll
> >> ModLoad: 78800000 7883a000 C:\WINDOWS\system32\mscoree.dll
> >> ModLoad: 7c800000 7c8f4000 C:\WINDOWS\system32\KERNEL32.dll
> >> ModLoad: 77dd0000 77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
> >> ModLoad: 77e70000 77f01000 C:\WINDOWS\system32\RPCRT4.dll
> >> (d30.694): Break instruction exception - code 80000003 (first
> >> chance)
> >> eax=00241eb4 ebx=7ffdc000 ecx=00000007 edx=00000080 esi=00241f48
> >> edi=00241eb4
> >> eip=7c901230 esp=0012fb20 ebp=0012fc94 iopl=0 nv up ei pl nz
> >> na
> >> pe
> >> nc
> >> cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
> >> efl=00000202
> >> *** ERROR: Symbol file could not be found. Defaulted to export
> >> symbols
> > for
> >> ntdll.dll -
> >> ntdll!DbgBreakPoint:
> >> 7c901230 cc int 3
> >> 0:000> g
> >> ModLoad: 77f60000 77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
> >> ModLoad: 77c10000 77c68000 C:\WINDOWS\system32\msvcrt.dll
> >> ModLoad: 77f10000 77f56000 C:\WINDOWS\system32\GDI32.dll
> >> ModLoad: 77d40000 77dd0000 C:\WINDOWS\system32\USER32.dll
> >> ModLoad: 791b0000 793e2000
> >> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor wks.dll
> >> ModLoad: 7c000000 7c054000
> >> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\MSVCR 70.dll
> >> ModLoad: 79040000 79079000
> >> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\fusio n.dll
> >> ModLoad: 7c9c0000 7d1d4000 C:\WINDOWS\system32\SHELL32.dll
> >> ModLoad: 773d0000 774d2000
> >>
> >
C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0
> > .2600.2180_x-ww_a84f1ff9\comctl32.dll
> >> ModLoad: 5d090000 5d127000 C:\WINDOWS\system32\comctl32.dll
> >> ModLoad: 79780000 7996c000
> >> c:\windows\microsoft.net\framework\v1.0.3705\mscor lib.dll
> >> ModLoad: 79970000 79c98000
> >>
> >
c:\windows\assembly\nativeimages1_v1.0.3705\mscorl ib\1.0.3300.0__b77a5c56193
> > 4e089_d3f49f0e\mscorlib.dll
> >> ModLoad: 79510000 79521000
> >> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor sn.dll
> >> ModLoad: 79430000 7947a000
> >> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\MSCOR JIT.DLL
> >> ModLoad: 51820000 5188b000
> >> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\diasy mreader.dll
> >> ModLoad: 774e0000 7761c000 C:\WINDOWS\system32\ole32.dll
> >> (d30.694): CLR exception - code e0434f4d (first chance)
> >> First chance exceptions are reported before any exception handling.
> >> This exception may be expected and handled.
> >> eax=0012f4fc ebx=00aae168 ecx=0014d648 edx=00002aba esi=00000000
> >> edi=00000000
> >> eip=7c81eb33 esp=0012f4f8 ebp=0012f54c iopl=0 nv up ei pl zr
> >> na
> >> po
> >> nc
> >> cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
> >> efl=00000246
> >> *** ERROR: Symbol file could not be found. Defaulted to export
> >> symbols
> > for
> >> C:\WINDOWS\system32\KERNEL32.dll -
> >> KERNEL32!RaiseException+0x52:
> >> 7c81eb33 5e pop esi
> >> 0:000> .load sos
> >> 0:000> !threads
> >> *** ERROR: Symbol file could not be found. Defaulted to export
> >> symbols
> > for
> >> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor wks.dll -
> >> PDB symbol for mscorwks.dll not loaded
> >> failed to load from resource.Failed to load SOS data.
> >> No valid SOS data table found.
> >>
> >>
> >> "Ivan Brugiolo [MSFT]" <iv******@online.microsoft.com> wrote in
> >> message
> >> news:uJ**************@TK2MSFTNGP14.phx.gbl...
> >> > Doesn't it not come already with the debugger package or with the
> >> > framework
> >> > itself ?
> >> >
> >> > D:\Program Files\Debugging Tools for Windows\clr10\sos.dll
> >> >
> >> > D:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\sos.d ll
> >> >
> >> > --
> >> > This posting is provided "AS IS" with no warranties, and confers
> >> > no
> >> > rights.
> >> > Use of any included script samples are subject to the terms
> >> > specified
> >> > at
> >> > http://www.microsoft.com/info/cpyright.htm
> >> >
> >> >
> >> > "Bonj" <Bo**@discussions.microsoft.com> wrote in message
> >> > news:7D**********************************@microsof t.com...
> >> >> Is it possible to download this SOS thing?
> >> >>
> >> >>
> >> >> "Ronald Laeremans [MSFT]" wrote:
> >> >>
> >> >> > You can use windbg and SOS (Son Of Strike) together. Google the
MSDN
> >> > site
> >> >> > for instructions.
> >> >> >
> >> >> > Ronald Laeremans
> >> >> > Visual C++ team
> >> >> >
> >> >> > "Bonj" <benjtaylor at hotpop d0t com> wrote in message
> >> >> > news:OX**************@TK2MSFTNGP15.phx.gbl...
> >> >> > > is there a way, using windbg.exe and dbgclr.exe together, to
debug
> > a
> >> > mixed
> >> >> > > DLL? (without using VS IDE)
> >> >> > > i.e., to sort of make windbg "take over" when it gets to the
> >> >> > > unmanaged
> >> >> > > part...
> >> >> > > ?
> >> >> > >
> >> >> > >
> >> >> >
> >> >> >
> >> >> >
> >> >
> >> >
> >>
> >>
> >
> >
>
>


Nov 17 '05 #13
Thanks anyway Hans but it doesn't make any sense to me.

"Hans De Smaele" wrote:
Bonj,

some time ago, I wrote an article about the usage of the SOS extension.
You can find it at :

http://support.microsoft.com/directo...g.doc?&gssnb=1

Wish you all the luck :-).

H.
"Bonj" wrote:
I found this not to be the problem.
I set my symbol path to have c:\program files\microsft.net\sdk\v2.0\symbols
and it did the same thing!

"Bonj" <Bo**@discussions.microsoft.com> wrote in message
news:91**********************************@microsof t.com...
No - should it?
It looks like the one it is complaining about it mscorwks.
I've noticed on my work computer that it has got mscorwks.pdb in
C:\Program Files\Microsoft Visual Studio .NET 2003\SDK\v1.1\symbols
but I don't know whether that will work at home where I've only got the
SDK
installed, not the full Visual Studio (the directory name seems a bit of a
contradiction in terms...)
but I'll see if I've got that when I get home
"Ivan Brugiolo [MSFT]" wrote:

> I ment: does you symbol path include the OS symbols ?
>
> --
> This posting is provided "AS IS" with no warranties, and confers no
> rights.
> Use of any included script samples are subject to the terms specified at
> http://www.microsoft.com/info/cpyright.htm
>
>
> "Bonj" <benjtaylor at hotpop d0t com> wrote in message
> news:#B**************@TK2MSFTNGP11.phx.gbl...
> > Yes, the symbol path was set to the same path that the exe is in, that
> also
> > contains the .pdb file that was created by csc.exe (it confirms this in
> the
> > first few lines of the output).
> > Do I need to set any other symbol paths that contain other .pdb files?
> >
> > "Ivan Brugiolo [MSFT]" <iv******@online.microsoft.com> wrote in message
> > news:ep**************@TK2MSFTNGP15.phx.gbl...
> > > Did you set the symbols path correctly?
> > >
> > > --
> > > This posting is provided "AS IS" with no warranties, and confers no
> > > rights.
> > > Use of any included script samples are subject to the terms specified
> > > at
> > > http://www.microsoft.com/info/cpyright.htm
> > >
> > >
> > > "Bonj" <benjtaylor at hotpop d0t com> wrote in message
> > > news:eP**************@TK2MSFTNGP09.phx.gbl...
> > >> Ivan, I did exactly what it said in this article
> > >> http://msdn.microsoft.com/msdnmag/is...r/default.aspx
> > >> and it resulted in an error. The output was this:
> > >>
> > >> Symbol search path is: C:\Documents and Settings\TheMagicBonj\My
> > >> Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug
> > >>
> > >> Microsoft (R) Windows Debugger Version 6.3.0017.0
> > >> Copyright (c) Microsoft Corporation. All rights reserved.
> > >>
> > >> CommandLine: "C:\Documents and Settings\TheMagicBonj\My
> > >>
> Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug\ExceptApp.exe"
> > >> Symbol search path is: C:\Documents and Settings\TheMagicBonj\My
> > >> Documents\Installers\DebuggingTools\bugslayer0306\ bin\Debug
> > >> Executable search path is:
> > >> ModLoad: 00400000 00408000 ExceptApp.exe
> > >> ModLoad: 7c900000 7c9b0000 ntdll.dll
> > >> ModLoad: 78800000 7883a000 C:\WINDOWS\system32\mscoree.dll
> > >> ModLoad: 7c800000 7c8f4000 C:\WINDOWS\system32\KERNEL32.dll
> > >> ModLoad: 77dd0000 77e6b000 C:\WINDOWS\system32\ADVAPI32.dll
> > >> ModLoad: 77e70000 77f01000 C:\WINDOWS\system32\RPCRT4.dll
> > >> (d30.694): Break instruction exception - code 80000003 (first
> > >> chance)
> > >> eax=00241eb4 ebx=7ffdc000 ecx=00000007 edx=00000080 esi=00241f48
> > >> edi=00241eb4
> > >> eip=7c901230 esp=0012fb20 ebp=0012fc94 iopl=0 nv up ei pl nz
> > >> na
> > >> pe
> > >> nc
> > >> cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
> > >> efl=00000202
> > >> *** ERROR: Symbol file could not be found. Defaulted to export
> > >> symbols
> > > for
> > >> ntdll.dll -
> > >> ntdll!DbgBreakPoint:
> > >> 7c901230 cc int 3
> > >> 0:000> g
> > >> ModLoad: 77f60000 77fd6000 C:\WINDOWS\system32\SHLWAPI.dll
> > >> ModLoad: 77c10000 77c68000 C:\WINDOWS\system32\msvcrt.dll
> > >> ModLoad: 77f10000 77f56000 C:\WINDOWS\system32\GDI32.dll
> > >> ModLoad: 77d40000 77dd0000 C:\WINDOWS\system32\USER32.dll
> > >> ModLoad: 791b0000 793e2000
> > >> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor wks.dll
> > >> ModLoad: 7c000000 7c054000
> > >> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\MSVCR 70.dll
> > >> ModLoad: 79040000 79079000
> > >> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\fusio n.dll
> > >> ModLoad: 7c9c0000 7d1d4000 C:\WINDOWS\system32\SHELL32.dll
> > >> ModLoad: 773d0000 774d2000
> > >>
> > >
> C:\WINDOWS\WinSxS\x86_Microsoft.Windows.Common-Controls_6595b64144ccf1df_6.0
> > > .2600.2180_x-ww_a84f1ff9\comctl32.dll
> > >> ModLoad: 5d090000 5d127000 C:\WINDOWS\system32\comctl32.dll
> > >> ModLoad: 79780000 7996c000
> > >> c:\windows\microsoft.net\framework\v1.0.3705\mscor lib.dll
> > >> ModLoad: 79970000 79c98000
> > >>
> > >
> c:\windows\assembly\nativeimages1_v1.0.3705\mscorl ib\1.0.3300.0__b77a5c56193
> > > 4e089_d3f49f0e\mscorlib.dll
> > >> ModLoad: 79510000 79521000
> > >> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor sn.dll
> > >> ModLoad: 79430000 7947a000
> > >> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\MSCOR JIT.DLL
> > >> ModLoad: 51820000 5188b000
> > >> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\diasy mreader.dll
> > >> ModLoad: 774e0000 7761c000 C:\WINDOWS\system32\ole32.dll
> > >> (d30.694): CLR exception - code e0434f4d (first chance)
> > >> First chance exceptions are reported before any exception handling.
> > >> This exception may be expected and handled.
> > >> eax=0012f4fc ebx=00aae168 ecx=0014d648 edx=00002aba esi=00000000
> > >> edi=00000000
> > >> eip=7c81eb33 esp=0012f4f8 ebp=0012f54c iopl=0 nv up ei pl zr
> > >> na
> > >> po
> > >> nc
> > >> cs=001b ss=0023 ds=0023 es=0023 fs=003b gs=0000
> > >> efl=00000246
> > >> *** ERROR: Symbol file could not be found. Defaulted to export
> > >> symbols
> > > for
> > >> C:\WINDOWS\system32\KERNEL32.dll -
> > >> KERNEL32!RaiseException+0x52:
> > >> 7c81eb33 5e pop esi
> > >> 0:000> .load sos
> > >> 0:000> !threads
> > >> *** ERROR: Symbol file could not be found. Defaulted to export
> > >> symbols
> > > for
> > >> C:\WINDOWS\Microsoft.NET\Framework\v1.0.3705\mscor wks.dll -
> > >> PDB symbol for mscorwks.dll not loaded
> > >> failed to load from resource.Failed to load SOS data.
> > >> No valid SOS data table found.
> > >>
> > >>
> > >> "Ivan Brugiolo [MSFT]" <iv******@online.microsoft.com> wrote in
> > >> message
> > >> news:uJ**************@TK2MSFTNGP14.phx.gbl...
> > >> > Doesn't it not come already with the debugger package or with the
> > >> > framework
> > >> > itself ?
> > >> >
> > >> > D:\Program Files\Debugging Tools for Windows\clr10\sos.dll
> > >> >
> > >> > D:\WINDOWS\Microsoft.NET\Framework\v1.1.4322\sos.d ll
> > >> >
> > >> > --
> > >> > This posting is provided "AS IS" with no warranties, and confers
> > >> > no
> > >> > rights.
> > >> > Use of any included script samples are subject to the terms
> > >> > specified
> > >> > at
> > >> > http://www.microsoft.com/info/cpyright.htm
> > >> >
> > >> >
> > >> > "Bonj" <Bo**@discussions.microsoft.com> wrote in message
> > >> > news:7D**********************************@microsof t.com...
> > >> >> Is it possible to download this SOS thing?
> > >> >>
> > >> >>
> > >> >> "Ronald Laeremans [MSFT]" wrote:
> > >> >>
> > >> >> > You can use windbg and SOS (Son Of Strike) together. Google the
> MSDN
> > >> > site
> > >> >> > for instructions.
> > >> >> >
> > >> >> > Ronald Laeremans
> > >> >> > Visual C++ team
> > >> >> >
> > >> >> > "Bonj" <benjtaylor at hotpop d0t com> wrote in message
> > >> >> > news:OX**************@TK2MSFTNGP15.phx.gbl...
> > >> >> > > is there a way, using windbg.exe and dbgclr.exe together, to
> debug
> > > a
> > >> > mixed
> > >> >> > > DLL? (without using VS IDE)
> > >> >> > > i.e., to sort of make windbg "take over" when it gets to the
> > >> >> > > unmanaged
> > >> >> > > part...
> > >> >> > > ?
> > >> >> > >
> > >> >> > >
> > >> >> >
> > >> >> >
> > >> >> >
> > >> >
> > >> >
> > >>
> > >>
> > >
> > >
> >
> >
>
>
>


Nov 17 '05 #14

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: ZMan | last post by:
Scenario: This is about debugging server side scripts that make calls to middle-tier business DLLs. The server side scripts are legacy ASP 3.0 pages, and the DLLs are managed DLLs...
16
by: Serdar Kalaycý | last post by:
Hi everybody, My problem seems a bit clichè but I could not work around. Well I read lots of MSDN papers and discussions, but my problem is a bit different from them. When I tried to run the...
2
by: Andy Fish | last post by:
Hi, Using VS.NET 2003, when I use 'F5' to start debugging my web app, it obviously attaches the IDE to IIS for server debugging. However, it also seems to put IE into some kind of debugging mode...
2
by: Alex Clark | last post by:
Hi All, My system: WinXP Pro, VS.NET 2003, SQL Server Personal Edition. I'm having problems with my old favourite demon, SQL Debugging from within VS.NET. I have to say I've found this...
5
by: Velvet | last post by:
Can someone tell me to what process I need to attach to be able to step through my classic ASP code in VS.net 2003. I'm working on an XP box with IIS installed. I also have VS.net 2005 (The...
6
by: KevinGPO | last post by:
I am currently developing a website in ASP (VBScript) using MS Visual C#.NET IDE. I just create a new "ASP.NET Web Application" and point to my local webserver (IIS) of my website address. Then I...
5
by: phnimx | last post by:
Hi , We have developed a number of plug-in .NET Library Components that we typically deploy with our various applications by installing them into the GAC. Each of the applications contains an...
5
by: =?Utf-8?B?Z2FkeWE=?= | last post by:
I can't get to debug on my local IIS using VStudio.net 2005 Prof. I can on the development server. I get the msg 'the server does not support debugging for asp.net...' I have done the following...
2
jwwicks
by: jwwicks | last post by:
C/C++ Programs and Debugging in Linux This tutorial will give you a basic idea how to debug a program in Linux using GDB. As you are aware Visual Studio doesn’t run on Linux so you have to use...
4
by: =?Utf-8?B?TWlrZSBHYWxl?= | last post by:
VS 2008 initially didn't debug classic ASP. SP1 fixes this in some ways. You can debug if you select the debug option to "Start Without Debugging, then either attach the debugger manually or...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.