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 :
Business Central forum

Debugger issue in Business Central, AL code

(0) ShareShare
ReportReport
Posted on by 121

Hello Guys,

Im trying to Debug the code in the AL code Business Central ,

But when i Debug the code it is just publishing the App in Extension and no Debugger Console is Opened.

What might be the Problem here??

Thanks in Advance!!!

Categories:
  • Hannes Holst Profile Picture
    5,769 on at

    Hi,

    In VSCode press either F5 (this will publish your app and start the debugger) or Shift + Ctrl + F5 (this will start the debugger only).
    In both situations, a new session will be started.

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    Are you publishing with debugging (F5)?

  • Shivakumar. G Profile Picture
    121 on at

    Hello Hanes,

    I have Pressed F5 and also Shift + Ctrl + F5 , it is just published to the Server , I didnt see any new web client page opening  and im refreshing the Web client page always after publishing , Im thinking that i might be missing some property ??

  • Shivakumar. G Profile Picture
    121 on at

    Yes Stefano,

    Im publishing it with F5 Still I cant see any debugging or new webclient page opening...

  • Suggested answer
    Stefano Demiliani Profile Picture
    37,172 Most Valuable Professional on at

    Do you have "startupObjectId": and "startupObjectType":  set in your launch.json?

    Please always post the files, otherwise it will be difficult to help.

  • Shivakumar. G Profile Picture
    121 on at

    temp1.png

    Hi Stefano,

    Please find the Screenshot

  • Hannes Holst Profile Picture
    5,769 on at

    Add "launchBrowser": true to your launch.json file.

    This might solve your problem :-)

  • Shivakumar. G Profile Picture
    121 on at

    Hannes,

    I tried "LaunchBrowser : true" but it didn't solved my issue, Still  can't debug :(

    Thanks,

  • Shivakumar. G Profile Picture
    121 on at

    Hey Stefano and Hannes,

    Any other Properties like in "Settings.Json" that i should look into ???

  • Hannes Holst Profile Picture
    5,769 on at

    Make sure that it is "launchBrowser": true and not "launchBrowser : true".
    Also, make sure that you add the config to the file launch.json (and not settings.json).
    Does your browser start using this config?

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

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans