Skip to content

Instantly share code, notes, and snippets.

@usagimaru
Last active October 24, 2024 23:48
Show Gist options
  • Save usagimaru/e085500dfbf4b479304e86cb91b1b079 to your computer and use it in GitHub Desktop.
Save usagimaru/e085500dfbf4b479304e86cb91b1b079 to your computer and use it in GitHub Desktop.
Enables useful debugging panel in macOS apps

Use _NS_4445425547 or NS🐞 for enables debuggging panel. When enabled it, a ladybug 🐞 menu appears in the app menu bar.

“4445425547” means DEBUG in Unicode table.

0x44=D
0x45=E
0x42=B
0x55=U
0x47=G

UserDefaults:

  • _NS_4445425547true or
  • defaults write BUNDLE_IDENTIFIER _NS_4445425547 -bool true

We can use NS🐞 instead of _NS_4445425547.

UserDefaults in Global Domain (Any apps)

  • defaults write -g _NS_4445425547 -bool true

It does not seem to work well with some apps.

"Arguments Passsed on Launch" in scheme settings of Xcode project

  • -_NS_4445425547 true or
  • -NS🐞 true
@avoidik
Copy link

avoidik commented Apr 9, 2024

defaults write -g _NS_4445425547 -bool true

@usagimaru
Copy link
Author

@avoidik thanks!

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