I tried outside of Xcode, attaching the debugger to the Notes app:
(lldb) b -[NSView hitTest:]
Breakpoint 1: where = AppKit`-[NSView hitTest:], address = 0x0000000183857e18
(lldb) process launch -e /dev/null --
Process 4125 launched: '/System/Applications/Notes.app/Contents/MacOS/Notes' (arm64e)
Process 4125 stopped
* thread #1, queue = 'com.apple.main-thread', stop reason = breakpoint 1.1
frame #0: 0x000000018c093e18 AppKit` -[NSView hitTest:]
AppKit`-[NSView hitTest:]:
-> 0x18c093e18 <+0>: pacibsp
0x18c093e1c <+4>: sub sp, sp, #0x70
0x18c093e20 <+8>: stp x24, x23, [sp, #0x30]
0x18c093e24 <+12>: stp x22, x21, [sp, #0x40]
0x18c093e28 <+16>: stp x20, x19, [sp, #0x50]
0x18c093e2c <+20>: stp x29, x30, [sp, #0x60]
0x18c093e30 <+24>: add x29, sp, #0x60
0x18c093e34 <+28>: mov x19, x0
Target 0: (Notes) stopped.
(lldb) p $arg1
(unsigned long) $2 = 4312972736
(lldb) po $2
<NSTitlebarContainerView: 0x10112bdc0>
It seems to work in this context.
Topic:
Developer Tools & Services
SubTopic:
Xcode
Tags: