Page 1 of 1

[4.5b4 x86] - Debugger Only, "Unexpected Token" inside With

Posted: Wed May 05, 2010 5:30 pm
by skywalk
Hi,
This may be a feature request, but since the Variable Viewer can "see" the values it would be great if the realtime debugger would report the same.
It seems to get lost inside With statements. (Macro isn't fully developed?)
This is annoying when I have to check a single variable assignment in a large structure and I am forced to go to the Variable Viewer and then on to the array and then to the sub structure elements. Lots of clicking...

Of course, this is not a problem if I drop the With, and carry the full assignment everywhere, but that is also a lot of typing and ugly.

Code: Select all

Structure x
  id.i
  Array d2.d(0)  
EndStructure
Dim S.x(2)
Dim S.x(0)\d2(4)

With S(0)
  \d2(0) = 0.1    
  \d2(1) = 0.2    ; <-- With Breakpoint here and highlighting variable for viewing:
                  ; "Debugger: Unexpected Token."
EndWith
Thanks for PureBasiC!

Re: [4.5b4 x86] - Debugger Only, "Unexpected Token" inside W

Posted: Wed May 05, 2010 6:09 pm
by freak
The expression evaluation does not take the context into account, only the marked expression itself. So it does not know about the With.

Re: [4.5b4 x86] - Debugger Only, "Unexpected Token" inside W

Posted: Wed May 05, 2010 6:22 pm
by skywalk
I kinda figured...but this is another goodie I miss from Visual Studio 6.