List of Code Examples


Chapter 3: Debugging During Coding

Listing 3-1: AssertTableExists checks whether a table exists
Listing 3-2: Full assertion example
Listing 3-3: BugslayerStackTrace building a full stack trace with source and line information
Listing 3-4: Important methods of ASPTraceListener
Listing 3-5: The main ASSERT macro
Listing 3-6: SUPERASSERT.CPP
Listing 3-7: Setting TraceSwitch flags in a configuration file

Chapter 4: Operating System Debugging Support and How Win32 Debuggers Work

Listing 4-1: MINDBG.CPP
Listing 4-2: OutputDebugStringEvent from PROCESSDEBUGEVENTS.CPP
Listing 4-3: SetBreakpoint from I386CPUHELP.C

Chapter 6: Advanced .NET Debugging with Visual Studio .NET

Listing 6-1: Conditional breakpoint modifier example
Listing 6-2: Mixed source and MSIL
Listing 6-3: HelloWorld.IL

Chapter 7: Advanced Native Code Techniques with Visual Studio .NET

Listing 7-1: EEAddIn export prototype and helper structure
Listing 7-2: EEAddIn example for _OSVERSIONINFOA
Listing 7-3: Calling conventions example
Listing 7-4: lstrcpyA, a complete assembly language example

Chapter 8: Advanced Native Code Techniques with WinDBG

Listing 8-1: WinDBG wt output

Chapter 9: Extending the Visual Studio .NET IDE

Listing 9-1: DumpActiveDocCodeElements
Listing 9-2: ProcessFunctionComment from CommenTater.VB
Listing 9-3: Using VSNetToolHostShim
Listing 9-4: Getting and setting the fonts for an option property page
Listing 9-5: Visual Basic .NET SettingsMaster project for turning on incremental linking in a debug build and off in a release build
Listing 9-6: C# SettingsMaster project for turning on warning level 4 in a release build
Listing 9-7: Native C++ SettingsMaster project for turning on whole program optimizations in release builds
Listing 9-8: Native C++ SettingsMaster project to set the .DEF file in debug and release builds

Chapter 10: Managed Exception Monitoring

Listing 10-1: GetClassAndMethodFromFunctionId
Listing 10-2: BeginInprocDebugging
Listing 10-3: GetClassNameFromValueInterface

Chapter 11: Flow Tracing

Listing 11-1: Hook function example
Listing 11-2: A Default .FLS File

Chapter 12: Finding Source and Line Information with Just a Crash Address

Listing 12-1: Example MAP file
Listing 12-2: An abbreviated .P2M file
Listing 12-3: The CCrashFinderDoc::LoadAndShowImage function

Chapter 13: Crash Handlers

Listing 13-1: Example SEH handler
Listing 13-2: Example SEH handler with exception filter processing
Listing 13-3: C++ exception handler example
Listing 13-4: CRASHHANDLER.CPP
Listing 13-5: SnapCurrentProcessMiniDump and friends from MINIDUMP.CPP

Chapter 15: Multithreaded Deadlocks

Listing 15-1: DeadlockDetection output using TESTFILEDDEXT.DLL
Listing 15-2: HookImportedFunctionsByNameA from HOOKIMPORTEDFUNCTIONBYNAME.CPP
Listing 15-3: DD_FUNCS.H

Chapter 16: Automated Testing

Listing 16-1: MINIMAL.VBS showing how to use common Tester objects
Listing 16-2: HANDLERS.VBS showing how to use the TNotify object
Listing 16-3: TNOTIFYHLP.CPP
Listing 16-4: CRecordingEngine::NormalKeyState

Chapter 17: The Debug C Run-Time Library and Memory Management

Listing 17-1: Setting up the DCRT and leaking memory
Listing 17-2: MEMDUMPERVALIDATOR.H
Listing 17-3: DUMP.CPP
Listing 17-4: CRTDBG_INTERNALS.H
Listing 17-5: HEAPER.CPP, a Windows heap corruption example
Listing 17-6: /RTCx custom error reporting

Chapter 19: Smoothing the Working Set

Listing 19-1: PENTERHOOK.CPP
Listing 19-2: FILEFORMAT.H
Listing 19-3: SWS symbol enumeration
Listing 19-4: The SWS tuning algorithm




Debugging Applications for Microsoft. NET and Microsoft Windows
Debugging Applications for MicrosoftВ® .NET and Microsoft WindowsВ® (Pro-Developer)
ISBN: 0735615365
EAN: 2147483647
Year: 2003
Pages: 177
Authors: John Robbins

flylib.com © 2008-2017.
If you may any questions please contact us: flylib@qtcs.net