You can also attach the debugger to an app that is already running for debugging.
The difference between Debug and Attach Debugger to Process is that the latter allows you to debug an app/atomic service in running or start an app/atomic service installed on the device for debugging. Debug allows you to start and debug an app/atomic service in sequence.
The attached app on the device is running code that matches the local source, with source maps pre-built for debugging.
The attach operation does not support the following cases:

Attach Debugger to Process.

In general, attach debugging only supports apps signed with a debug certificate. Since DevEco Studio 6.0.2 Beta1, apps on PCs and 2-in-1 devices can also be attached and debugged if they are signed with a release certificate and have been granted the ohos.permission.kernel.ALLOW_DEBUG permission.



