BC AL: It is not possible to add a breakpoint at line number

rcverbeek
Member Posts: 32
Hi,
We created a Business Central Extension that we can debug locally, i.e. in the development environment.
In the live environment we run into an issue that we want to debug, however we are unable to do so. We receive the followin error:
Wat we have done
Does anyone has experience with debugging a remote server?
We are able to debug the Base app code, but not our extension.
The extra configuration is:
The extension targets "OnPrem", Platform "18.0.0.0" and runtime "7.2"
Thanks for your time!
We created a Business Central Extension that we can debug locally, i.e. in the development environment.
In the live environment we run into an issue that we want to debug, however we are unable to do so. We receive the followin error:
Error: It is not possible to add a breakpoint at line number 445 in application object type PageExtension, ID 90029
Wat we have done
- Built the extension
- Published and Installed the extension on the production server
- Added a configuration in the launch.json, with request = "attach" (according to https://docs.microsoft.com/en-us/dynamics365/business-central/dev-itpro/developer/devenv-debugging)
- Set some breakpoints in our extension code
- Start a debug session in VS and then started the app in a browser.
- VS Code then shows some error messages: Error: It is not possible to add a breakpoint at line number 441 in application object type PageExtension, ID 90029
Does anyone has experience with debugging a remote server?
We are able to debug the Base app code, but not our extension.
The extra configuration is:
{ "name": "Attach to Live environment", "type": "al", "request": "attach", "server": "http://OurServerName", "port": 8049, "environmentType": "OnPrem", "serverInstance": "BC180", "authentication": "Windows", "breakOnError": true, "startupObjectId": 22, "startupObjectType": "Page", "launchBrowser": true, "breakOnRecordWrite": false, "enableSqlInformationDebugger": true, "enableLongRunningSqlStatements": true, "longRunningSqlStatementsThreshold": 500, "numberOfSqlStatements": 10, "breakOnNext": "WebClient" },
The extension targets "OnPrem", Platform "18.0.0.0" and runtime "7.2"
Thanks for your time!
0
Categories
- All Categories
- 73 General
- 73 Announcements
- 66.6K Microsoft Dynamics NAV
- 18.7K NAV Three Tier
- 38.4K NAV/Navision Classic Client
- 3.6K Navision Attain
- 2.4K Navision Financials
- 116 Navision DOS
- 851 Navision e-Commerce
- 1K NAV Tips & Tricks
- 772 NAV Dutch speaking only
- 617 NAV Courses, Exams & Certification
- 2K Microsoft Dynamics-Other
- 1.5K Dynamics AX
- 320 Dynamics CRM
- 111 Dynamics GP
- 10 Dynamics SL
- 1.5K Other
- 990 SQL General
- 383 SQL Performance
- 34 SQL Tips & Tricks
- 35 Design Patterns (General & Best Practices)
- 1 Architectural Patterns
- 10 Design Patterns
- 5 Implementation Patterns
- 53 3rd Party Products, Services & Events
- 1.6K General
- 1.1K General Chat
- 1.6K Website
- 83 Testing
- 1.2K Download section
- 23 How Tos section
- 252 Feedback
- 12 NAV TechDays 2013 Sessions
- 13 NAV TechDays 2012 Sessions