Skip to main content

Notifications

Community site session details

Community site session details

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

[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

  • Alexey Finogenov Profile Picture
    1,659 on at
    RE: [INFO] How to debug the standard code Business Central 15.x on-prem with use docker and without Publish BaseApp

    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

  • Vaakura Muhuka Profile Picture
    15 on at
    RE: [INFO] How to debug the standard code Business Central 15.x on-prem with use docker and without Publish BaseApp

    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?

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

Announcing the Engage with the Community forum!

This forum is your space to connect, share, and grow!

🌸 Community Spring Festival 2025 Challenge Winners! 🌸

Congratulations to all our community participants!

Adis Hodzic – Community Spotlight

We are honored to recognize Adis Hodzic as our May 2025 Community…

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

#1
Sohail Ahmed Profile Picture

Sohail Ahmed 858

#2
YUN ZHU Profile Picture

YUN ZHU 773 Super User 2025 Season 1

#3
Mansi Soni Profile Picture

Mansi Soni 569

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans