Exetools

Exetools (https://forum.exetools.com/index.php)
-   General Discussion (https://forum.exetools.com/forumdisplay.php?f=2)
-   -   Mac OS app debug (https://forum.exetools.com/showthread.php?t=20960)

wx69wx2023 04-09-2024 20:06

Mac OS app debug
 
2 Attachment(s)
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

WRP 04-10-2024 13:53

Good. But which debugger will be used?

Jupiter 04-10-2024 20:37

Just special menu
 
Quote:

Originally Posted by WRP (Post 130613)
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


All times are GMT +8. The time now is 18:39.

Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2026, vBulletin Solutions, Inc.
Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX