community postAL Developmentcommunity - not Microsoftreviewed - checked by Opus

Dynamics 365 Business Central Blog Series: Debugging in AL

A blog series covering AL debugging techniques in Dynamics 365 Business Central, including snapshot debugging, conditional breakpoints, debugging from the web client, and advanced debugger features for development and troubleshooting.

post Dynamics 365 Lab

Yun Zhu · 2025-11-07 · 792 words · about 4 min

"Debugging Upgrade and Install code in Visual Studio Code"

Key points

  • Multiple debugging approaches available: snapshot debugging in cloud, conditional breakpoints, publish/debug separation with keyboard shortcuts
  • Debugger enhancements include IntelliSense for variables, SQL lock visibility, and ability to exclude try functions and temporary records
  • Debugging can be triggered from the web client and attached to specific user sessions or phone/tablet clients
  • Advanced features include NonDebuggable attribute to protect methods, debugging upgrade/install code, and connecting to on-premises instances

Quotes

  • “Debugging Upgrade and Install code in Visual Studio Code” (Highlights specialized debugging capability for upgrade and install scenarios, which are critical operations in Business Central deployments)

Context

  • Features: Snapshot Debugging, Conditional Breakpoints, IntelliSense for Variables in Debugger, SQL Locks Visibility, NonDebuggable Attribute, Exclude Try Functions, Exclude Temporary Records, Web Client Debugging
  • Versions: BC21, BC22, BC23

Source: Dynamics 365 Lab - Yun Zhu, community blog. Summary, key points and quotes are derived (CONTENT-NOTICE.md); read the original for the full text.