Skip to main content

Notifications

Announcements

No record found.

Business Central forum
Suggested answer

VS Code Debug Error

Posted on by 6
Hi all,
 
I'm facing issue on VS Code while debugging the code using F5 and Ctrl+Shift+F5 keys for AL code. Please suggest solution. Thanks! #VSCODE #BC
Categories:
  • Community member Profile Picture
    Community member 17 on at
    VS Code Debug Error
    Hi YUN ZHU, 
     
    Launch.json settings and AL version is also correct that's why I able to publish the code. But it is not able to debug. 
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 64,622 Super User on at
    VS Code Debug Error
    Another thing to check is the environment settings in your launch.json file and AL Language version .
     
    Thanks.
    ZHU
  • Community member Profile Picture
    Community member 17 on at
    VS Code Debug Error
    Hi all, after clearing credentials cache, still gave the same error, internal error has occurred.
  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 64,622 Super User on at
    VS Code Debug Error
    Hi, It looks like there is a problem with your credential. As mentioned in the error message, clear the credentials cache first and then try again.
     
    Hope this helps.
    Thanks.
    ZHU
  • Community member Profile Picture
    Community member 17 on at
    VS Code Debug Error
     

     Getting this error while debugging on VS code 

    2024-04-15 13:02:35.22] Publishing AL application using launch configuration 'Microsoft cloud sandbox'. [2024-04-15 13:02:35.56] Authenticated as user 'abc@com' in tenant '0000'. Please note that these credentials are cached. Clear the credentials cache to authenticate as another user. [2024-04-15 13:02:35.56] Targeting Dynamics 365 Business Central environment tenant '000'. [2024-04-15 13:02:39.03] Error: An internal error has occurred

      
     


     

  • Suggested answer
    YUN ZHU Profile Picture
    YUN ZHU 64,622 Super User on at
    VS Code Debug Error
    What is the error details? It would be very helpful if you have screenshots. One case I was asked about recently is the following one. Hope this helps.
     
     
    Thanks.
    ZHU
  • Suggested answer
    gdrenteria Profile Picture
    gdrenteria 5,353 Super User on at
    VS Code Debug Error
    Hi
    It is likely that you have an issue due to the AL version and your extension.
    Please read this. 
    BR
    GR

Helpful resources

Quick Links

Replay now available! Dynamics 365 Community Call (CRM Edition)

Catch up on the first D365 Community Call held on 7/10

Community Spotlight of the Month

Kudos to Saurav Dhyani!

Congratulations to the June Top 10 community leaders!

These stars go above and beyond . . .

Leaderboard

#1
André Arnaud de Calavon Profile Picture

André Arnaud de Cal... 288,768 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 225,985 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,148

Leaderboard

Featured topics

Product updates

Dynamics 365 release plans