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,657

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

Categories:
  • Alexey Finogenov Profile Picture
    1,657 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

Dynamics 365 Community Update – Sep 16th

Welcome to the next edition of the Community Platform Update. This is a weekly…

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

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

Featured topics

Product updates

Dynamics 365 release plans