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...
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?

I have the same question (0)
  • Suggested answer
    THE Italian Profile Picture
    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
    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

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

#2
YUN ZHU Profile Picture

YUN ZHU 663 Super User 2025 Season 2

#3
Sumit Singh Profile Picture

Sumit Singh 515

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans