web
You’re offline. This is a read only version of the page.
close
Skip to main content
Community site session details

Community site session details

Session Id :
Small and medium business | Business Central, N...
Suggested answer

It is not possible to add a breakpoint at line number in visual studio code

(1) ShareShare
ReportReport
Posted on by 50
When I try to debug bc in visual studio code I get this error:
 Error: It is not possible to add a breakpoint at line number 428 in application object type CodeUnit, ID 50417. Check that the resource exposure policies applied to this extension allows debugging.
 
Am I missing rights? 
 
Gr. Youssef
 
I have the same question (0)
  • Gerardo Rentería García Profile Picture
    24,077 Most Valuable Professional on at
    It is not possible to add a breakpoint at line number in visual studio code
    Hi
    I hope this can help you and give you some hints. 
    allowDebugging setting.
    BR
    GR
  • Suggested answer
    Mohamed Amine Mahmoudi Profile Picture
    26,362 Super User 2025 Season 2 on at
    It is not possible to add a breakpoint at line number in visual studio code
    Hi @yaza,
     
    you must ensure that the allowDebugging property has the value true in the app.json file.
     
    Best regards,
    Mohamed Amine MAHMOUDI
  • Suggested answer
    Saurav.Dhyani Profile Picture
    14,374 Super User 2025 Season 2 on at
    It is not possible to add a breakpoint at line number in visual studio code
    Hi,
     
    Is the object part of your extension?
     
    If yes, then you should be able to debug the object and also able to set breakpoint.
     
    Refer this video for debugging - https://youtu.be/TgXNXxKL2yc
     
    Regards,
    Saurav Dhyani
  • Suggested answer
    YUN ZHU Profile Picture
    94,170 Super User 2025 Season 2 on at
    It is not possible to add a breakpoint at line number in visual studio code
    More details: Business Central 2021 wave 2 (BC19): Richer access control for extension source in cloud environments (‘showMyCode’ -> ‘resourceExposurePolicy’)
     
     
    Thanks.
    ZHU
  • yaza Profile Picture
    50 on at
    It is not possible to add a breakpoint at line number in visual studio code
    I also added this to my app.js:
    "resourceExposurePolicy": {
        "allowDebugging": true,
        "allowDownloadingSource": true,
        "includeSourceInSymbolFile": true
      },
     
    Still getting the error.
  • ERPlatanos Profile Picture
    73 on at
    It is not possible to add a breakpoint at line number in visual studio code
    Has anybody figured this out yet?
    I'm having the same issue
  • Gerardo Rentería García Profile Picture
    24,077 Most Valuable Professional on at
    It is not possible to add a breakpoint at line number in visual studio code

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

Responsible AI policies

As AI tools become more common, we’re introducing a Responsible AI Use…

Pallavi Phade – Community Spotlight

We are honored to recognize Pallavi Phade as our Community Spotlight honoree for…

Leaderboard > Small and medium business | Business Central, NAV, RMS

#1
OussamaSabbouh Profile Picture

OussamaSabbouh 2,553

#2
Sumit Singh Profile Picture

Sumit Singh 2,057

#3
YUN ZHU Profile Picture

YUN ZHU 1,915 Super User 2025 Season 2

Last 30 days Overall leaderboard

Featured topics

Product updates

Dynamics 365 release plans