View disassembly in XCode 4 (or Xcode 5 or Xcode 6)

19,458

Solution 1

In Xcode 4.2 (and Xcode 5), you can see the assembly or disassembly for a file by:

  1. Showing the assistant editor (command+option+Enter is the default shortcut).
  2. In the JumpBar, select the tuxedo icon and select "Assembly" or "Disassembly" from the drop-down list.

You can view the Assembly for a file whether or not you're running the application. Disassembly is only available when the application is running and being debugged.

Solution 2

Follow these simple steps inside of Xcode:

enter image description here

enter image description here

enter image description here

enter image description here

Solution 3

You can also display disassembly by navigating to:

Debug->Debug Workflow->Show Disassembly while debugging.

This will display source and disassembly in the main window view.

Solution 4

On Xcode 6 you can go to the menu "Debug -> Debug Workflow -> Always show disassembly".

Share:
19,458

Related videos on Youtube

Promit
Author by

Promit

Updated on May 01, 2022

Comments

  • Promit
    Promit about 2 years

    I'm having trouble finding much in the way of information about the new XCode layout. How can I view the disassembly of my source file, rather than just the C++ code?

  • mpipe3
    mpipe3 over 11 years
    In Xcode 4.5 you can see the disassembly alongside the code using OldPeculiar's answer
  • Promit
    Promit about 10 years
    Indeed, the functionality was re-introduced back into XCode -- nearly two years later.