Page 1 of 1
No debug output (was: New user confusion)
Posted: Mon Oct 30, 2023 10:55 pm
by DigitalDreams
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
Re: No debug output (was: New user confusion)
Posted: Mon Oct 30, 2023 11:01 pm
by infratec
results in 99 in the debug window. (is debug on?)
Code: Select all
Dim MyArray(41)
MyArray(0) = 1
MyArray(1) = 2
Debug d ; will output 4
results in 0 in the debug window, since d is not used before,
Re: No debug output (was: New user confusion)
Posted: Tue Oct 31, 2023 12:10 am
by DigitalDreams
infratec wrote: Mon Oct 30, 2023 11:01 pm
results in 99 in the debug window. (is debug on?)
So add to the start... ?
EnableDebugger
Dim H(24)
H(0)=99
Debug H(0)
Re: No debug output (was: New user confusion)
Posted: Tue Oct 31, 2023 12:45 am
by BarryG
Is "Use Debugger" enabled in the IDE's "Debugger" menu? Sounds like it's disabled if you're not seeing any output.
Re: No debug output (was: New user confusion)
Posted: Tue Oct 31, 2023 10:11 am
by DigitalDreams
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....
Re: No debug output (was: New user confusion)
Posted: Tue Oct 31, 2023 10:43 am
by mk-soft
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....
The code is not case sensitive ...

Re: No debug output (was: New user confusion)
Posted: Tue Oct 31, 2023 10:58 am
by DigitalDreams
DigitalDreams wrote: Tue Oct 31, 2023 10:11 am
The code is not case sensitive ...
That is odd then !, Debug definitely was enabled both times...
Re: No debug output (was: New user confusion)
Posted: Tue Oct 31, 2023 11:10 am
by mk-soft
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.
Code: Select all
EnableExplicit
Dim H(24)
H(0)=99
Debug h(0)