Viewing variables in debug breaks session
Describe the bug I'm running a debugging session on an instance. When I try to view variables in the Run and Debug pane the session terminates with an error: "Unable to compare operands of type NavOption with Boolean"
I can step through all the code without problems. Only occurs when doing the above.
All other extensions than AL Language and theme are disabled!
To Reproduce
- Start debugging session
- Step into sub function.
- Go to debug pane and choose variables.
- Click on
Expected behavior That I can view all relevant variables
Screenshots
5. Versions:
- AL Language: 6.6.425415
- Business Central: 17.1
Can you please provide a small repro, if possible?
Hi
It’s not easy to reproduce as it comes on different places from time to time.
But I’ve made a small screen recording to illustrate.
It’s a BC 17.1 DK with the extension from LS Retail installed.
When I debug it runs fine to begin with as seen. But as I press F11 to step it breaks with the error “Unable to compare operands of type NavOption with Boolean”. If I don’t open the variables window and step through it there is no problem!
Hope this I sufficient.
Hilsen
www.jcd.dk Arne Damkjer - JCD A/S Dynamics NAV udvikler [email protected] www.jcd.dk Systemvej 6, DK-9200 Aalborg SV Ejby Industrivej 111, DK-2600 Glostrup
Følg os på LinkedIn Vi deler tips, advarer mod virus og giver dig viden, du kan bruge til noget Telefon+45 70 12 00 03 Døgnsupport +45 70 12 00 08 Mobil+45 22 600 927 Email: [email protected]
JCD A/S gør opmærksom på, at denne email samt eventuelt vedhæftede dokumenter kan indeholde fortrolig information, der specifikt er fremsendt til den oprindelige modtager. Såfremt du modtager denne mail ved en fejl, beder vi dig anvende svar-funktionen og give afsender besked herom. Samtidig beder vi dig slette emailen i dit system. Det er forbudt at videresende, kopiere eller på anden måde gøre emailen tilgængelig for andre.
Selv om emailen og ethvert vedhæftet bilag efter JCD A/S overbevisning er fri for virus og fejl, som kan påvirke computeren eller it-systemet, åbnes denne på modtagerens eget ansvar. JCD A/S siger på forhånd tak for samarbejde og forståelse vedrørende ovenstående.
Fra: Kálmán Béres [email protected] Sendt: 7. marts 2021 12:19 Til: microsoft/AL [email protected] Cc: Arne Damkjer - JCD A/S [email protected]; Author [email protected] Emne: Re: [microsoft/AL] Viewing variables in debug breaks session (#6514)
Can you please provide a small repro, if possible?
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/microsoft/AL/issues/6514#issuecomment-792260334, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHZ6M6XEAPSWPEX4TKM4EUTTCNOJXANCNFSM4YU2PA6A.
A recording would also be fine. Just to have a clue of the context it happens.
Hi
Just to be sure – I attached the recording to the previous mail. Did you see that?
Hilsen
www.jcd.dk Arne Damkjer - JCD A/S Dynamics NAV udvikler [email protected] www.jcd.dk Systemvej 6, DK-9200 Aalborg SV Ejby Industrivej 111, DK-2600 Glostrup
Følg os på LinkedIn Vi deler tips, advarer mod virus og giver dig viden, du kan bruge til noget Telefon+45 70 12 00 03 Døgnsupport +45 70 12 00 08 Mobil+45 22 600 927 Email: [email protected]
JCD A/S gør opmærksom på, at denne email samt eventuelt vedhæftede dokumenter kan indeholde fortrolig information, der specifikt er fremsendt til den oprindelige modtager. Såfremt du modtager denne mail ved en fejl, beder vi dig anvende svar-funktionen og give afsender besked herom. Samtidig beder vi dig slette emailen i dit system. Det er forbudt at videresende, kopiere eller på anden måde gøre emailen tilgængelig for andre.
Selv om emailen og ethvert vedhæftet bilag efter JCD A/S overbevisning er fri for virus og fejl, som kan påvirke computeren eller it-systemet, åbnes denne på modtagerens eget ansvar. JCD A/S siger på forhånd tak for samarbejde og forståelse vedrørende ovenstående.
Fra: Kálmán Béres [email protected] Sendt: 8. marts 2021 10:43 Til: microsoft/AL [email protected] Cc: Arne Damkjer - JCD A/S [email protected]; Author [email protected] Emne: Re: [microsoft/AL] Viewing variables in debug breaks session (#6514)
A recording would also be fine. Just to have a clue of the context it happens.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHubhttps://github.com/microsoft/AL/issues/6514#issuecomment-792625514, or unsubscribehttps://github.com/notifications/unsubscribe-auth/AHZ6M6VU36ROMEILBXZ4W5TTCSLYTANCNFSM4YU2PA6A.
No, probably because I do not receive mails from github.
https://user-images.githubusercontent.com/32761466/110432136-08311a80-80af-11eb-9575-891c8f4241d9.mp4
Here is the screen recording as promised
thanks
@kalberes Is there any update on this. I am getting the same issue. This happens a lot, usually if I open Global Variables. At the minute I have a breakpoint on line 249 of Item Tracking Lines page, in OnAssisEdit of field Lot No. If I don't open Global Vars I can step through fine, as soon as I expand Global Vars and the next step I make the error appears in the Debug Console and (min is actually Unable to compare operands of type NavDate with Boolean this time, the NavDate bit changes) and the Debugger disappears. I'm on VSCode 1.67.2 and AL Extension v9.0.615906. BC is 20.1.39764. It has happened lots though on versions since v18