How to attach to a running process on Apple Watch?

I connect my iPhone to Mac. I use Debug / Attach to Process and then pick the Watch Extension process running on my paired Watch Series 4. Xcode 11.7, watchOS is 6.2.8, iOS is 13.7

The error dialog I get after a while is:

Code Block
attach failed (Not allowed to attach in process. Look in the console messages (Console.app) near the debugserver entries when the attached failed..


But there's nothing useful I can find. Where in Console.app should I look for those entries?

The same issue for me, I'm trying to debug the net core application on mac and see error:
Code Block
(lldb) process attach -p 3304
error: attach failed: attach failed (Not allowed to attach to process. Look in the console messages (Console.app), near the debugserver entries when the attached failed. The subsystem that denied the attach permission will likely have logged an informative message about why it was denied.)


Running lldb with sudo not helping to me.
How to attach to a running process on Apple Watch?
 
 
Q