# HG changeset patch # User fturovic # Date 1283289482 18000 # Node ID a77f12f0a6315b96c720de671066f475a6a8a84b # Parent d8b5c1e3a21e15c1a1d11c2a3af999345313ff61 BUG 10651 - added debugging dll with any process info, revised launch config pages and others diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/cheatsheets/trk_appTrk_debugapps_cs.xml --- a/core/com.nokia.carbide.cpp.doc.user/html/cheatsheets/trk_appTrk_debugapps_cs.xml Tue Aug 31 14:13:15 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/cheatsheets/trk_appTrk_debugapps_cs.xml Tue Aug 31 16:18:02 2010 -0500 @@ -1,40 +1,40 @@ - - - - - - Read the following information to Debug DLLs, Applications, and Executables. - - - - - - Click question mark on right side for instructions to debug DLLs. - - - - - - Click question mark on right side for instructions to debug applications. - - - - - - Click question mark on right side for instructions to import and debug a Symbian executable. - - - - - - Click question mark on right side for instructions to attach to a Symbian OS Process. - - - - - - Click question mark on right side for instructions to debug a compiled Symbian OS program. - - - + + + + + + Read the following information to Debug DLLs, Applications, and Executables. + + + + + + Click question mark on right side for instructions to debug DLLs. + + + + + + Click question mark on right side for instructions to debug applications. + + + + + + Click question mark on right side for instructions to import and debug a Symbian executable. + + + + + + Click question mark on right side for instructions to attach to a Symbian OS Process. + + + + + + Click question mark on right side for instructions to debug a compiled Symbian OS program. + + + \ No newline at end of file diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/concepts/autotargeting.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/concepts/autotargeting.htm Tue Aug 31 14:13:15 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/concepts/autotargeting.htm Tue Aug 31 16:18:02 2010 -0500 @@ -9,14 +9,17 @@

Auto-Targeting of Executables

-

In run-mode the Carbide debugger now supports the auto-targeting of processes that are already running or are created during the execution of the debug session. Previously, the debugger forced users to explicitly attach to a running process. Now, the debugger attempts to target all the EXEs specified in the Executables tab of the launch configuration.

+

In run-mode the Carbide debugger now supports the auto-targeting of processes that are already running or are created during the execution of the debug session. Previously, the debugger forced users to explicitly attach to a running process. Now, the debugger attempts to target all the EXEs and binaries like DLLs specified in the Executables tab of the launch configuration.

+

Debugging DLLs

+

One common debugging DLL use case is when the developer doesn't know which process calls the DLL. This makes it difficult to debug the DLL because you doesn't know which process to attach to nor start. Carbide enables DLL debugging by simply attaching the DLL to any running process as long as the DLL is included in the Executables view. See Attaching to a OS Process for more details.

Other References
diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/concepts/build_configurations.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/concepts/build_configurations.htm Tue Aug 31 14:13:15 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/concepts/build_configurations.htm Tue Aug 31 16:18:02 2010 -0500 @@ -16,7 +16,7 @@

Build configurations are defined when the project is created. A project can have any number of build configurations and more can be added as necessary. Each build configuration can have its own combination of tool settings to precisely control how it is defined and built. Build configurations are maintained in the project Properties window in the Carbide Build Configurations panel. To open the panel, select a project in the Project Explorer or Symbian Project Navigator view and select Project > Properties or right-click and select Properties.

-

You can select a build configuration in the Active Configuration group or use the Project > Active Configuration menu option to set which build configuration to launch when running or debugging a program. The currently selected project can be launched by clicking the Run () or Debug () control on the tool bar to launch the project with the currently active build configuration. When no project is selected the last project debugged will be launched.

+

You can select a build configuration in the Active Configuration group or use the Project > Active Configuration menu option to set which build configuration to launch when running or debugging a program. The currently selected project can be launched by clicking the Run () or Debug () control on the tool bar to launch the project with the currently active build configuration. When no project is selected the last project debugged will be launched.

If no launch configuration is present in the project, one is created on initial launch. Subsequent launches of the project will use either the last launch configuration or if more than one launch configuration exists, it uses the most correct one.

NOTE The Carbide Run and Debug buttons are shaded in blue to indicate their behavior differs from the standard Eclipse behavior.

Table 1 Build Configuration items
diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/context_help/carbide_debug_dialogs_help.xml --- a/core/com.nokia.carbide.cpp.doc.user/html/context_help/carbide_debug_dialogs_help.xml Tue Aug 31 14:13:15 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/context_help/carbide_debug_dialogs_help.xml Tue Aug 31 16:18:02 2010 -0500 @@ -41,7 +41,7 @@ Use the Symbian OS Data view to view processes, threads, chunks, and library information - + @@ -49,7 +49,7 @@ The Overview pane displays kernel objects by their heirarchical owner relationship - + @@ -57,7 +57,7 @@ The Processes pane lists processes in the target's Symbian OS - + @@ -65,7 +65,7 @@ The Threads pane lists threads in the target's Symbian OS - + @@ -73,7 +73,7 @@ The Chunks pane lists chunks in the target's Symbian OS - + @@ -81,7 +81,7 @@ The Libraries pane lists libraries in the target's Symbian OS - + @@ -166,14 +166,14 @@ Create an Attach to Process launch configuration. - + Attaching to a process on the target device. - + diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/debugger/debug/cmds_starting.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/debugger/debug/cmds_starting.htm Tue Aug 31 14:13:15 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/debugger/debug/cmds_starting.htm Tue Aug 31 16:18:02 2010 -0500 @@ -16,11 +16,11 @@
  • Restarting a session
  • Starting a session

    -

    Use the Debug command () to execute a program under debugger control using the current launch configuration settings.

    +

    Use the Debug command () to execute a program under debugger control using the current launch configuration settings.

    If the project does not already have a launch configuration, the New Launch Configuration Wizard will automatically create one for emulator targets or ask for additional information to create phone or hardware device configurations. It will generate a default name for the launch configuration and add it to the list of available launch configurations for the project. Once complete and saved the debug session is launched. If a launch configuration is already available, the Debug command launches the last launch configuration used by the project.

    To create new launch configurations where none previously existed or launch the last one created:

      -
    • Click the Debug button () in the Carbide C/C++ perspective
    • +
    • Click the Debug button () in the Carbide C/C++ perspective
    • Select Run > Debug from the menu bar

    To launch a specific launch configuration:

    diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/images/icons/menu_build_target.png Binary file core/com.nokia.carbide.cpp.doc.user/html/images/icons/menu_build_target.png has changed diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/images/icons/wiz_launch_config_app_selection.png Binary file core/com.nokia.carbide.cpp.doc.user/html/images/icons/wiz_launch_config_app_selection.png has changed diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/images/icons/wiz_launch_config_finish.png Binary file core/com.nokia.carbide.cpp.doc.user/html/images/icons/wiz_launch_config_finish.png has changed diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/images/icons/wiz_launch_config_launch_types.png Binary file core/com.nokia.carbide.cpp.doc.user/html/images/icons/wiz_launch_config_launch_types.png has changed diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/images/icons/wiz_launch_config_rom_image.png Binary file core/com.nokia.carbide.cpp.doc.user/html/images/icons/wiz_launch_config_rom_image.png has changed diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/images/icons/wiz_launch_config_trace32.png Binary file core/com.nokia.carbide.cpp.doc.user/html/images/icons/wiz_launch_config_trace32.png has changed diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/images/icons/wiz_launch_config_trk_conn.png Binary file core/com.nokia.carbide.cpp.doc.user/html/images/icons/wiz_launch_config_trk_conn.png has changed diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/images/icons/wiz_launch_config_trk_sis.png Binary file core/com.nokia.carbide.cpp.doc.user/html/images/icons/wiz_launch_config_trk_sis.png has changed diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/projects/launch/applications.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/projects/launch/applications.htm Tue Aug 31 14:13:15 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/projects/launch/applications.htm Tue Aug 31 16:18:02 2010 -0500 @@ -1,19 +1,19 @@ - - - - -Applications Launch Configuration - - - - -

    Applications Launch Configuration

    -

    Use the Symbian OS Applications launch configuration to launch projects using the best launch configuration match. When chosen, Carbide examines the project and determines which specific launch configuration works best for the project, then launches it with the selected launch configuration. It is essentially identical to clicking the Debug icon () in the toolbar.

    -

    Other references

    - - - - + + + + +Applications Launch Configuration + + + + +

    Applications Launch Configuration

    +

    Use the Symbian OS Applications launch configuration to launch projects using the best launch configuration match. When chosen, Carbide examines the project and determines which specific launch configuration works best for the project, then launches it with the selected launch configuration. It is essentially identical to clicking the Debug icon () in the toolbar.

    +

    Other references

    + + + + diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/projects/launch/images/menu_build_target.png Binary file core/com.nokia.carbide.cpp.doc.user/html/projects/launch/images/menu_build_target.png has changed diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/projects/launch/images/wiz_launch_config_app_selection.png Binary file core/com.nokia.carbide.cpp.doc.user/html/projects/launch/images/wiz_launch_config_app_selection.png has changed diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/projects/launch/images/wiz_launch_config_build_options.png Binary file core/com.nokia.carbide.cpp.doc.user/html/projects/launch/images/wiz_launch_config_build_options.png has changed diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/projects/launch/images/wiz_launch_config_debug_as.png Binary file core/com.nokia.carbide.cpp.doc.user/html/projects/launch/images/wiz_launch_config_debug_as.png has changed diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/projects/launch/images/wiz_launch_config_launch_types.png Binary file core/com.nokia.carbide.cpp.doc.user/html/projects/launch/images/wiz_launch_config_launch_types.png has changed diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/projects/launch/images/wiz_launch_config_rom_image.png Binary file core/com.nokia.carbide.cpp.doc.user/html/projects/launch/images/wiz_launch_config_rom_image.png has changed diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/projects/launch/images/wiz_launch_config_trk_conn.png Binary file core/com.nokia.carbide.cpp.doc.user/html/projects/launch/images/wiz_launch_config_trk_conn.png has changed diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/projects/launch/images/wiz_launch_config_trk_sis.png Binary file core/com.nokia.carbide.cpp.doc.user/html/projects/launch/images/wiz_launch_config_trk_sis.png has changed diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/projects/launch/images/wiz_launch_new_launch_config.png Binary file core/com.nokia.carbide.cpp.doc.user/html/projects/launch/images/wiz_launch_new_launch_config.png has changed diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/projects/launch/launch_configs_overview.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/projects/launch/launch_configs_overview.htm Tue Aug 31 14:13:15 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/projects/launch/launch_configs_overview.htm Tue Aug 31 16:18:02 2010 -0500 @@ -10,7 +10,7 @@

    Launch Configuration Overview

    A launch configuration defines the operational settings used by the Carbide.c++ tools to launch and debug programs. A project must have at least one launch configuration, and can have as many as necessary. This enables you to develop and debug your project using various compilers (GCCE and RVCT) and different targets (emulator, on-device, and reference boards) as each launch configuration can be tailored to fit the intended target.

    Creating a Launch Configuration

    -

    To create a default launch configuration for a project use the New Launch Configuration Wizard. Using this method ensures that you have a working launch configuration for the project. You can invoke the New Launch Configuration Wizard for projects lacking a launch configuration by selecting the Run > Debug (F11) or Run > Run (CTRL+F11) menu options, or clicking the Run (Run icon) or Debug (Debug icon) icons in the toolbar. If a project already has a defined launch configuration, selecting the Run or Debug command calls the previously defined and last used launch configuration, bypassing the wizard entirely.

    +

    To create a default launch configuration for a project use the New Launch Configuration Wizard. Using this method ensures that you have a working launch configuration for the project. You can invoke the New Launch Configuration Wizard for projects lacking a launch configuration by selecting the Run > Debug (F11) or Run > Run (CTRL+F11) menu options, or clicking the Run (Run icon) or Debug (Debug icon) icons in the toolbar. If a project already has a defined launch configuration, selecting the Run or Debug command calls the previously defined and last used launch configuration, bypassing the wizard entirely.

    For emulator projects the wizard simply gathers the data it needs from the project and creates an emulator launch configuration and launches the emulator. For on-device targets, more information is required, so the wizard asks for the missing information it needs, creates the launch configuration, then downloads the executable to the device and launches it. Once the emulator or device is loaded with the executable, the debug session commences.

    You can customize any project launch configuration afterward using the Debug dialog as necessary.

    Available Launch Configurations

    diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/projects/launch/wiz_new_launch_config.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/projects/launch/wiz_new_launch_config.htm Tue Aug 31 14:13:15 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/projects/launch/wiz_new_launch_config.htm Tue Aug 31 16:18:02 2010 -0500 @@ -10,80 +10,90 @@

    New Launch Configuration Wizard

    -

    The New Launch Configuration Wizard launches when no launch configuration exists for a project. Wherever possible the New Launch Configuration wizard gathers the information from the project and asks additional questions based on the type of launch configuration chosen. For example, a launch configuration using Application TRK requires different information than one targeted for System TRK.

    +

    The New Launch Configuration Wizard launches when no launch configuration exists for a build configuration in a project. Wherever possible the New Launch Configuration wizard gathers the information from the project and asks additional questions based on the type of launch configuration chosen. For example, a launch configuration using Application TRK requires different information than one targeted for System TRK.

    +

    Every project consists of one or more build configurations as listed under the Build project icon (Build project icon) of the toolbar or in the Add/Remove Carbide Build Configuration dialog. Every build configuration needs a launch configuration to enable debugging. Launch configurations can be shared between build configurations. The New Launch Configuration Wizard detects when a build configuration doesn't have an associated launch configuration and guides you through the setup process.

    +

    +

    Figure 1. Build configurations for the chosen project appear under the Build icon

    +

    To access the New Launch Configuration Wizard click the Debug icon () on the toolbar. If no launch configuration exists for the selected build target the wizard is launched. If a launch configuration already exists, then that launch configuration is launched and not the wizard.

    +

    Launch Configuration Wizard Pages

    +

    The following are the possible pages you will see depending upon your choice of build configuration and type of debugging required. Different launch configurations need different information to work properly. The following table lists all the pages seen when choosing common types of debugging.

    - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + +
    Launch ConfigurationWizard Pages
    Common pages
    Emulation
    Application TRK and System TRK
    Attach to Process
    Launch ConfigurationWizard Pages
    Common pages
    Simulator
    Application TRK and System TRK
    Attach to Process
    -

    To access the New Launch Configurtion Wizard click the Debug icon (). If no launch configuration exists for the build target the wizard is launched. If a launch configuration already exists, then that launch configuration is launched and not the wizard.

    -

    -

    Figure 1 - Build Target selection list

    -

    Category Types

    -

    Use the Category Types page to select the the launch category. The choices include Phone, Board, and possibly others. The choice made here filters the Launch Types page to only show valid launch configurations. Once a category is selected, click Next.

    -

    -

    Figure 2 - Category Types page

    +

    Debug As

    +

    Use the Debug As dialog to select the method of debugging for the chosen build configuration. The choices include:

    +
      +
    • Symbian OS Phone of Simulator Launch – choose to work with attached phones or devices
    • +
    +
      +
    • Symbian OS Platform Simulator Launch – choose to work with platform boards
    • +
    +

    The choice made here filters the Launch Types page to only show valid launch configurations. Once a debug as choice is made, click OK.

    +

    Debug As dialog

    +

    Figure 1 - Debug As dialog

    Launch Types

    Use the Launch Types page to select the type of launch configuration for the build target. This page does not appear when using an Emulator target. Available types are listed from the most frequently chosen (Application TRK) to the least likely type (Attach to Process). Select a type and click Next.

    -

    -

    Figure 3 - Launch Type page

    +

    +

    Figure 2 - Launch Type page

    Build Options Selection

    Use the Build Options Selection page to define if the launch configuration uses automatic build or not. Choices include using the global automatic built setting (default), enable or disable automatic build for the launch configuration. You can also set the global option using the Configure Workspace Settings... to open the Launching preference panel.

    -

    -

    Figure 4 - Build Options Selection page

    +

    +

    Figure 3 - Build Options Selection page

    Executable Selection

    Use the Application Selection page to choose a binary created by the project to launch and debug and verify its location. If only a single binary is available the Process to launch option is disabled.

    EMULATOR ONLY Use the Location field for emulator targets to verify that the correct executable on the host is selected. This field is not used with on-device launch configurations.

    Use the Specify device path of remote process to launch option to specify alternate paths for launching the executable from RAM (c:\sys\bin\), ROM (z:\sys\bin\) or memory cards (e:\sys\bin\) .

    Select the Executable to launch, verify it is the correct binary, then click Next.

    -

    -

    Figure 5 - Executable Selection page (when project has multiple EXEs)

    +

    +

    Figure 4 - Executable Selection page (when project has multiple EXEs)

    TRK Connection Settings

    Use the TRK Connection Settings page to specify the connection used to communicate with the target device. If the device is already connected, the drop down list will include both the COM port and the name of the device using that port. Use the On-Device Conection dialog to verify and update all Carbide software services on the device. Choose the serial port used to communicate with the target device and click Next.

    -

    -

    Figure 6 - TRK Connection Settings page

    +

    +

    Figure 5 - TRK Connection Settings page

     

    TRK SIS Selection

    Use the TRK SIS Selection page to select the SIS file to install on the target device. Click the Modify SIS builder settings for build configuration link to open the SIS Builder properties pane to add, edit, or review the SIS files to build. Once the correct SIS File to Install is selected, click Next.

    -

    -

    Figure 7 - TRK SIS Selection page

    +

    +

    Figure 6 - TRK SIS Selection page

    New Launch Configuration

    Use the New Launch Configuration page to note the name of the configuration, confirm the launch configuration settings, and then launch the debug session. If something doesn't look right, click Back to return to a page and change its setting. If all the settings are correct, click Finish to start the debug session using this launch configuration.

    If you checkmark Advanced settings, the Debug dialog appears instead of launching the project. This enables you to make additional changes to the new launch configuration before starting the debug session. By design and intent, this should seldom be required for the initial launch.

    -

    -

    Figure 8 - New Launch Configuration page

    +

    New Launch Configuration dialog

    +

    Figure 7 - New Launch Configuration page

    Other references
    • Launch Configuration
    • diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/new_proj_dll_example_03.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/new_proj_dll_example_03.htm Tue Aug 31 14:13:15 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/new_proj_dll_example_03.htm Tue Aug 31 16:18:02 2010 -0500 @@ -25,7 +25,7 @@
      • Right-click the project in the Project Explorer view and choose Debug As > Debug Symbian OS Application on Phone or Simulator menu option.
      • Click the Run > Debug (F11) menu option.
      • -
      • Click the Debug (Debug icon) icon in the toolbar to build the project.
      • +
      • Click the Debug (Debug icon) icon in the toolbar to build the project.

      The first time you perform any of the following actions, the New Launch Configuration Wizard appears asking for the additional info to connect to a device.

      New Launch Configuration Wizard

      diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/new_proj_from_template_04.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/new_proj_from_template_04.htm Tue Aug 31 14:13:15 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/new_proj_from_template_04.htm Tue Aug 31 16:18:02 2010 -0500 @@ -32,7 +32,7 @@
      • Right-click the project and choose Debug As > Debug Symbian OS Application on Emulator.
      • Click the Run > Debug (F11) menu item.
      • -
      • Click the Debug (Debug icon) icon in the toolbar.
      • +
      • Click the Debug (Debug icon) icon in the toolbar.

      The emulator is launched and the Debug perspective appears to manage the debug session.

      diff -r d8b5c1e3a21e -r a77f12f0a631 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 Aug 31 14:13:15 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/run_mode_debug_example_03.htm Tue Aug 31 16:18:02 2010 -0500 @@ -25,7 +25,7 @@

      We choose Phone Debug (armv5_udeb) for this example using the Manage Configurations icon on the toolbar, but yours name may differ based upon the SDK selected for your project.

      Select device target

      -
    • Click the Debug icon (Debug icon) on the toolbar. +
    • Click the Debug icon (Debug icon) on the toolbar.

      This opens the New Launch Configuration Wizard dialog asking for additional information. For the first launch you must define the name of the package to install on the target device.

      New Launch Configuration Wizard

        diff -r d8b5c1e3a21e -r a77f12f0a631 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 Aug 31 14:13:15 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/projects/tutorials/run_mode_debug_example_04.htm Tue Aug 31 16:18:02 2010 -0500 @@ -24,7 +24,7 @@
      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. +
      4. 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.

      5. Use the Carbide debugger to examine program internals and control its execution. diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/reference/view_executables.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/reference/view_executables.htm Tue Aug 31 14:13:15 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/reference/view_executables.htm Tue Aug 31 16:18:02 2010 -0500 @@ -13,7 +13,7 @@
        • target all binaries for debugging because the symbolics are automatically loaded when a bld.inf is imported or a project is created from a template
        • debug a binary that is not part of a project in the workspace by importing it into the Executables view to load the symbolics
        • -
        • debug a process running on a device by attaching to the process and importing the binaries associated with the process into the Executables view to load the symbolics. For example, you to debug a library loaded by the process, you would need to import the libary and the process executable.
        • +
        • debug a process running on a device by attaching to the process and importing the binaries associated with the process into the Executables view to load the symbolics. For example, you to debug a library loaded by the process, you would need to import the libary and the process executable.
        • remove binaries when a project is closed or deleted from the workspace
        • remove binaries imported from outside the workspace by clicking the Remove the selected executables icon () or deleting the binary from the Executables project in the Project Explorer view
        • locate and manage which source and resource files are associated with each executable. Paths shown in black text have been resolved, those in gray text cannot be found.
        • @@ -25,7 +25,7 @@

          NOTE To debug ROM DLLs with System TRK or in stop mode, always specify the ROM Log file in the project's launch configuration.

          Figure 1 - Executables view

          -

          The Executables view consists of the Executable Name and Source File Name panes describled in the table below. Use the Columns button in the toolbar to show or hide specific columns in each pane. Columns can be sorted and rearranged in the order desired.

          +

          The Executables view consists of the Executable Name and Source File Name panes describled in the table below. Use the Columns button in the toolbar to show or hide specific columns in each pane. Columns can be sorted and rearranged in the order desired.

          Table 1. Executables view information
          @@ -61,7 +61,7 @@

          Executables view toolbar icons

          -

          The table below lists the unique icons displayed in the Executables view toolbar.

          +

          The table below lists the unique icons displayed in the Executables view toolbar.

          Table 2. Executables view toolbar options
          @@ -77,7 +77,7 @@ - +
          Import an executable file Click to import an executable not in the workspace into the executables list. Click to select and import an executable not in the workspace into the executables list.
          @@ -96,6 +96,8 @@
          Other references
          diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/tasks/debugger/work_debug_act_debug.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/tasks/debugger/work_debug_act_debug.htm Tue Aug 31 14:13:15 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/tasks/debugger/work_debug_act_debug.htm Tue Aug 31 16:18:02 2010 -0500 @@ -9,12 +9,12 @@

          Debugging a Program

          -

          Use the Debug command () to execute a program under debugger control using the current launch configuration settings.

          +

          Use the Debug command () to execute a program under debugger control using the current launch configuration settings.

          If this is the first time the program is launched for debugging, a new debug launch configuration is automatically created for you based on current project settings and assigned a name. If a debug launch configuration is already available, the Debug command launches using the last debug launch configuration used with the project.

          Launching a Program for Debugging

            -
          • Click the Debug button () in the C/C++ perspective
          • +
          • Click the Debug button () in the C/C++ perspective
          • or

          • Select Run > Debug from the menu bar
          • Both of these methods create a new debug launch configuration if none previously existed in the project or uses the last one launched for debugging.

            diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/tasks/processes/attach_debugger_to_process.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/tasks/processes/attach_debugger_to_process.htm Tue Aug 31 14:13:15 2010 -0500 +++ /dev/null Thu Jan 01 00:00:00 1970 +0000 @@ -1,46 +0,0 @@ - - - - - - -Attaching to a Symbian OS Process - - - -

            Attaching to a Symbian OS Process

            -
            -

            Use the Symbian OS Attach to Process launch configuration to attach the debugger to an already running Symbian OS process or thread on a target device. This is useful for debugging servers running in RAM in a client-server relationship where the client relies on the presence of the server process to operate as one example.

            -

            You can also attach to a process in the Symbian OS Data view when debugging.

            -

            NOTE You cannot attach to a process running on the emulator. It must be a target device running the Symbian OS and the TRK debug agent.

            -

            When attempting to find a process the debugger uses the UID3 to locate the process.

            -
            -

            Attaching to a Symbian OS Process

            -
              -
            1. Import an executable to import it into the Executables view
            2. -
            3. Select any project in the workspace or the binary to attach to in the Executables view
            4. -

              In this example, we select the Executables project created when the binary was imported from the Project Explorer view (Figure 1).

              -

              -

              Figure 1 - Executables project created when importing an executable

              -
            5. Click Debug () to launch the New Configuration Launch Wizard
            6. -
            7. Select the Attach to Process Launch Configuration option and fill in the requested information
            8. -
            9. Click Debug
            10. -

              The Attach to Process window appears. Click a column title to sort the processes in ascending or descending order to help you locate a specific process or use the filter text box to show specific processes.

              -

              -

              Figure 2 - Attach to Process window

              -
            11. Select a process, click OK
            12. -

              The Attach to Process window closes. Open a Symbian OS view to show the process and thread information.

              -

              NOTE Terminating an Attach to Process session actually kills the process on the device. This means you must restart the process on the device in order to attach to it again.

              -
            -
            -
            -
            Related references
            - - - - - diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/tasks/processes/attach_to_process.htm --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/core/com.nokia.carbide.cpp.doc.user/html/tasks/processes/attach_to_process.htm Tue Aug 31 16:18:02 2010 -0500 @@ -0,0 +1,50 @@ + + + + + + +Attaching to a Process + + + +

            Attaching to a Process

            +
            +

            Use a Symbian OS Attach to Process launch configuration to attach the debugger to an already running Symbian OS process or thread on a target device. This is useful for debugging DLLs where the main process is unknown or for servers running in RAM in a client-server relationship where the client relies on the presence of the server process to operate.

            +

            One common debugging DLL use case is when the developer doesn't know which process calls the DLL. This makes it difficult to debug the DLL because you doesn't know which process to attach to nor start. Carbide enables DLL debugging by simply attaching the DLL to any running process as long as the DLL is included in the Executables view.

            +

            You can also attach to a process in the Symbian OS Data view when debugging.

            +

            NOTE You cannot attach to a process running on the emulator. It must be a target device running the Symbian OS and the TRK debug agent.

            +

            When attempting to find a process the debugger uses the UID3 to locate the process.

            +
            +

            Attaching to any Running Process

            +
              +
            1. In the Executables view, click the Import an executable file icon (Import an executable icon) to add an executable to the Executables view for debugging. +

              The executable added appears in the Project Explorer view under an Executables project. This group includes all executables listed in the Executables view that are not linked to any project in the workspace.

              +

              Project Explorer Executables project

              +

              Figure 1 - Executables list in Project Explorer view

              +

              NOTE The executable must include symbolics in order for debugging to work.

              +
            2. +
            3. Click Debug (Debug icon) to launch the New Configuration Launch Wizard.
            4. +

              Select the Symbian OS Attach to Process launch configuration option and fill in the requested information.

              +

              Attach to Process launch config

              +

              Figure 2 - Attach to Process launch configuration

              +
            5. Click Debug.
            6. +

              The Attach to Process dialog appears. Click a column title to sort the processes in ascending or descending order to help you locate a specific process or use the filter text box to show specific processes.

              +

              +

              Figure 3 - Attach to Process window

              +
            7. Select a process, click OK.
            8. +

              In this example we've linked the prefs.dll program to the process BlackFlag.exe on the device. The Attach to Process dialog closes. Open the Symbian OS Data view to show the process and thread information.

              +

              NOTE Terminating an Attach to Process session actually kills the process on the device. This means you must restart the process on the device in order to attach to it again.

              +
            +
            +
            Related references
            + + + + + diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/tasks/projects/images/attach_to_process_launch_config.png Binary file core/com.nokia.carbide.cpp.doc.user/html/tasks/projects/images/attach_to_process_launch_config.png has changed diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/tasks/projects/images/attach_to_process_proj_explorer.png Binary file core/com.nokia.carbide.cpp.doc.user/html/tasks/projects/images/attach_to_process_proj_explorer.png has changed diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/tasks/projects/prj_debug_config.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/tasks/projects/prj_debug_config.htm Tue Aug 31 14:13:15 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/tasks/projects/prj_debug_config.htm Tue Aug 31 16:18:02 2010 -0500 @@ -20,7 +20,7 @@

            Creating a Default Launch Configuration

            NOTE Carbide only creates a new default launch configuration when it cannot find one in the project. If the project already contains a launch configuration, Carbide launches that instead.

              -
            • Click the Run (Run icon) or Debug (Debug icon) icon in the tool bar +
            • Click the Run (Run icon) or Debug (Debug icon) icon in the tool bar

              or

            • Choose Select Run > Run menu option to launch the project or Run > Debug menu option to debug the project
            • diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/tasks/projects/prj_debug_dlls.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/tasks/projects/prj_debug_dlls.htm Tue Aug 31 14:13:15 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/tasks/projects/prj_debug_dlls.htm Tue Aug 31 16:18:02 2010 -0500 @@ -14,7 +14,7 @@
            • If the DLL appears in the Executables view it can be debugged. Just set breakpoints inside the DLL sources before you start the debug session. The next time the project is debugged, the DLL is loaded and made available for debugging.
            -

            NOTE Breakpoints inside a DLL will not be resolved until the DLL is loaded into memory by the calling binary.

            +

            NOTE Breakpoints inside a DLL are not resolved until the DLL is loaded into memory by the calling binary.

            • If the DLL is not built by the project you can import the DLL by clicking the Import an executable file icon () in the Executables view. Then, set your breakpoints and start the debug session.
            • diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/tasks/start/carbide_example_trk.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/tasks/start/carbide_example_trk.htm Tue Aug 31 14:13:15 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/tasks/start/carbide_example_trk.htm Tue Aug 31 16:18:02 2010 -0500 @@ -22,7 +22,7 @@

              NOTE The symbolics are automatically loaded for the binaries that appear in the Executables view.

            • Set breakpoints in the project source files
            • In this example we will set one breakpoint in two different EXEs. The first is set in the file called MCEngine.cpp (MCServer.exe) and the second is set in MPlayerAppUI.cpp (MusicPlayer.exe).

              -
            • Click the Debug icon () to launch the New Launch Configuration wizard +
            • Click the Debug icon () to launch the New Launch Configuration wizard
              1. Select the Application TRK Launch Configuration from the Launch Types page, then click Next
              2. diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/tasks/start/carbide_overview_trk.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/tasks/start/carbide_overview_trk.htm Tue Aug 31 14:13:15 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/tasks/start/carbide_overview_trk.htm Tue Aug 31 16:18:02 2010 -0500 @@ -32,7 +32,7 @@

                At this point you can open sources files from the Executables view or project view in order to set breakpoints.

                Related tasks
                Related references
                  diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/html/tasks/trk/trk_carbide_setup.htm --- a/core/com.nokia.carbide.cpp.doc.user/html/tasks/trk/trk_carbide_setup.htm Tue Aug 31 14:13:15 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/html/tasks/trk/trk_carbide_setup.htm Tue Aug 31 16:18:02 2010 -0500 @@ -14,7 +14,7 @@
                • Symbian OS Appication TRK— used to run or debug applications on a target device using the Application TRK on-device debug agent. Application TRK is an application that runs on released phones and allows you to debug your executables. The debugger will download a Symbian OS installation file to the phone and install it prior to launching.
                • Symbian OS System TRK (not available in the Developer Edition) —used to run or debug applications or ROM code on a target device using the System TRK on-device debug agent. System TRK is an application that runs on reference boards and prototype phones and allows you to debug your executables. The debugger will download files to the phone prior to launching.
                -

                By default, you can click the Debug icon () in the toolbar to launch the New Launch Configuration Wizard. This creates a launch configuration for the project based on project information and any additional input required, like COM port selection. It is the recommended method for creating new launch configurations. Or, use the Debug window to create a customized launch configuration.

                +

                By default, you can click the Debug icon () in the toolbar to launch the New Launch Configuration Wizard. This creates a launch configuration for the project based on project information and any additional input required, like COM port selection. It is the recommended method for creating new launch configurations. Or, use the Debug window to create a customized launch configuration.

                Figure 1. Debug launch configuration for on-device debugging (Application TRK shown)

                diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/index.xml --- a/core/com.nokia.carbide.cpp.doc.user/index.xml Tue Aug 31 14:13:15 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/index.xml Tue Aug 31 16:18:02 2010 -0500 @@ -13,7 +13,7 @@ - + @@ -491,7 +491,7 @@ - + diff -r d8b5c1e3a21e -r a77f12f0a631 core/com.nokia.carbide.cpp.doc.user/tocCarbide.xml --- a/core/com.nokia.carbide.cpp.doc.user/tocCarbide.xml Tue Aug 31 14:13:15 2010 -0500 +++ b/core/com.nokia.carbide.cpp.doc.user/tocCarbide.xml Tue Aug 31 16:18:02 2010 -0500 @@ -31,6 +31,7 @@ + @@ -278,7 +279,7 @@ --> - + @@ -323,9 +324,11 @@ + + + + - -