View Single Post
  #3  
Old 04-10-2024, 20:37
Jupiter's Avatar
Jupiter Jupiter is offline
Lo*eXeTools*rd
 
Join Date: Jan 2005
Location: Moscow, Russia
Posts: 234
Rept. Given: 43
Rept. Rcvd 62 Times in 37 Posts
Thanks Given: 38
Thanks Rcvd at 191 Times in 57 Posts
Jupiter Reputation: 62
Just special menu

Quote:
Originally Posted by WRP View Post
But which debugger will be used?
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'
Output:

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
Run app:

Code:
open -a TextEdit
You'll see bug icon in menu (before Help menu).


Adding global system setting in preferences

Code:
defaults write -g _NS_4445425547 -bool true
Reading global value:
Code:
defaults read -g _NS_4445425547
Sample output:
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
Reply With Quote
The Following 2 Users Say Thank You to Jupiter For This Useful Post:
tonyweb (04-13-2024), wx69wx2023 (04-11-2024)