Attach a debugger to an Active User Session in Business Central - CloudFronts

Attach a debugger to an Active User Session in Business Central

Introduction

Business Central has recently introduced the functionality to attach a debugger to an active User session.

This was previously available in NAV however it has only recently become available for Business Central.

Pre-requisites

Business Central Cloud/OnPrem

References

https://learn.microsoft.com/en-us/dynamics365/release-plan/2023wave1/smb/dynamics365-business-central/attach-al-debugger-active-session-or-next-session-specific-user

Configuration

To use this functionality, we simply need to create an entry in the launch.json file.

The important properties here are the “sessionId” and the “request”.

This works much faster than the traditional deploy and debug and really makes your life easier as a developer.

Picture 2

Also, I tried using it for a Production Environment and as expected it didn’t work. Snapshot debugging it is then!

Conclusion

Thus, we saw how we can attach a debugger to an active user session in Business Central.

Happy Coding!


Share Story :

Secured By miniOrange