# HG changeset patch # User fturovic # Date 1279653279 18000 # Node ID 7bcb3d75800572dd99daaac481699ebca6e06eb7 # Parent 0083290c145abe11a67b9c698a15567266f18bf3 completed remote debug tutorial diff -r 0083290c145a -r 7bcb3d758005 core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/new_proj_dll_example_00.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/new_proj_dll_example_00.htm Tue Jul 20 13:52:51 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/new_proj_dll_example_00.htm Tue Jul 20 14:14:39 2010 -0500 @@ -4,7 +4,7 @@ -Creating and Debugging DLL Projects Tutorial +DLL Projects Tutorial diff -r 0083290c145a -r 7bcb3d758005 core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/new_proj_from_template_01.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/new_proj_from_template_01.htm Tue Jul 20 13:52:51 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/new_proj_from_template_01.htm Tue Jul 20 14:14:39 2010 -0500 @@ -56,7 +56,7 @@ NEXT STEP > Building an executable based on the project sources

Other references

diff -r 0083290c145a -r 7bcb3d758005 core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/new_proj_from_template_03.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/new_proj_from_template_03.htm Tue Jul 20 13:52:51 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/new_proj_from_template_03.htm Tue Jul 20 14:14:39 2010 -0500 @@ -57,7 +57,7 @@

Other references

diff -r 0083290c145a -r 7bcb3d758005 core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/run_mode_debug_example_00.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/run_mode_debug_example_00.htm Tue Jul 20 13:52:51 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/run_mode_debug_example_00.htm Tue Jul 20 14:14:39 2010 -0500 @@ -12,7 +12,7 @@

In this example we demonstrate how to debug applications on a remote device using the Application TRK remote debug agent. This enables you to test programs on the actual device it will operate on while observing its behavior using the Carbide debugger. The steps to do this include:

  1. Connect target device for PC
  2. -
  3. Install TRK v3.2.6 remote agent or later on the target device
  4. +
  5. Install TRK remote agent (v3.2.7) or later on the target device
  6. Configure project for downloading
  7. Debug project on target device
diff -r 0083290c145a -r 7bcb3d758005 core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/run_mode_debug_example_01.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/run_mode_debug_example_01.htm Tue Jul 20 13:52:51 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/run_mode_debug_example_01.htm Tue Jul 20 14:14:39 2010 -0500 @@ -12,7 +12,7 @@

In this example we demonstrate how to debug applications on a remote device using the Application TRK remote debug agent. This enables you to test programs on the actual device it will operate on while observing its behavior using the Carbide debugger. The steps to do this include:

  1. Connect target device to PC
  2. -
  3. Install TRK remote agent (v3.2.6) or later on the target device
  4. +
  5. Install TRK remote agent (v3.2.7) or later on the target device
  6. Configure project for downloading
  7. Debug project on target device
diff -r 0083290c145a -r 7bcb3d758005 core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/run_mode_debug_example_02.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/run_mode_debug_example_02.htm Tue Jul 20 13:52:51 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/run_mode_debug_example_02.htm Tue Jul 20 14:14:39 2010 -0500 @@ -11,7 +11,7 @@

In this example we demonstrate how to debug applications on a remote device using the Application TRK remote debug agent. This enables you to test programs on the actual device it will operate on while observing its behavior using the Carbide debugger. The steps to do this include:

  1. Connect target device to PC
  2. -
  3. Install TRK remote agent (v3.2.6) or later on the target device
  4. +
  5. Install TRK remote agent (v3.2.7) or later on the target device
  6. Configure project for downloading
  7. Debug project on target device
diff -r 0083290c145a -r 7bcb3d758005 core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/run_mode_debug_example_03.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/run_mode_debug_example_03.htm Tue Jul 20 13:52:51 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/run_mode_debug_example_03.htm Tue Jul 20 14:14:39 2010 -0500 @@ -12,7 +12,7 @@

In this example we demonstrate how to debug applications on a remote device using the Application TRK remote debug agent. This enables you to test programs on the actual device it will operate on while observing its behavior using the Carbide debugger. The steps to do this include:

  1. Connect target device to PC
  2. -
  3. Install TRK remote agent (v3.2.6) or later on the target device
  4. +
  5. Install TRK remote agent (v3.2.7) or later on the target device
  6. Configure project for downloading
  7. Debug project on target device
diff -r 0083290c145a -r 7bcb3d758005 core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/run_mode_debug_example_04.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/run_mode_debug_example_04.htm Tue Jul 20 13:52:51 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/run_mode_debug_example_04.htm Tue Jul 20 14:14:39 2010 -0500 @@ -12,13 +12,33 @@

In this example we demonstrate how to debug applications on a remote device using the Application TRK remote debug agent. This enables you to test programs on the actual device it will operate on while observing its behavior using the Carbide debugger. The steps to do this include:

  1. Connect target device to PC
  2. -
  3. Install TRK remote agent (v3.2.7) or later on the target device
  4. -
  5. Configure project for downloading
  6. +
  7. Install TRK remote agent (v3.2.7) or later on the target device
  8. +
  9. Configure project for downloading
  10. Debug project on target device

-

 

-

 

+

You debug on a remote device using the exact same methods used for the emulator. Once the project is built and downloaded to the target device, the TRK remote agent then takes control. Then, using the Carbide debugger you can use all the debugger features to exercise the program on the device while monitoring its vitals in the Debug perspective.

+
+

Debugging a program on a remote device

+
    +
  1. Set breakpoints in the program. +

    Set breakpoints at the critical points in the program where you want to stop execution.

    +
  2. +
  3. Click the Debug icon (Debug icon) to launch the program for debugging on the target device. +

    Follow the steps in Configure project for downloading to build and launch the program for debugging.

    +
  4. +
  5. Use the Carbide debugger to examine program internals and control its execution. +

    Use any of the following features to debug your program:

    +
      +
    • Use the various stepping commands to walk through the program.
    • +
    • Examine and change variables and expressions in the Variables view.
    • +
    • Examine the stack in the Debug view
    • +
    • Review the assembler code in the Disassembly view
    • +
    • Examine memory usage in the Memory view
    • +
    +
  6. +
+

Other references