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

Debugging Business Central OnPrem

(0) ShareShare
ReportReport
Posted on by 5

Hi experts,

 

We have a question regarding debugging. As I can not find a proper answer to my question I am asking it here, hoping to get an answer.

 

We are working with Business Central version 17.4 onprem.

We are wondering what the best way of debugging is when we want to debug our customers production database?

 

We know we can attach a debug (or snapshot) configuration to the Launch.json but this will only trigger the debugger when an error occurs (or with the snapshots it will only record the snapshot when an error occurs).

 

On the Customers server we do have Visual Studio Code installed.

We deploy our solution (app) via powershell scripts and we have the property ShowMyCode set to False as we do not want other parties being able to download our source code.

So on the Customers server we don’t have the possibility to set breakpoints in code to trigger the debugger when executing the process we would like to debug.

 

So we were wondering what the best way is to debug a process in the Customers database that does not throw an error.

 

Thanks for the advice.

I have the same question (0)
  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at

    With the snapshot debugging, you can place a breakpoint on a standard object code for example and then start debugging from that point.

  • BigFan Profile Picture
    5 on at

    Hi Stefano,

    Thanks for the quick reply. I will need to check internally if this is a possibility for us.

    If so, I would guess this would be the way to go for us.

    I will let you know.

  • BigFan Profile Picture
    5 on at

    Hi Stefano,

    This would work with any process that would trigger or use any default BC object, but how about the objects that are only used in our ISV solution?

    I do not think that we would be able to set breakpoints without having our code present on the Customers server. Or am I wrong?

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

Introducing the 2026 Season 1 community Super Users

Congratulations to our 2026 Super Stars!

Meet the Microsoft Dynamics 365 Contact Center Champions

We are thrilled to have these Champions in our Community!

Congratulations to the March Top 10 Community Leaders

These are the community rock stars!

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

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 1,871 Super User 2026 Season 1

#2
YUN ZHU Profile Picture

YUN ZHU 1,017 Super User 2026 Season 1

#3
Khushbu Rajvi. Profile Picture

Khushbu Rajvi. 700 Super User 2026 Season 1

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans