Splitting/Merging Cursors

When debugging a parallel program it's sometimes helpful to restart after some breakpoint a part of processes while holding execution of the rest of the processes. You can do it by making some of green cursors amber. If you want to restart a part of processes corresponding to one green cursor you can split this cursor into two cursors and make one of them amber. To the amber cursor there will correspond the processes, execution of which you want to hold. Also you can merge green or amber cursors.

Remember that the cursors you want to merge must have the same color and process cursors of all processes corresponding the cursors must correspond to the same line of the source code.

To split a cursor

  1. On the Debug cursors tab of the Debug info window right-click the cursor you want to split. The Cursor manager dialog appears with the Split Cursors tab active. If the Debug cursors tab isnít displayed click View->Debug Windows->Debug cursors

  2. In the Select cursor combo box you can select a cursor to split.

  3. Select the process or processes you want to add to new cursor from the left list and click . The process appears in the right list. If you change your mind about adding some process to the new cursor select this process from the right list and click .

  4. Thus you have two new cursors. In the left and right lists there are presented processes constituting these cursors. For any cursor you can set color by choosing one from the Select color dropdown list.

  5. Click Split.

To merge cursors

  1. On the Debug cursors tab of the Debug info window right-click one of the cursors you want to merge. The Cursor manager dialog appears with the Merge Cursors tab active.

  2. In the Select cursor combo box you can select one of cursors to merge.

  3. Select the cursors to merge from the list. In the list there are presented all the cursors with the current position corresponding to the same line of source code.

  4. For new cursor you can set color by selecting one in the Select color combo box.

  5. Click Merge.

See also:

Cursors overview

Debug info window