Page 1 of 1

Variables Pending in Debugger Window

Posted: 27 Jun 2021 10:16
by Martin Meyer
Hello Thomas,

when I am running the debugger I often see lines of the form "<Variable> pending..." in the Variables in the Current Clause window:

Variables in the Current Clause.jpg
Variables in the Current Clause.jpg (50.33 KiB) Viewed 23579 times

It seems it happens randomly. But, once it has happened, it tends to be sticky. I.e. when I am going on stepping through the code, the display of the variable's values stays to be pending.

Is there a way how I can prevent displays being pending?

Re: Variables Pending in Debugger Window

Posted: 29 Jun 2021 8:17
by Thomas Linder Puls
Hi, Martin.

It has to do with a locked critical section. It is an unfortunate possibility after we have switched to "presenters". The debugger needs access to this critical section, but it can be locked by your program (which is unfortunately also braked). We use certain "tricks" to come out of this deadlock, but in your case it seems inadequate.

Can you send a Help -> Send Bug Report ... from the IDE when it happens (you can fx. write "Pending variables" in the comment field? That will give us some information to look at.

Does your program use multiple threads?

Re: Variables Pending in Debugger Window

Posted: 29 Jun 2021 9:30
by Martin Meyer
No, it does not use multiple threads. At least not in 'my' code. I am not sure whether there is some pfc predicate, which I am calling in my program, that internally makes use of multiple threading.

Re: Variables Pending in Debugger Window

Posted: 29 Jun 2021 11:33
by Martin Meyer
I have sent a bug report from the IDE with comment "Pending variables".

Re: Variables Pending in Debugger Window

Posted: 29 Jun 2021 11:42
by Martin Meyer
When I have sent the bug report, the Variables in the Current Clause was:

Variables in the Current Clause 2.jpg
Variables in the Current Clause 2.jpg (54.63 KiB) Viewed 23548 times

Re: Variables Pending in Debugger Window

Posted: 29 Jun 2021 11:52
by Martin Meyer
It seems pending variables do not appear that randomly as I told before. At certain places in my code the effect arises very likely, but at others never.

Re: Variables Pending in Debugger Window

Posted: 29 Jun 2021 13:41
by Thomas Linder Puls
Thank you, we will look at it.

Re: Variables Pending in Debugger Window

Posted: 30 Jun 2021 8:17
by Thomas Linder Puls