I debugged. NET 1.1 based Windows application which exits silently upon start up. the problem itself is trivial and not worth mentioning. what I want to say is there is a subtle point about SOS. dll version. When I was debugging, I started the application under windbg. Then issue". Loadby SOS mscorwks"Command to load SOS. dll extension corresponds to the running. NET Framework. And I entered! DumpallexceptionsCommand which shocould exist in SOS. DLL for. NET Framework 1.1, but ended in not finding this command: No export dumpallexceptions found Finally, I had to use"! Dumpheap-type exception"To find out all exceptions. Having done some investors, I found there are two SOS. DLL files. NET 1.1. one in. net Framework installation folder, and one in windbg installation folder. the latter one is a full featured extension and support dumpallexceptions command. I tried debugging the application again with SOS. dll comes with windbg by issusing :". Load windbg_installation_folder/clr10/SOS. dll". This time, dumpallexceptions was back to life and worked like a charm. BTW, an alternative way to do! Dumpallexceptions is to take advantage of. foreach command. . Foreach (exception {! Dumpheap-type exception-short }){! Do exception;. Echo print exception done !!! *****************} For convenience, below are commands supported by different version SOS. dll. C: \ windows \ Microsoft. NET \ framework \ v1.1.4322 \ SOS. dll 0: 000>! Help SOS: Help Comstate | list com state for each thread Clrstack | provides true managed stack trace, source and line numbers. Additional parameters:-P [arams]-l [ocals]-R [EGS]-A [ll]. Dumpclass | dump eeclass info Dumpdomain [] | list assemblies and modules in a domain Dumpheap [-stat] [-min 100] [-Max 2000] [-MT 0x3000000] [-type ] [-Fix] [start [end] | dump GC heap Contents Dumpmd | dump methoddesc info Dumpmt [-MD] | dump methodtable info Dumpmodule | dump EE module info Dumpobj | dump an object on GC heap Dumpstack [-ee] [-smart] [top stack [bottom Stack] |-ee only shows managed stack items. Dumpstackobjects [top stack [bottom Stack] Dumpvc | Dump a value Class Object Eeheap [-GC] [-Win32] [-loader] | list GC/loader heap info Eestack [-short] [-ee] | list all stacks EE knows Eeversion | list mscoree. dll version Finalizequeue [-detail] | work queue for finalize thread Gcinfo [ ] [IP] | dump GC encoding info for a managed Method Gcroot | find roots on stack/handle for Object Ip2md | find methoddesc from IP Name2ee | Find memory address of EE data given a class/method name Objsize [] | find number of bytes that a root or all roots keep alive on GC heap. Procinfo [-env] [-time] [-MEM] | display the process info Rwlock [-All] | List info for a read/write lock Syncblk [-All | #] | list syncblock Threadpool | display CLR threadpool state Threads | list managed threads Token2ee | Find memory address of EE data for metadata token U [ ] [IP] | unassembly a managed code {Windbg installation folder} \ clr10 \ SOS. dll 0: 000>! Help Did you know that a lot of exceptions (! Dumpallexceptions) can cause memory problems. To see more tips, run! Tip. ------------------------------------------------------------------------------- SOS is a debugger extension DLL designed to aid in the debugging of managed Programs. functions are listed by category, then roughly in order Importance. Shortcut names for popular functions are listed in parenthesis. Type "! Help "For detailed info on that function.
Object inspection examining code and stacks ---------------------------------------------------------- Dumpobj (DO) threads (t) Dumpallexceptions (DAE) clrstack Dumpstackobjects (DSO) ip2md Dumpheap (DH) u Dumpvc dumpstack Gcroot eestack Objsize gcinfo Finalizequeue comstate Dumpdynamicassemblies (DDA) x Dumpfield (DF) searchstack Traverseheap (th) Gcref Examining CLR data structures diagnostic utilities ---------------------------------------------------------- Dumpdomain verifyheap (VL) Eeheap dumplog Name2ee findappdomain Syncblk savemodule Dumpaspnetcache (DAC) saveallmodules (SAM) Dumpmt gchandles Dumpclass gchandleleaks Dumpmd finddebugtrue Token2ee finddebugmodules Eeversion BP Dumpsig procinfo Dumpmodule stoponexception (SOE) Threadpool (TP) TD Converttickstodate (CTD) Analysis Convertvtdatetodate (cvtdd) BL Rwlock checkcurrentexception (CCE) Dumpconfig currentexceptionname (CEN) Dumphttpruntime predictionbp Dumpsessionstateconfig findtable Dumpbuckets loadcache Dumphistorytable savecache Dumprequesttable aspxpages Dumpcollection (DC) dumpgcnotinprogress Dumpdatatables clrusage Getworkitems Dumplargeobjectsegments (DL) Dumpmodule Dumpassembly other Dumpmethodsig ----------------------------- Dumpruntimetypes FAQ Printipaddress Dumphttpcontext Dumpxmldocument (DxD) C: \ windows \ Microsoft. NET \ framework \ v2.0.50727 \ SOS. dll 0: 000>! Help ------------------------------------------------------------------------------- SOS is a debugger extension DLL designed to aid in the debugging of managed Programs. functions are listed by category, then roughly in order Importance. Shortcut names for popular functions are listed in parenthesis. Type "! Help "For detailed info on that function. Object inspection examining code and stacks ---------------------------------------------------------- Dumpobj (DO) threads Dumparray (DA) clrstack Dumpstackobjects (DSO) ip2md Dumpheap u Dumpvc dumpstack Gcroot eestack Objsize gcinfo Finalizequeue ehinfo Printexception (PE) comstate Traverseheap bpmd Examining CLR data structures diagnostic utilities ---------------------------------------------------------- Dumpdomain verifyheap Eeheap dumplog Name2ee findappdomain Syncblk savemodule Dumpmt gchandles Dumpclass gchandleleaks Dumpmd vmmap Token2ee vmstat Eeversion procinfo Dumpmodule stoponexception (SOE) Threadpool minidumpmode Dumpassembly Dumpmethodsig other Dumpruntimetypes ----------------------------- Dumpsig FAQ Rcwcleanuplist Dumpil |