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

Notifications

Announcements

No record found.

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

I have the same question (0)
  • 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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Neeraj Kumar – Community Spotlight

We are honored to recognize Neeraj Kumar as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,606

#2
YUN ZHU Profile Picture

YUN ZHU 931 Super User 2025 Season 2

#3
Jainam M. Kothari Profile Picture

Jainam M. Kothari 773 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans