Page 1 of 1
Variable Viewer Not Displaying Values
Posted: Fri Dec 12, 2025 9:47 pm
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...
Re: Variable Viewer Not Displaying Values
Posted: Sat Dec 13, 2025 2:15 am
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 "</>" ...
Re: Variable Viewer Not Displaying Values
Posted: Sat Dec 13, 2025 2:20 am
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?
Re: Variable Viewer Not Displaying Values
Posted: Sat Dec 13, 2025 2:23 am
by mk-soft
Works here with Mint Linux LMDE 7 (Debian 13), Ubuntu 24.04, Debian Trixie and PB v6.21 and v6.30
Re: Variable Viewer Not Displaying Values
Posted: Sat Dec 13, 2025 3:03 am
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.
Re: Variable Viewer Not Displaying Values
Posted: Sat Dec 13, 2025 6:24 pm
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...
Re: Variable Viewer Not Displaying Values
Posted: Sat Dec 13, 2025 6:48 pm
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