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

Got an idea for enhancing PureBasic? New command(s) you'd like to see?
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

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

Post 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!
Last edited by skywalk on Sun Nov 25, 2012 9:01 pm, edited 1 time in total.
The nice thing about standards is there are so many to choose from. ~ Andrew Tanenbaum
freak
PureBasic Team
PureBasic Team
Posts: 5940
Joined: Fri Apr 25, 2003 5:21 pm
Location: Germany

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

Post 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.
quidquid Latine dictum sit altum videtur
User avatar
skywalk
Addict
Addict
Posts: 4211
Joined: Wed Dec 23, 2009 10:14 pm
Location: Boston, MA

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

Post by skywalk »

I kinda figured...but this is another goodie I miss from Visual Studio 6.
Post Reply