Variable Viewer Not Displaying Values

You need some new stunning features ? Tell us here.
MikeGreen99
User
User
Posts: 13
Joined: Wed Dec 03, 2025 5:40 pm

Variable Viewer Not Displaying Values

Post by MikeGreen99 »

Ubuntu Unity 24.04 PureBasic 6.21 Free

Hi.

I'm 'playing' with the free version of PB to decide if it can handle my next project (convert quickbasic programs -->> PureBasic).

I wrote a simple program in the IDE and I have the Variable Viewer displayed.


The Viewer shows the Variable Names 'A, B &K", but no value.

Is this because I am using the Free Version, or am I doing something wrong ?

Define K.i, A.f = 98712, B.i = 23
For k = 0 To 10

Next k
Thanks,
M...
User avatar
mk-soft
Always Here
Always Here
Posts: 6432
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Variable Viewer Not Displaying Values

Post by mk-soft »

Program must be running

Code: Select all

Define K.i, A.f = 98712, B.i = 23
For k = 0 To 10

Next k
CallDebugger ; Stop program with debugger
Please use code tags "</>" ...
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
BarryG
Addict
Addict
Posts: 4272
Joined: Thu Apr 18, 2019 8:17 am

Re: Variable Viewer Not Displaying Values

Post by BarryG »

@mk-soft: That's what I thought at first, but he said the Variable Viewer is showing the variable names without any values? You can only get that situation when the app has been run (you can't open the viewer if not, and it closes when the app finishes). He's on Linux so maybe this is a Linux version bug?
User avatar
mk-soft
Always Here
Always Here
Posts: 6432
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Variable Viewer Not Displaying Values

Post by mk-soft »

Works here with Mint Linux LMDE 7 (Debian 13), Ubuntu 24.04, Debian Trixie and PB v6.21 and v6.30
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
BarryG
Addict
Addict
Posts: 4272
Joined: Thu Apr 18, 2019 8:17 am

Re: Variable Viewer Not Displaying Values

Post by BarryG »

It doesn't make sense with OP's code snippet: you literally can't have the Variable Viewer open with just that snippet, so there's obviously more to it than he's telling us.
MikeGreen99
User
User
Posts: 13
Joined: Wed Dec 03, 2025 5:40 pm

Re: Variable Viewer Not Displaying Values

Post by MikeGreen99 »

Hi.

".....so there's obviously more to it than he's telling us."

I'm not sure what more I can tell you. I tried to attach a pic but I can't figure out how to do that - that way you can see my Variable Viewer box with the Variable Names on the LHS, and nothing on the RHS.

I gather the Free Version is identical to the Full version, with the limitation of a max of 800 lines of code. So it's not that.

Is there anything else I can do - perhaps try a different snippet of code ?? Different Debugger options ??

Thanks,
M...
User avatar
mk-soft
Always Here
Always Here
Posts: 6432
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: Variable Viewer Not Displaying Values

Post by mk-soft »

Use single step with debugger ... (->)

Code: Select all

Procedure foo()
  Protected var1.i
  Static var2.s
  var1 = 101
  var2 = "Hello Worlds"
  ShowVariableViewer()
  CallDebugger ; Only inside visible
EndProcedure

Global a = 1, b = 2, c = 3
Define d, e, f

foo()

Delay(5000) ; ; Blocked update
d = 4
e = 5
f = 6
CallDebugger
My Projects ThreadToGUI / OOP-BaseClass / EventDesigner V3
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
Post Reply