AL icon indicating copy to clipboard operation
AL copied to clipboard

Issue 6087 is not solved - the debugger still does not work

Open davmac1 opened this issue 6 years ago • 10 comments

I updated the AL Language to 5.0.320540 and restarted VS Code. It now brings up the sandbox with the debugger on, but breakpoints are ignored and a known error causes the client session to hang. Please fix and test that the debugger works - for breakpoints and errors.

davmac1 avatar Aug 18 '20 13:08 davmac1

Can you provide a repro?

atoader avatar Aug 18 '20 13:08 atoader

It hangs when it hits an error - I have a place in the code where it moves a 50 character field to a 100 character field where it got an error before. Now it hangs and cancel hangs as well - I have to kill the tab. You can also set a breakpoint in any line of code, and it ignores it.

This line of code is the first line in OnAfterGetRecord trigger for example: CLEAR(CertText); It ignores the breakpoint. Should be easy for you to duplicate.

davmac1 avatar Aug 18 '20 13:08 davmac1

The debugger appears to be working now most of the time. There are some other problems. Are they related to this update?

  1. it takes several minutes to publish an update to a fairly small extension.
  2. had errors 2 of the times I ran the same report. Running it a second time always works. ReportError1 ReportError2

davmac1 avatar Aug 19 '20 18:08 davmac1

The errors you have mentioned are not related to the VSIX update. For issues related to the SaaS sandbox or the runtime, please open a customer support ticket.

For the debugger issue, a repro should contain:

  1. A zipped project attached to the thread.
  2. A video recording of the launch/debug cycle
  3. AAD ID of the tenant
  4. Timeframe (UTC) when the issue happened

atoader avatar Aug 20 '20 03:08 atoader

Just FYI, we faced similar cases as described above (sandbox environment):

  1. Breakpoints are ignored by the debugger (VS Code updated to the latest version 5.0.320540) - in our case, after clearing browser cache problem gone.
  2. Now, whenever we publish an extension via uploading .app or via VS Code: running debugger first time after publishing is hanging web-client and then shows"Something went wrong...". Start debugging the second time - works fine.

But as you've mentioned we are going to create a customer support ticket.

AlexxBenn avatar Aug 20 '20 09:08 AlexxBenn

@davmac1 @AlexxBenn are you still facing this issue?

qutreson avatar Sep 14 '20 08:09 qutreson

Once I have set a breakpoint, the object will no longer run. I have to login to the sandbox and run it. It will not run from publishing in VS Code.

davmac1 avatar Sep 14 '20 08:09 davmac1

@qutreson, In my case, seems that issue is gone. Works fine with the latest updates of VS Code and AL language.

AlexxBenn avatar Sep 14 '20 09:09 AlexxBenn

@davmac1 can you update to the latest AL extension and try your scenario again?

qutreson avatar Sep 14 '20 09:09 qutreson

Looks like it is working after the update

davmac1 avatar Sep 14 '20 21:09 davmac1