How to tell Xcode to attach a debugger to the process as soon as the process starts?

I am working on what happens when my application restarts, and I'm trying to get logs for this. So I create my application, kill it and restart.

Destroying the application disables Xcode from the running process.

After restarting the application, I can choose Debug > Attach to Processto attach Xcode to the new process, but I will skip everything that happens between starting the application and when I join the process manually.

Is there any way to tell Xcode there no process running currently, but as soon as process X starts, attach the debugger to it?

+7
source share
1 answer

Use the function Attach to process by PID or Name.

Debug -> Attach to process by PID or Name Xcode, , , Attach.

PID name , .

, , .

0

Source: https://habr.com/ru/post/1653536/


All Articles