#1
|
|||
|
|||
Mac OS app debug
If you start the app with the following mysterious parameters, the hidden debug menu will be displayed.
"-_NS_4445425547 yes" https://mjtsai.com/blog/2024/03/22/_eventfirstresponderchaindescription/#comment-4059578 |
#2
|
|||
|
|||
Good. But which debugger will be used?
|
#3
|
||||
|
||||
Just special menu
This is not about running under the Xcode debugger, but about the appearance of the debug menu while running an application (even without debugger at all).
Using Radare2 rax2 command: Code:
rax2 -S 'DEBUG' Code:
4445425547 Adding per app setting in preferences (stored in ~/Library/Containers/) Sample app is TextEdit (CFBundleIdentifier is com.apple.TextEdit): Code:
defaults write com.apple.TextEdit _NS_4445425547 -bool true Code:
open -a TextEdit Adding global system setting in preferences Code:
defaults write -g _NS_4445425547 -bool true Code:
defaults read -g _NS_4445425547 Code:
The domain/default pair of (kCFPreferencesAnyApplication, _NS_4445425547) does not exist
__________________
EnJoy! Last edited by Jupiter; 04-10-2024 at 23:12. Reason: Per app and global defaults |
The Following 2 Users Say Thank You to Jupiter For This Useful Post: | ||
tonyweb (04-13-2024), wx69wx2023 (04-11-2024) |
Tags |
debug, macos |
Thread Tools | |
Display Modes | |
|
|