Skip to main content

Notifications

Business Central forum
Suggested answer

VS Code Debug Error

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 61,112 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 61,112 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 61,112 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 3,219 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

Contextual content recommendations & SharePoint Q&A

Instantly access relevant sales materials…

Beyond the DRA Cloud Label Printing

Explore cloud-based label printing within Dynamics 365…

HR Infrastructure Customer merge

Important considerations for HR Customer migrations…

Leaderboard

#1
Andre Arnaud de Calavon Profile Picture

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

#2
Martin Dráb Profile Picture

Martin Dráb 223,631 Super User

#3
nmaenpaa Profile Picture

nmaenpaa 101,142

Featured topics

Product updates

Dynamics 365 release plans