
Hi, readers.
If you have checked the Changelog of AL Language, you could find the following update.
Debugging Upgrade and Install code
It is now possible to debug upgrade and install codeunits. A new command “Publish extension without building” has been introduced that will allow for apps to be published while debugging. To debug upgrade or install code, first initiate an attach debug session. After the debugger has attached, invoke the new command or use Ctrl+F5 to publish the app file. If the version of the app has not been incremented, install codeunits will be invoked. If the version of the app has been incremented, or the
https://marketplace.visualstudio.com/items/ms-dynamics-smb.al/changelogforceUpgradeflag has been set totruein thelaunch.jsonfile, upgrade codeunits will be invoked.
Yes, you can debug upgrade and install codeunit from Business Central 2020 release wave 2 update (BC17).
The documentation is very concise, In this blog, I will do a detailed step by step
For datials:
Hope this will help.
Thanks.