Exetools  

Go Back   Exetools > General > General Discussion

Notices

 
 
Thread Tools Display Modes
Prev Previous Post   Next Post Next
  #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: 237
Rept. Given: 43
Rept. Rcvd 62 Times in 37 Posts
Thanks Given: 39
Thanks Rcvd at 192 Times in 58 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)
 

Tags
debug, macos


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Debug with x64dbg dnvthv General Discussion 2 03-22-2025 21:49
How to Debug JNI dll using OD? winndy General Discussion 1 10-21-2005 23:52
Debug for SEH , how to do! nig General Discussion 3 03-09-2004 20:56


All times are GMT +8. The time now is 00:48.


Always Your Best Friend: Aaron, JMI, ahmadmansoor, ZeNiX, chessgod101
( Since 1998 )