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

Announcements

News and Announcements icon
Community site session details

Community site session details

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

AL Debug with Microsoft cloud Sandbox environment

(0) ShareShare
ReportReport
Posted on by 77

I have a custom procedure for Customer Custom field integration table mapping I want to debug because it is currently not working. The breakpoint inside the procedure is not hit. I am working inside vs code with a microsoft cloud sandbox environment.

This is my attach configuration inside launch.json:

{
            "name""Attach: Microsoft cloud sandbox",
            "type""al",
            "request""attach",
            "environmentType""Sandbox",
            "environmentName""Development",
            "breakOnError"true,
            "breakOnRecordWrite"false,
            "enableSqlInformationDebugger"true,
            "enableLongRunningSqlStatements"true,
            "longRunningSqlStatementsThreshold"500,
            "numberOfSqlStatements"10,
            "breakOnNext""WebServiceClient",
            "tenant": myTenant
        }
I was able to start it VS Code debug with Ctrl + Shift + F5 and choosing the Microsoft Cloud Sandbox. When I make a modification inside the customer card the code stops inside the 1302 codeunit "Customer Mgt.". After I press F10 to continue the code execution it does not stop in my procedure. If I use the Attach: Microsoft Cloud Sandbox option, it does not even stop in codeunit "Customer Mgt.".
 
I am using the information on this site for setting up the debug: Attach and Debug Next - Business Central | Microsoft Docs
This site is used for setting up custom field integration mapping for Customer Table: Custom Integration with [!INCLUDE[cds_long_md](../includes/cds_long_md.md)] - Business Central | Microsoft Docs
If I set the breakOnRecordWrite on true there is no reaction in vs code. Code does not stop in any codeunit.
Is there an option that I have not set in launch,json or Business Central Sandbox environment ?
I have the same question (0)
  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    What is the actual error in 1302 code unit?

    Thanks.

  • chigivigi Profile Picture
    77 on at

    I do not see an error in the code unit it only stops inside the CalculateAmountsOnUnpostedDocs procedure and after f10 the code contienues without stoping inside any breakpoint.

  • Suggested answer
    Marco Mels Profile Picture
    Microsoft Employee on at

    Hello,

    That is indeed very strange. Maybe you can raise this to Microsoft via a support ticket so we can try to repro with your custom object. We need that custom object to be imported in a CRONUS company.

    Thanks.

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

Season of Sharing Community Challenge Launch!

Jump in, show your community spirit, and win prizes!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

Congratulations to the May Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,314 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,781 Super User 2026 Season 1

#3
AndrewThomas81 Profile Picture

AndrewThomas81 1,356

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans