GLBasic forum

Main forum => GLBasic - en => Topic started by: MrPlow on 2020-Mar-30

Title: Debug
Post by: MrPlow on 2020-Mar-30
Hi All,

Is there an easy way to write DEBUG-like output to the immediate window without DEBUG - without the programming needing to be DEBUG mode?
Reason being my Antivirus software does not like the DEBUG mode.

Title: Re: Debug
Post by: Schranz0r on 2020-Mar-31
You can debug in Window (Print ...) or  create Log-Files.

Another way is to enable the Console and write to it.

Example:
Code (glbasic) Select
OpenConsole()

STDOUT "Hello Console!"

WHILE TRUE



SHOWSCREEN
WEND
END


FUNCTION OpenConsole:
IMPORT void __AllocConsole()
__AllocConsole()
ENDFUNCTION
Title: Re: Debug
Post by: MrPlow on 2020-Mar-31
Nice - thanks for openconsole method :)

That'll come in very handy
Title: Re: Debug
Post by: Qedo on 2020-Mar-31
you tried to handle exceptions on your antivirus?

On "Free Avast antivirus" that I use I did it for GlBasic and I solved it (for other reasons)

Title: Re: Debug
Post by: MrPlow on 2020-Mar-31
Bit tricker on the one I use as its freezing / quarantining on the individual app folders for the specific projects...so I have to add exeptions for all my projects ... absolute pain ... not worth the hassle... an easy workaround is better for me.
Title: Re: Debug
Post by: Qedo on 2020-Mar-31
I added one only exception to the whole folder where all the glbasic projects are located
Title: Re: Debug
Post by: MrPlow on 2020-Apr-03
Yes, I think I can do that too - but my projects are a big part of what I want protection from ransom ware attacks,  etc.
Title: Re: Debug
Post by: bigsofty on 2020-Apr-03
Changed to ESet Nod32 when I had the problem, a lot less false positive generic reports.