Skip to main content
Business Central forum
Suggested answer

VS Code Debug Error

editSubscribe (1) ShareShare
ReportReport
Posted on by 4
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 60,350 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 60,350 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 60,350 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 2,850 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

New Blog Features Released!

Check out the new community blog features for viewers and authors…

Demystifying Copilot with Sundar Raghavan

Sundar explains how Copilot for Service is meant to function separately...

Is Copilot Supported In My Region?

Find out if Dynamics 365 and Copilot are supported in your region…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

Andre Arnaud de Cal... 283,189 Super User

#2
Martin Dráb Profile Picture

Martin Dráb 222,776 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,140

Featured topics

Product updates

Dynamics 365 release plans