diff --git a/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_add_watch.htm b/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_add_watch.htm index 0e3b1bf3140..1e9b3dc4f7c 100644 --- a/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_add_watch.htm +++ b/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_add_watch.htm @@ -18,28 +18,20 @@ application whenever the value of a given expression changes, without specifying where this may happen. Unlike breakpoints which are line-specific watchpoints are associated with files. They take effect whenever a specified condition is -true regardless of when or where it occurred.

+true regardless of when or where it occurred. +To set a watchpoint on a global variable highlight the variable in the editor or +select it in the outline view.

-

To add a watchpoint:

+

To set a watchpoint on a global variable:

    -
  1. Click Run > Add C/C++ Watchpoint.
  2. -
      -
    1. If Add C/C++ Watchpoint is not listed on the Run menu, select Window - > Customize Perspective.
    2. In the Customize Perspective dialog - box, expand Other in the Available Items list.
    3. Select the C/C++ Debug check box. Click OK.
    4. -
    -
  3. In the Add C/C++ Watchpoint dialog box, type an expression in the Expression to watch - box. The - expression may be anything that can be evaluated inside an if - statement.
  4. +
  5. Highlight the variable in the editor or select it in the outline view.
  6. +
  7. Click Run > Toggle Watchpoint.
  8. Do any of the following:
  9. -
  10. In the C/C++ editor, open the file that you added the watchpoint to.
  11. -
  12. Click OK.
  13. The watchpoint appears in the Breakpoints view list.
diff --git a/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_controldebug.htm b/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_controldebug.htm index 14f466b2845..d81c1410feb 100644 --- a/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_controldebug.htm +++ b/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_controldebug.htm @@ -23,7 +23,7 @@ core set of debug controls.

  1. In the Debug view, select a thread.
  2. -
  3. To complete the debug session, click:
  4. +
  5. To control the debug session, click:
-

To modify Registers view preferences:

- -
    -
  1. Click Window > Preferences.
  2. -
  3. Expand Debug, and click Registers View.
  4. -
  5. Make the required changes, and click OK.
  6. -
-

Related concepts
C/C++ Development perspective
diff --git a/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_rem_wtch_brk.htm b/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_rem_wtch_brk.htm index 501b0916e82..9058b3f50ba 100644 --- a/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_rem_wtch_brk.htm +++ b/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_rem_wtch_brk.htm @@ -22,7 +22,6 @@ where it was inserted and the Breakpoints view.

  • In the Breakpoints view, do one of the following:
  • diff --git a/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_run_dbg.htm b/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_run_dbg.htm index 16a3b004dca..5ac8e10e6ee 100644 --- a/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_run_dbg.htm +++ b/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_run_dbg.htm @@ -33,7 +33,6 @@ function changeSize(theImage,wd,ht) { Run Debugger window
  • Select a debugger from the Debugger list.
  • -
  • To be prompted to select a process from a list at run-time, select Attach to running process.
  • To let your program run until you interrupt it manually, or until it hits a breakpoint, clear the Stop at main() on startup check box .
  • Specify debug options in the Debugger Options box.
  • diff --git a/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_run_source.htm b/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_run_source.htm index 5e8057afe4e..6a35a5e5eb4 100644 --- a/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_run_source.htm +++ b/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_run_source.htm @@ -13,44 +13,27 @@

    Specifying the location of source files

    -

    You can specify the location of source files used when debugging a C or C++ -application. By default, this information is taken from the build path of your -project.

    +

    You can specify the locations of source files used when debugging a C or C++ +application. By default, this information is taken from your project.

    -

    To specify the location of source files:

    +

    To specify the locations of source files:

    1. In the C/C++ Projects view, select a project.
    2. Click Run > Run or Run > Debug.
    3. In the Configurations box, expand C/C++ Local.
    4. Select a run or debug configuration.
    5. -
    6. Click the Source tab.

      The Generic Source Locations list shows - the location of the project selected in the C/C++ Projects view and any - referenced projects.

    7. -
    8. To add an existing source locations: +
    9. Click the Source tab.
    10. +
    11. To add a source container to the source locations list: -
    12. You can change the order of source locations are used by selecting a location and clicking - the Up or Down buttons.
    13. -
    14. You can remove a source location by selecting the location and clicking the Remove button.
    15. -
    16. To search for duplications in your source locations select the Search for duplicate source files checkbox.
    17. -
    18. Click Run or do the following, as required: +
    19. Click Add to open the Add Source dialog box
    20. +
    21. Select a container type.
    22. +
    23. Select a container from the list of available containers of the selected type.
    24. + +
    25. You can remove or modify a source container by selecting a container and clicking the Remove or Edit button.
    26. +
    27. You can change the order of source containers by selecting a container and clicking + the Up or Down buttons.
    28. +
    29. To search for duplications in your source locations select the Search for duplicate source files on the path checkbox.

    Related concepts diff --git a/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_variables.htm b/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_variables.htm index d8ea799679c..2f2fedc5ded 100644 --- a/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_variables.htm +++ b/doc/org.eclipse.cdt.doc.user/tasks/cdt_t_variables.htm @@ -29,8 +29,7 @@ or disable variable values.

    program handles a particular value or to speed through a loop.

      -
    1. In Variables view, right-click a variable, and select Change Variable - Value.
    2. +
    3. In Variables view, right-click a variable, and select Change Value.
    4. Type a value.