Skip to main content

Notifications

Community site session details

Community site session details

Session Id :
Business Central forum

Empty debug console VScode?

(0) ShareShare
ReportReport
Posted on by 25

Hello all,

Lately I've been getting an error with VScode, but no information about what went wrong. Project has no problems, can build properly. This issue even stops me from running hello world projects created by AL GO! I was wondering if anyone has seen this problem before, or if there is any way to access an error log outside of the debug window. 

I have noticed that when running a project the debugging tools always pop up, despite me running without the debugger, I am guessing this is a clue to the main issue, but I am unable to diagnose from here what to do. 

Thanks!

Categories:
  • James French Profile Picture
    25 on at
    RE: Empty debug console VScode?

    Thank you, this let me see the error, and I was easily able to solve! No idea why I couldn't see it with F5 (or ctrl F5) But I'll definitely keep this in mind going forward with all of my projects!

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Empty debug console VScode?

    Exactly. If you’re on D365BC onpremise also fill the PublicWebBaseUrl (Web Client Base Url) property of your server instance with the correct url of your web client.

  • Suggested answer
    Sudarshan khandal Profile Picture
    220 on at
    RE: Empty debug console VScode?

    As Stefano Demiliani said, after placing ShowMyCode = True in app.json , you may get the real error stating like below.

    Reason: NetFx40_LegacySecurityPolicy is enabled and must be turned off in the Microsoft.Dynamics.Nav.Server.exe.config file.

    So for resolution for this above error just go to the file mentioned in error and (C:\Program Files\Microsoft Dynamics 365 Business Central\130\Service) set value false for the below parameter.

    <NetFx40_LegacySecurityPolicy enabled="false" />

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,166 Most Valuable Professional on at
    RE: Empty debug console VScode?

    Try to debug by pressing F6 and temporary place showmycode = true in app.json. You should see what is 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

November Spotlight Star - Khushbu Rajvi

Congratulations to a top community star!

Forum Structure Changes Coming on 11/8!

In our never-ending quest to help the Dynamics 365 Community members get answers faster …

Dynamics 365 Community Platform update – Oct 28

Welcome to the next edition of the Community Platform Update. This is a status …

Leaderboard > Business Central forum

Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans