Skip to content

Instantly share code, notes, and snippets.

@Justintime50
Last active July 9, 2023 21:23
Show Gist options
  • Save Justintime50/a729ca269e58a81efb2a245eb36a40d5 to your computer and use it in GitHub Desktop.
Save Justintime50/a729ca269e58a81efb2a245eb36a40d5 to your computer and use it in GitHub Desktop.
Learn how to debug a program with lldb.

Debugging with LLDB

LLDB is a debugger you can attach to a program to do things like capturing stacktraces. Here is some basic usage:

# Attach to a program (waits for future execution in another terminal)
lldb -n php -w

# continue execution
c

Other resources:

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