To compile use EVC 4.0. 
Open workspace BreakpointSamples.vcw.
Select "Pocket PC 2003" "Win32 (WCE ARMV4) Debug configuration.
Build all 3 projects.
Results will be in directory "bin"

How to run BreakpointSamples:
1. Build project BreakpointSamples using EVC.
2. Copy BreakpointSamples.exe to a convenient directory, such as "\Windows\Start Menu\Programs"
3. Run BreakpointSamples.exe on the XScale-based Windows CE device.
   You can run it stand-alone or under the EVC debugger.
4. BreakpointSamples will display several message boxes asking whether to execute various examples.
   You can answer Yes to execute the example or No to skip it.
5. When running stand-alone the exceptions generated by data breakpoints will be displayed in
   message boxes. When running under EVC debugger these exceptions will break into the debugger
   (depending on it's settings) and will be displayed as "Access Violation".
6. Also you may try to run BreakpointSamples.exe when the Simple Kernel debugger stub
    is activated (see below).

How to run the Simple Kernel debugger stub:
1. Build projects SimpleKDStub and KDViewer using EVC.
2. Copy SimpleKDStub.dll to "\windows\SimpleKDStub.dll" on a PPC 2003 device.
3. Copy KDViewer.exe to any convenient directory, such as "\Windows\Start Menu\Programs"
4. Run KDViewer.exe on the device. It should load the SimpleKDStub.dll and
   register it with the kernel as the KD stub. Also KDViewer.exe should display a window
   with the content of the trace buffer. If successful, it should display the following:

 InitDbg ret 1
 KdInit: Dbg installed
 AttachDebugger succeeded

5. Invoke Menu | Generate Exception command to test the exception handler of the kernel debugger.
    You should see the exception information printed:
    
   This is a trap! first chance. Code: C0000005 flags: 0 address: 17BF4 R: .........

6. If desired, invoke Menu | Save command to save the content of the trace buffer to a file.
    The file will be saved to "\My Documents" directory.

7. Without closing KDViewer.exe start BreakPointSamples.exe and trigger some breakpoints.
    See them displayed in the KDViewer.
