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

Announcements

No record found.

News and Announcements icon
Community site session details

Community site session details

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

Debugger breakpoint in Base Application object

(0) ShareShare
ReportReport
Posted on by 194

Hello,

We are running Business Central 2020 on premises.

I have installed AL Extension Pack for VS Code. From the object designer I have opened page 22 and I have added a breakpoint on the trigger OnAfterGetCurrRecord().

My setting in launch.json is "startupObjectId": 22.

But when I start the debugger pressing F5 it does not stop on the breakpoint.

What might be the reson?

  • Suggested answer
    THE Italian Profile Picture
    Microsoft Employee on at

    You have to be sure that base application is installed with ShowMyCode = true.

    Secondarily, you have to be sure that this key is addes server side in the customsettings.config file (and restart the service)

    <add key="ProtectNavAppSourceFiles" value="false" />

  • Galina Georgieva Profile Picture
    194 on at

    I have changed in ProtectNavAppSourceFiles to false

    C:\Program Files\Microsoft Dynamics 365 Business Central\160\Service\customsettings.config.

    I also have in app.json

    "showMyCode": true

    But the problem is not resolved. The debugger does not stop at breakpoints in Base Application objects.

  • Suggested answer
    THE Italian Profile Picture
    Microsoft Employee on at

    I would then create a dummy hello world extension in the place where you need to have the breakpoint to stop and add something like e.g.

    if 1=1 then; //add breakpoint here

    This will work for sure

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 Winners!

Congratulations to our community stars!

Women in Power Builds Momentum

Expanding mentorship, skilling, and AI innovation

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 554 Super User 2026 Season 2

#2
YUN ZHU Profile Picture

YUN ZHU 344 Super User 2026 Season 2

#3
Teagen Boll Profile Picture

Teagen Boll 189 Super User 2026 Season 2

Last 30 days Overall leaderboard

Featured topics

Microsoft Training Manuals

Product updates

Dynamics 365 release plans