Minor update 21.1 for Business Central 2022 release wave 2 has been released last week. Learn more: Link.
Today I would like to share a new feature “Support for global and workspace launch configuration” from BC 21.1.
PS: This information is not mentioned in What’s new and planned for update 21.1, but is recorded in AL Language Changelog version 10.1 (AL Release Notes).
AL developers are now able to add a
launchproperty to their
settings.jsonfile and it will be taken into account. A local
launch.jsonfile overrides the workspace and global configuration. A workspace
launchconfiguration overrides the
launchconfiguration specified in the global
In case that the localhttps://marketplace.visualstudio.com/items/ms-dynamics-smb.al/changelog
launch.jsonfile doesn’t contain a valid AL launch configuration, we’ll try to find one in the
code-workspacefirst, and then in the
settings.jsonfiles. However, if the
launchproperty is specified in the
code-workspacefile even without specifying a valid AL configuration, the global
settings.jsonfile will not be able to override it.
Let’s see more details.
Now you can find Launch setup in VS Code Settings.
Global debug launch configuration. Should be used as an alternative to ‘launch.json’ that is shared across workspaces.
Choose Edit in settings.json to open settings.json file.
Yes, now, we can add the launch configuration to settings.json, no need to repeat the settings every project.👏🎉
Give it a try!!!😁
Hope this will help.
Thanks for reading.