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

General debugging methods in extension development for Dynamics 365 Business Central.

(7) ShareShare
ReportReport
Posted on by 1,185
Hi experts!

I'm developing extensions using Visual Studio Code, and I'd like to know the following:

  1. Is it possible to debug using breakpoints?

    Since VS Code shows various errors before deployment, it seems that resolving these in the editor eliminates the need for debugging with breakpoints. What do you think?

  2. Is it also possible to set breakpoints and debug the standard Base Application also?

Do you know useful reference manuals about debagging Business Central?

Look forward to hearing from you.

Nobuhara 
I have the same question (0)
  • Verified answer
    YUN ZHU Profile Picture
    95,331 Super User 2025 Season 2 on at
    Of course, if not, developers will not be able to customize their own functions well.
    For example,
    Using AL Explorer to open standard Base Application
    Set breakpoint
    Debug mode
    PS: Dynamics 365 Business Central: Publish without debugging (Ctrl+F5) and Debug without publishing (Ctrl+Shift+F5)
    Run the standard code
    The code will stop at the set breakpoint
     
    Thanks
    ZHU
  • Suggested answer
    Dynamics_Decoded_Gokul Profile Picture
    451 on at
    Hi Nobuhara, 

    for the 1st question since you have not deployed the APP in business central, It will not be possible for you to debug the solution without deploying. 
     
    for the 2nd question, The answer is below by Mr. YUN ZHU. would be right approach 
     
    thanks 
    gokulnath
  • Suggested answer
    Suresh Kulla Profile Picture
    50,243 Super User 2025 Season 2 on at
    Yes, that is possible select the object from the .alpackages symbol the object you want to debug and set the breakpoint, you can debug Base Application objects.
     
    See how to debug check these links
     
  • Suggested answer
    Sohail Ahmed Profile Picture
    11,136 Super User 2025 Season 2 on at
    you need to publish your extension in debug mode and attach to your BC server, you can step through your code.
     
    For the Base Application, you cannot directly debug Microsoft’s source, but you can debug through event subscribers or by downloading symbol references.
     
    Common guides: Microsoft Learn docs on “Debugging AL” and the official AL language extension documentation are the best starting points.
     
     
    ✅ Mark this as the verified answer if helpful.
     
     

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 3,143

#2
Jainam M. Kothari Profile Picture

Jainam M. Kothari 1,694 Super User 2025 Season 2

#3
YUN ZHU Profile Picture

YUN ZHU 1,067 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans