AL icon indicating copy to clipboard operation
AL copied to clipboard

Debugger doesn't break on breakpoint placed in .DAL

Open jwynndev opened this issue 6 years ago • 5 comments

Describe the bug If I place a break point in standard BC code (.dal files). Then "Debug without publishing". The break points I have defined get ignored. This occurs in SAAS sandboxes. I have tested in Great Britain and Norway tenants. I have tested with version 15 and 15.1 tenants.

To Reproduce Steps and to reproduce the behavior:

  1. Open VS Code.
  2. AL:Go!
  3. Set Launch.json like this. Replace tenant and sandbox in the below:
{
    "version": "0.2.0",
    "configurations": [
        {
            "startupObjectId": 22,
            "startupObjectType": "Page",
            "launchBrowser": true,
            "enableLongRunningSqlStatements": true,
            "enableSqlInformationDebugger": true,
            "name": "NO",
            "type": "al",
            "request": "launch",
            "breakOnError": true,
            "breakOnRecordWrite": true,
            "sandboxName": "YOUR SANDBOX",
            "tenant": "YOUR TENANT",
            "dependencyPublishingOption": "Ignore"
        }
    ]
}
  1. Create codeunit.
codeunit 50100 asd
{
   trigger OnRun()
   begin

   end;

   var
       salesinvlist: page "Sales Invoice List";
}
  1. Go to definition of "Sales Invoice List".
  2. Set Break point to first line of OnOpenPage trigger, Line 693
  3. "Debug without publishing"
  4. Client starts
  5. Open Sales Invoice List.
  6. Debugger does not break

Expected behaviour When opening Sales Invoice List the Debugger should break on the break point defined in Sales Invoice List page Line 693 OnOpenPage trigger.

Screenshots image

5. Versions:

  • AL Language: Version: 4.0.199169
  • Business Central: Version: Platform 15.0.38375.0 + Application 15.0.36560.0

jwynndev avatar Dec 02 '19 16:12 jwynndev

@PooyaKharamesh Is there any news on this? Were you able to replicate the issue?

jwynndev avatar Dec 17 '19 22:12 jwynndev

Hitting breakpoints on the base application on sandboxes has been disabled with version 15.

kalberes avatar Dec 23 '19 11:12 kalberes

Hitting breakpoints on the base application on sandboxes has been disabled with version 15.

@kalberes Thank you Kálmán, do you have a source for this? I'v not read it anywhere.

jwynndev avatar Dec 23 '19 11:12 jwynndev

If you have access to yammer it was announced On April 3d. https://www.yammer.com/dynamicsnavdev/threads/89028034289664

kalberes avatar Dec 25 '19 15:12 kalberes

I am closing this issue because it appears that it has been resolved. Please open a new issue if you believe this has not been resolved and reference the current issue.

atoader avatar Mar 07 '20 08:03 atoader