About the Debug Area

Use the debug area to control the execution of your code, view program variables and registers, view its console output, and interact with the debugger.

The debug area contains three main components:

  • The debug bar: Controls app execution, provides navigation through source code.

  • The variables view pane: Displays information about the item selected in the debug bar.

  • The console pane: Contains an interactive Terminal-like text area.


Debugging Code

Use the debug bar to control app execution, simulate a location (iOS apps only), and navigate through the app’s threads and their corresponding stacks using the jump bar.

Use the variables view pane to examine variables and registers.

Use the console to interact with LLDB, and for stdin and stdout.


Control the debugger area display with the view buttons:

  • Left button: Only the variables view pane

  • Both buttons: The variables view pane and the console pane

  • Right button: Only the console pane

Specify which variables and registers to display using the pop-up menu in the scope bar of the variables view pane:

  • Auto: Displays recently accessed variables.

  • Local: Displays local variables.

  • All: Displays all variables and registers.

Refine the items displayed in the variables list by typing into the filter field at the bottom of the pane.

The console displays program output and lets you enter commands to the debugger. You specify the type of output the console displays with the pop-up menu at the bottom of the pane:

  • All Output: Include target and debugger output.

  • Debugger Output: Include debugger output only.

  • Target Output: Include target output only.

The Clear button at the bottom of the pane clears the console output.