Attach to user session when debugging

Enabled for Public preview General availability
Admins, makers, or analysts, automatically This feature is released. Oct 1, 2020 This feature is released. Oct 1, 2020

Business value

Currently, when you debug with the Visual Studio Code AL debugger, you cannot attach to a user session, making it harder to troubleshoot issues that are dependent on users and user permissions. This feature enables attaching to an active user session as part of the new snapshot debugging capability.

Feature details

When using the new snapshot feature for troubleshooting, you can attach to an existing user session, as well as the next session for a given user. This is supported for sandboxes when using snapshot debugging on GA of Business Central 2020 release wave 2, and will also be available for production once snapshots are enabled there (expected to happen in a minor update).


At this time, this capability is only supported when using snapshots (which is introduced in preview in sandboxes only), and not in the normal debugger.

Thank you for your idea

Thank you for submitting this idea. We listened to your idea, along with comments and votes, to help us decide what to add to our product roadmap.