### Jump to Location

Shortcut key: [N] Menu: Run->Jump to location (from Source/Session Control windows)

Jump to location makes the currently highlighted line in the Source window the current line, without executing any code. You can view an example in C++ to see how Jump to location works.

Caution: When you jump to a location, you may alter the flow of your program in ways that make it difficult to continue debugging later in the same session:

- The stack can become corrupted if you jump to a location outside the current function.
- Some compilers optimize register usage in ways that can corrupt variables or program flow when you use Jump to Location. For example, if the compiler keeps track of register contents and can determine that a register contains the value 1 at the start of a statement that initializes an integer variable to 1, it may simply copy that register's contents to the variable. If you step over the statement that involved setting the register to 1, the variable may not contain the expected contents.

After you have done the debugging for which you needed to alter the program flow, you may want to restart your program, to ensure that program flow is not arbitrarily or unexpectedly altered by code you jumped over.