Debugging in Windows
-
Upload
kumari-priyanka -
Category
Documents
-
view
23 -
download
2
description
Transcript of Debugging in Windows
TRAVIS HOBRLA
SOFTWARE DESIGN ENGINEER
WINDOWS EMBEDDED CE BSP TEAM
MICROSOFT CORPORATION
Debugging prerequisites
CE debug environment
Debug architecture
Debugging tools available to you
Demonstration
Advanced debugging tools
Visual Studio 2005 +
Platform Builder
Debug transport
Source code
Your device
Visual Studio: the IDE
Platform Builder: a Visual Studio plug-in
Using them, you can:
Build
Download to device
Debug
CE debugger affects
Entire OS
Applications Kernel
While debugger is loaded, the OS is
In run state In halted stateOr
Normal app debugging: separate VS2005 or load over debug transport
Connects device & host debuggers
KITL: Kernel Independent Transport Layer
Software layer connecting device to host
Supports:
Debugger
Command Shell
Remote Tools
Etc.
KITL active even when these tools aren’t!
CE Kernel
KITL:Kernel
Independent
Transport
Layer
Device HW
You
Visual Studio +
Platform Builder
Desktop HWEthernet USB Serial
Kernel Debugger
Transport Driver
Visual Studio +
Platform BuilderCE Device
Platform Builder
Debugger
Source Code +
Symbols
Kernel
Drivers
Applications
KITL
Watch window
Memory window
Registers window
Processes window
Threads window
Modules window
Source window
Disassembly window
Callstack window
Debug output window
Breakpoints window
TRAVIS HOBRLA
SOFTWARE DESIGN ENGINEER
WINDOWS EMBEDDED CE BSP TEAM
CEDebugX
http://msdn.microsoft.com/en-us/library/bb509784.aspx
Debugger extension
Automatically discovers:Stack overflows, thread starvation, deadlocks, orphaned synchronization objects,
heap corruption
Passive KITL
http://msdn.microsoft.com/en-us/library/aa914894.aspx
Don’t load KITL until an exception occurs
Great for beta testing
Hardware-assisted debugging
http://msdn.microsoft.com/en-us/library/aa935824.aspx
Using eXDI (eXtended Debug Interface)
For when KITL is unavailable:Bootloader, early OS boot, ISRs
Postmortem debugging
http://msdn.microsoft.com/en-us/library/aa936043.aspx
Can capture dump file during halted state
Debug later without the device
Visual Studio + Platform Builder
CE debugger = system debugger
Debug transport: KITL
Tons of debugging tools available to you
© 2009 Microsoft Corporation. All rights reserved.This presentation is for informational purposes only. Microsoft makes no warranties, express or implied, in this summary.