No debug output (was: New user confusion)

Just starting out? Need help? Post your questions and find answers here.
User avatar
DigitalDreams
User
User
Posts: 18
Joined: Mon Oct 30, 2023 10:50 pm

No debug output (was: New user confusion)

Post 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
infratec
Always Here
Always Here
Posts: 7622
Joined: Sun Sep 07, 2008 12:45 pm
Location: Germany

Re: No debug output (was: New user confusion)

Post by infratec »

Code: Select all

Dim H(24)
H(0)=99
Debug H(0)
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,
User avatar
DigitalDreams
User
User
Posts: 18
Joined: Mon Oct 30, 2023 10:50 pm

Re: No debug output (was: New user confusion)

Post by DigitalDreams »

infratec wrote: Mon Oct 30, 2023 11:01 pm

Code: Select all

Dim H(24)
H(0)=99
Debug H(0)
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)
BarryG
Addict
Addict
Posts: 4178
Joined: Thu Apr 18, 2019 8:17 am

Re: No debug output (was: New user confusion)

Post by BarryG »

Is "Use Debugger" enabled in the IDE's "Debugger" menu? Sounds like it's disabled if you're not seeing any output.
User avatar
DigitalDreams
User
User
Posts: 18
Joined: Mon Oct 30, 2023 10:50 pm

Re: No debug output (was: New user confusion)

Post 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....
User avatar
mk-soft
Always Here
Always Here
Posts: 6253
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: No debug output (was: New user confusion)

Post 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 ... ;)
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
User avatar
DigitalDreams
User
User
Posts: 18
Joined: Mon Oct 30, 2023 10:50 pm

Re: No debug output (was: New user confusion)

Post 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...
User avatar
mk-soft
Always Here
Always Here
Posts: 6253
Joined: Fri May 12, 2006 6:51 pm
Location: Germany

Re: No debug output (was: New user confusion)

Post 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)
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