AppCode 2023.1 Help

Examine raw memory

In AppCode, you can view raw memory of running processes using the Memory View tab of the Debug tool window. You can jump from a variable in the Variables tab to the memory region that includes the required address and examine the changes while stepping through the program.

Show Memory View

  1. In the Variables tab of the Debug tool window, select the desired variable.

  2. Press Ctrl+Enter or choose Show in Memory View from the variable's context menu:

    Show Memory View
  3. The Memory View window initially shows a 256-byte region that starts from the chosen address, with higher memory addresses at the bottom of the window. When you then invoke Memory View for other variables, they are highlighted in the same window, and the region is extended to show more addresses if necessary.

    Use the context menu of the left column to hide/show or copy the addresses:

    Addresses column menu

    The right-hand column displays the ASCII character equivalents of the memory values.

  4. When you step through the code, AppCode highlights the changes that happen in the currently shown memory region:

    Changes in memory during stepping

Configure the number of bytes per line

  • To change the number of columns (number of bytes per line) shown in memory view, click App general gear plain and select the number:

    Changing the number of columns in memory view

Open memory view in the editor

  1. Use the App general layout editor preview button on the toolbar to open the memory view in the editor.

  2. This way, you can open two independent memory windows, in the Debug tool window and in the editor:

    Memory view in the editor

Go to address

  • Use the Go to field of the Memory View window to jump to a particular address. You can enter the address directly as a hex number, specify a pointer variable or an expression evaluating to a pointer, or use the address of operator & to get the address of any variable.

    Code completion in this field helps in choosing from the known symbols:

    Go to variable in Memory View

Last modified: 11 March 2023