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

Community site session details

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

Stepping Through/Debugging Base code

(0) ShareShare
ReportReport
Posted on by 42
 
 
I want to be able to step through base code as part of diagnosing and understand underlying logic better.
 
For context I get requests for changes and I need to figure which event to subscribe to. 
 
Using AL Object designer I've search through code to find what I think is the correct event.
 
However it'd be much easier to just set a break point in code, launch and then debug and step through logic.
 
The best I could find are articles are following articles, which are from 2019: 
 
https://community.dynamics.com/forums/thread/details/?threadid=a3d17def-62f3-4a1a-935f-480bd9e9be43
https://demiliani.com/2019/10/25/dynamics-365-business-central-debugging-the-base-application/
 
Has this process changed much today (2023)? Is there a different way of doing and if not are there any more up to date guides/changes since the above articles?
 
So below is a starting point - installing a Docker sandboxed BC instance using the latest image, then extracting the source for Base App.. is 
 
$credential = Get-Credential
$artifactUrl = Get-BcArtifactUrl -type sandbox -select latest
$credential = New-Object pscredential 'admin', (ConvertTo-SecureString -String 'P@ssword1' -AsPlainText -Force)
New-BcContainer -accept_eula -artifactUrl $artifactUrl  -containerName bcserver -includeTestLibrariesOnly -includeTestToolkit -updateHosts -auth NavUserPassword -includeAl -Credential $credential

$containername = 'bcserver'
$alProjectFolder = /C://data//bc/
Create-AlProjectFolderFromBCContainer -containerName $containername -alProjectFolder $alProjectFolder -useBaseAppProperties -useBaseLine
 
TIA
I have the same question (0)
  • Suggested answer
    DAnny3211 Profile Picture
    11,391 on at
    Stepping Through/Debugging Base code

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…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,267

#2
Sumit Singh Profile Picture

Sumit Singh 2,098

#3
YUN ZHU Profile Picture

YUN ZHU 1,766 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans