web
You’re offline. This is a read only version of the page.
close
Skip to main content

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Active Discussion

[INFO] How to debug the standard code Business Central 15.x on-prem with use docker and without Publish BaseApp

(0) ShareShare
ReportReport
Posted on by 1,659

How to debug the standard code Business Central 15.x on-prem with use docker and without Publish BaseApp

6710.ALFDebug17.png

Some pictures below:

Run powershell script ….

===

#install-module navcontainerhelper -force

 

$accept_eula = $true

$containername = 'BCONPREM-150-W1'

$navdockerimage = 'mcr.microsoft.com/businesscentral/onprem:15.0.36560.0-w1'

$credential = get-credential -UserName $env:USERNAME -Message "Using Windows Authentication. Please enter your Windows credentials."

$licenseFile = "D:\_DEVDOCKER\build.flf"

 

New-BCContainer  -accept_eula:$accept_eula `

                 -containername $containername `

                 -alwaysPull `

                 -Credential $credential `

                 -usessl:$false `

                 -updateHosts `

                 -licenseFile $licenseFile `

                 -assignPremiumPlan `

                 -shortcuts Desktop `

                 -imageName $navdockerimage `

                 -auth Windows `

                 -includeAL `

                 -useBestContainerOS

Setup-NavContainerTestUsers -containerName $containername -password $credential.Password

 

$alProjectFolder = "C:\ProgramData\NavContainerHelper\AL\BaseApp"

Create-AlProjectFolderFromBCContainer -containerName $containername `

                                      -alProjectFolder $alProjectFolder `

                                                                  -useBaseAppProperties `

                                                                  -useBaseLine

===

ALFDebug01.png

ALFDebug02.png

ALFDebug03.png

ALFDebug04.png

ALFDebug05.png

ALFDebug06.png

ALFDebug07.png

ALFDebug08.png

ALFDebug09.png

ALFDebug10.png

ALFDebug11.png

ALFDebug12.png

ALFDebug13.png

Wait a bit...

ALFDebug14.png

ALFDebug15.png

ALFDebug16.png

ALFDebug17.png

Useful links:

https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-attach-debug-next#attach-support

https://docs.microsoft.com/en-us/dynamics365-release-plan/2019wave2/dynamics365-business-central/ability-download-database-backup-file

https://community.dynamics.com/business/f/dynamics-365-business-central-forum/363412/info-example-how-to-add-a-report-in-business-central-saas-cloud-version-with-use-locally-hosted-container-sandbox

P.S.

If you need to modify (create a new version of BaseApp extension) BaseApp then you need Publish it… for the docker story this post can be useful:

https://community.dynamics.com/business/f/dynamics-365-business-central-forum/367663/info-how-customizing-the-base-application-with-save-data

  • Vaakura Muhuka Profile Picture
    15 on at

    Hi

    I ran the command  "install-module navcontainerhelper -force"  and got the error below

    WARNING: Cannot access 'ci.appveyor.com/.../docker-powershell-dev'. Are you missing 'Credential' parameter in

    the cmdlet?

  • Alexey Finogenov Profile Picture
    1,659 on at

    Strange... first line has been commented in my script... (I think you already have it). As pre-requisite you should install navcontainerhelper

    4130.png

    1768.png

Under review

Thank you for your reply! To ensure a great experience for everyone, your content is awaiting approval by our Community Managers. Please check back later.

Helpful resources

Quick Links

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Congratulations to our 2025 Community Spotlights

Thanks to all of our 2025 Community Spotlight stars!

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,958 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,101 Super User 2026 Season 1

#3
Dhiren Nagar Profile Picture

Dhiren Nagar 959 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans