diff --git a/doc/org.eclipse.cdt.doc.user/contexts_CDT_DEBUGGER.xml b/doc/org.eclipse.cdt.doc.user/contexts_CDT_DEBUGGER.xml index 292a67ed9da..1ce6633ba7b 100644 --- a/doc/org.eclipse.cdt.doc.user/contexts_CDT_DEBUGGER.xml +++ b/doc/org.eclipse.cdt.doc.user/contexts_CDT_DEBUGGER.xml @@ -17,6 +17,8 @@ + + ]> @@ -73,4 +75,17 @@ + + + Select or search for C/C++ executable files. + + + + + Choose or create a project to hold the executable. + + + diff --git a/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes01.png b/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes01.png index a834735ca8b..16cb90d5eca 100644 Binary files a/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes01.png and b/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes01.png differ diff --git a/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes02.png b/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes02.png index 80d4b3f1e80..f1854831ac2 100644 Binary files a/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes02.png and b/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes02.png differ diff --git a/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes03.png b/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes03.png index 4a30d50dde6..615a4d7dea2 100644 Binary files a/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes03.png and b/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes03.png differ diff --git a/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes04.png b/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes04.png index 6c3051a6ef4..057916c770b 100644 Binary files a/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes04.png and b/doc/org.eclipse.cdt.doc.user/images/cdt_debug_exes04.png differ diff --git a/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_debug_exes.htm b/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_debug_exes.htm index f6001b4cfa1..c3d345b97c5 100644 --- a/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_debug_exes.htm +++ b/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_debug_exes.htm @@ -6,6 +6,9 @@ Debugging Existing Executables + @@ -15,29 +18,41 @@

Importing Executables for Debugging

    -
  1. Select the File > Import... menu item - to open the Import wizard dialog: -

    -
  2. -
  3. Select C/C++ Executable, then click Next to open the Import Executable wizard.
  4. -
  5. Enter the executable path in the Select Executable field or click Browse to locate the executable.
  6. -

    Use Select Executable to choose a single executable or Search Directory to select one or more executables to import from the specified directory.

    -

    -

    NOTE You can import any executable, but only those built with debug symbols will be let you step through source code and see variable values.

    -
  7. Click Next to see the Choose Project page
  8. -

    Use the Choose Project page to create a new project (you can use the default name assigned) and debug configuration. You can import executables into a new project or an existing one. The new project is configured to hold the executable, but not to build anything.

    -

    -

    Select from the menu of launch configuration types to select one for debugging. This launch configuration will be created for you with default settings for debugging your executable.

    -
  9. Click Finish
  10. -

    The executable is added to the C/C++ Projects view and the Launch configuration window appears..

    -

    -
  11. Click Debug
  12. -

    The debugger launches and you can begin debugging the executable.

    -
  13. Setting breakpoints
  14. -

    Expand the executable in the C++ Projects view to see the list of source files. Only executables built with debug symbols will show a list of source files. The source files can be opened in the editor so you can set breakpoints. Use these files only for debugging, you can not change them and rebuild the executable with this project.

    -

    C++ Projects View

    +
  15. Select the File > Import... menu item. +
  16. In the Import wizard dialog, click C/C++ and select C/C++ Executable.
    +

  17. +
  18. Click Next.
  19. +
  20. In the Import C/C++ Executable Files page of the Import Executable dialog:
    + +

    +

    NOTE You can import any executable, but only those built with debug symbols will be let you step through source code and see variable values.

    +
  21. +
  22. Click Next.
  23. +
  24. In the Choose Project page of the Import Executable dialog:
    + +

    +

  25. +
  26. Click Finish.
    +

    The executable is added to the C/C++ Projects view.

  27. +
  28. If Create a Launch Configuration was activated, the Debug dialog appears.
    +

    +
  29. +
  30. Click Debug.
    +

    The debugger launches and you can begin debugging the executable.

- + +

Setting breakpoints

+

Expand the executable in the C++ Projects view to see the list of source files. Only executables built with debug symbols will show a list of source files. The source files can be opened in the editor so you can set breakpoints. Use these files only for debugging, you can not change them and rebuild the executable with this project.

+

C++ Projects View

+

Related concepts
Debug overview
Debug information

@@ -45,7 +60,7 @@ Debugging

Related reference
Run and Debug dialog box

-
 
- +
+Nokia Copyright Statement