Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

VSC debugger is super slow as BC has been moved to the Docker Container

Posted on by 431

Hi All,

system design: Windows Server 2019, Docker for server installed

Docker has multiple containers (8) where each container has been dedicated 8GB RAM.

BC version 19.3 OnPrem

VSC is installed on local laptops where code is being written.
Developers are using the VSC to debug any errors as they are testing the written code.

Antivirus ESET Nod installed on servers and clients.

VPN Cisco is installed on clients. Traffic goes via VPN. Internet speed is 100Mbit/s upload/download from my home. Internet speed in the office is 300Mbit/s upload/download.

Issue: VSC debugger is super slow at debugging line per line, it needs 6 seconds to move to the next line in code.

Docker is installed with multiple containers and each container has been dedicated with 8GB RAM. Development is being done from home office where VSC is running locally on the laptop and targeting the BC deployed in Docker Container.
I am using also VPN that connects to the server where Docker is installed and where SQL database is attached.

I have disabled VSC settings in the settings.json file, because I read VSC performances can be impacted. Below is my Settings.json file:
------

{
    "al.enableCodeAnalysis": false,
    "al.backgroundCodeAnalysis": false,
    "al.enableCodeActions": false,
    "editor.codeLens":false,
    "al.codeAnalyzers": [
        "${CodeCop}",
        "${AppSourceCop}",
        "${UICop}"
    ],
    "al.ruleSetPath": "./.ruleset/spin.ruleset.json",
    "al.assemblyProbingPaths": [
        "./.netpackages",
        "C:/Windows/assembly"
    ],
    "bdev-al-xml-doc.checkProcedureDocumentation": false,
    "csideinterop": {
        "pasteFromCSIDE": {
            "type": "pasteFromCSIDE"
        }
    },
    "clipboard-manager.snippet.enabled": false
}
-----
Categories:
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 69,657 Super User 2024 Season 2 on at
    RE: VSC debugger is super slow as BC has been moved to the Docker Container

    Hi, Sorry I haven't tried installing Docker on the server and then developing locally.
    It is recommended that developers install Docker locally.

    Hope the following helps.

    https://stackify.com/docker-performance-improvement-tips-and-tricks/

    Also Freddy is an expert on BC Docker, you can try to consult it.

    https://freddysblog.com/

    Hope this helps.

    Thanks.

    ZHU

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

Anton Venter – Community Spotlight

Kudos to our October Community Star of the month!

Announcing Our 2024 Season 2 Super Users!

A new season of Super Users has arrived, and we are so grateful for the daily…

Dynamics 365 Community Newsletter - September 2024

Check out the latest community news

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 290,532 Super User 2024 Season 2

#2
Martin Dráb Profile Picture

Martin Dráb 228,501 Most Valuable Professional

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans