Skip to content

Instantly share code, notes, and snippets.

@marcboquet
Created November 15, 2013 16:06
Show Gist options
  • Save marcboquet/7486800 to your computer and use it in GitHub Desktop.
Save marcboquet/7486800 to your computer and use it in GitHub Desktop.
Shared breakpoint to automatically start Reveal server on the iOS Simulator. Based on @orj post: http://blog.ittybittyapps.com/blog/2013/11/07/integrating-reveal-without-modifying-your-xcode-project/
<?xml version="1.0" encoding="UTF-8"?>
<Bucket
type = "4"
version = "2.0">
<Breakpoints>
<BreakpointProxy
BreakpointExtensionID = "Xcode.Breakpoint.SymbolicBreakpoint">
<BreakpointContent
shouldBeEnabled = "Yes"
ignoreCount = "0"
continueAfterRunningActions = "Yes"
symbolName = "-[UIApplication _handleDelegateCallbacksWithOptions:isSuspended:restoreState:]"
moduleName = "">
<Actions>
<BreakpointActionProxy
ActionExtensionID = "Xcode.BreakpointAction.DebuggerCommand">
<ActionContent
consoleCommand = "expr (void*)dlopen(&quot;/Applications/Reveal.app/Contents/SharedSupport/iOS-Libraries/libReveal.dylib&quot;, 0x2);">
</ActionContent>
</BreakpointActionProxy>
</Actions>
</BreakpointContent>
</BreakpointProxy>
</Breakpoints>
</Bucket>
@marcboquet
Copy link
Author

Save to YourProject.xcodeproj/xcshareddata/xcdebugger/Breakpoints_v2.xcbkptlist (create it if it doesn't exist), and reopen project in Xcode. Reveal server will start automatically.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment