Restored from previous forum. Originally posted by Skipsy.
Hi folks,
Is there any tip to see variable declared on procedures ???
Damn !! I must use global when I want to trace var values...
Thks a lot.
"If you want to touch the sky,
f**k a duck and try to fly"
procedure variables...
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by GPI.
Try debug:
Try debug:
Code: Select all
procedure test(a,b,c)
debug "test:"+str(a)+" "+str(b)+" "+str(c)
...code...
endprocedure
for i=0 to 100
test (i,i*20,i+100-43)
next
[code]
PII 333, 256MB, Asus TNT2Ultra 32MB, AWE Gold 64 4MB-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by tinman.
--
I used to be a nihilist but I don't believe in that any more.
(Win98first ed. + all updates, PB3.51, external editor)
Because the debugger isn't very good now. However, Fred knows this and hopefully it will improve someday.Originally posted by Skipsy
I am just wondering why PB developpers choose to do not give access to procedures variables via the "variables" window.
--
I used to be a nihilist but I don't believe in that any more.
(Win98first ed. + all updates, PB3.51, external editor)
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by Skipsy.
Yes, in some situations it could be userfuller. The negative point is
that we have to think what we'll need to display before running the
app. We can't access to the data "on the fly".
You know, I am not criticizing PB. I have really GOOD TIME with it.
Of course everything can be improved... as long as it is not
against the quality of the generated code.
Just a very personal suggestion : with all previous languages I used
to try (C, ASM, JAVA) it is very powerfull to add/remove breakpoint
when debugging. With PB, as breakpoints seem to be part of the code
(set when compiling) I understand it is not possible.
ww
"If you want to touch the sky,
f**k a duck and try to fly"
Yes, in some situations it could be userfuller. The negative point is
that we have to think what we'll need to display before running the
app. We can't access to the data "on the fly".
You know, I am not criticizing PB. I have really GOOD TIME with it.
Of course everything can be improved... as long as it is not
against the quality of the generated code.
Just a very personal suggestion : with all previous languages I used
to try (C, ASM, JAVA) it is very powerfull to add/remove breakpoint
when debugging. With PB, as breakpoints seem to be part of the code
(set when compiling) I understand it is not possible.
ww
"If you want to touch the sky,
f**k a duck and try to fly"
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
-
BackupUser
- PureBasic Guru

- Posts: 16777133
- Joined: Tue Apr 22, 2003 7:42 pm
Restored from previous forum. Originally posted by tinman.
--
I used to be a nihilist but I don't believe in that any more.
(Win98first ed. + all updates, PB3.51, external editor)
But you cannot do that "on-the-fly" while you are already debugging (which was Skipsy's point). It must be possible though since you can press the "Stop" button in the debugger to stop your code.Originally posted by GPI
try "calldebugger"
--
I used to be a nihilist but I don't believe in that any more.
(Win98first ed. + all updates, PB3.51, external editor)