### Halt Execution of a Debuggee Program

To halt execution of a debuggee program that is currently running, do one of the following:

- From a Source window or the Session Control window, select Run->Halt
- From any window that has toolbar buttons displayed, click on the button

You may find that execution halts in a function other than the one you are debugging (for example, a system library function). To run to the end of that function and stop in your own code, do one of the following:

- Issue the Step return command from the Source window execution stopped in
- If the previous technique results in the debugger displaying the message "Cannot determine return address", issue the Step debug command until execution returns to your code
- If you know what line in your program will be the next to execute after the current function returns, go to the source window containing that line, set a breakpoint on it, and issue the Run command.

Set a Line Breakpoint
Terminate a Debug Session