Dim H(24)
H(0)=99
Debug H(0)
Debug produces no output even though the format used is in following examples from the html help ?
Dim MyArray(41)
MyArray(0) = 1
MyArray(1) = 2
and...
Debug d ; will output 4
No debug output (was: New user confusion)
- DigitalDreams
- User
- Posts: 18
- Joined: Mon Oct 30, 2023 10:50 pm
Re: No debug output (was: New user confusion)
Code: Select all
Dim H(24)
H(0)=99
Debug H(0)
Code: Select all
Dim MyArray(41)
MyArray(0) = 1
MyArray(1) = 2
Debug d ; will output 4
- DigitalDreams
- User
- Posts: 18
- Joined: Mon Oct 30, 2023 10:50 pm
Re: No debug output (was: New user confusion)
So add to the start... ?infratec wrote: Mon Oct 30, 2023 11:01 pmresults in 99 in the debug window. (is debug on?)Code: Select all
Dim H(24) H(0)=99 Debug H(0)
EnableDebugger
Dim H(24)
H(0)=99
Debug H(0)
Re: No debug output (was: New user confusion)
Is "Use Debugger" enabled in the IDE's "Debugger" menu? Sounds like it's disabled if you're not seeing any output.
- DigitalDreams
- User
- Posts: 18
- Joined: Mon Oct 30, 2023 10:50 pm
Re: No debug output (was: New user confusion)
Use Debugger was enabled.
Just tried again and it now displays 99, thinking I may have used both lower and upper case H !
Thanks all....
Just tried again and it now displays 99, thinking I may have used both lower and upper case H !
Thanks all....
Re: No debug output (was: New user confusion)
The code is not case sensitive ...DigitalDreams wrote: Tue Oct 31, 2023 10:11 am Use Debugger was enabled.
Just tried again and it now displays 99, thinking I may have used both lower and upper case H !
Thanks all....

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
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive
- DigitalDreams
- User
- Posts: 18
- Joined: Mon Oct 30, 2023 10:50 pm
Re: No debug output (was: New user confusion)
That is odd then !, Debug definitely was enabled both times...
Re: No debug output (was: New user confusion)
No problem, was an other ...
Always use EnableExplicit from the beginning to avoid writing errors. Even if you then always have to declare all variables.
Always use EnableExplicit from the beginning to avoid writing errors. Even if you then always have to declare all variables.
Code: Select all
EnableExplicit
Dim H(24)
H(0)=99
Debug h(0)
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
PB v3.30 / v5.75 - OS Mac Mini OSX 10.xx - VM Window Pro / Linux Ubuntu
Downloads on my Webspace / OneDrive