topic hubAdministration & Setupofficial - Microsoftunreviewed - model text not yet checked

Development environment

Development environment for Business Central AL development: configuring VS Code, projects and workspaces, compiling, publishing, debugging, testing, sandboxes, app manifests and helper tools. It answers setup, configuration, build, test and troubleshooting questions for AL developers.

Path: Development > Development environment · tier official · system administration · narrative unreviewed (model text not yet checked)

Overview

This section covers everything needed to set up and work in an AL development environment for Business Central. It starts with configuring the VS Code AL Language extension, including performance tuning, container and GitHub Codespaces setups, runtime targeting and resource exposure policy. It then covers projects and workspaces, such as multi-root workspaces, per-folder settings and project references in app.json.

The remaining subtopics follow the development cycle. They cover code analysis, compiling, publishing and debugging (including profiling and app signing), automated testing, and working in online or container sandboxes. Working with apps explains app.json identity, runtime version, packaging resources and dependency apps. Other tools covers Page Inspection, Txt2Al and the table data viewer.

A good starting point is Configure the development environment, then Work in sandboxes to get a running environment. After that, move to Compile, publish, and debug and Testing as you build extensions.

Key points

  • Configure the development environment covers AL Language extension settings, performance tuning, container and GitHub Codespaces setups, runtime targeting and resource exposure policy.
  • Projects and workspaces: multi-root workspaces, per-folder settings, and project references in app.json, including symbol resolution and recovery from publishing failures.
  • Compile, publish, and debug covers breakpoints, attach and snapshot debugging, the AL Profiler, compilation scope, app signing, Entra authentication on-premises and RAD publishing.
  • Testing covers AL test codeunits, test methods, handlers, test pages and test runners, running tests in VS Code, mocking HttpClient calls, performance testing and page scripting.
  • Sandboxes: online and container sandboxes differ; container environments use Docker and BCContainerHelper; extensions can be tested under different user plans and entitlements.
  • Working with apps covers app identity in app.json, runtime version choice, packaging resources, data to install, and library and dependency apps.
  • Other tools: Page Inspection for page structure and data sources, Txt2Al for converting C/AL objects to AL (such as NAV 14 code), and the table data viewer for tenant tables.
  • A Code analysis subtopic with 9 pages is also part of this section.

Subtopics

Videos, posts and code changes

Linked by a Haiku matcher with a grounding quote from the item’s summary (link/topics.ts); machine-generated.

Business Central pages and reports

The pages, reports and queries this hub’s Learn pages name (ms.search.form, API reference), joined to the code by exact object id (data/index/docs-objects.json); a page shows the table it runs on.

Learn also names 9 objects with no object page: page/149000, page/149001, page/149003, page/149004, page/149005, page/149006, page/149007, page/149008, page/149009.

Source: Microsoft Learn (CC BY 4.0). Descriptions are Learn’s own.

What Learn documents here 8 of 54 Learn pages

Show 32 more