GLBasic forum

Main forum => GLBasic - en => Topic started by: UBERmonkeybot on 2015-Oct-10

Title: .dbg() Question
Post by: UBERmonkeybot on 2015-Oct-10
Hi,
I wonder if someone could tell me how to output .dbg() to STDOUT.
I am wanting to send it to android monitor for debugging purposes.

Thanks in advance
Title: Re: .dbg() Question
Post by: MrTAToad on 2015-Oct-11
Unfortunately you cant - it calls DEBUG for each field in the type.  However, DEBUG does sent text to the Android log file.
Title: Re: .dbg() Question
Post by: UBERmonkeybot on 2015-Oct-12
Thanks.
Title: Re: .dbg() Question
Post by: UBERmonkeybot on 2015-Nov-22
I don't appear to be able to output debug data to the Android Log.

By Andoid log i assume you mean adb logcat -s "glbasic"

It seems to only output to STDOUT and not DEBUG which means i cannot use .dbg() for android device debugging.

Any help with this would be greatly appreciated.


Thanks


Title: Re: .dbg() Question
Post by: spacefractal on 2015-Nov-22
only STDOUT works on Android as well on iOS.

Personally im want DEBUG command deprecated, because the DEBUG command did conflicted with some newer compilers, example with xCode. As im aware they does pretty much extractly the same thing, so im wonder why.

There is also a _Logview.bat you can start to checkout the log in Compiler/platform/Android/bin.

Title: Re: .dbg() Question
Post by: UBERmonkeybot on 2015-Nov-22
I just did it longhand in the end

e.g.

Code (glbasic) Select

STDOUT q
STDOUT "x "+obs[q].x
STDOUT "y "+obs[q].y


etc etc.

It does seem a bit silly to have 2 commands that do pretty much the same thing,I am sure it will get deprecated at some point.
Can you use STDOUT to debug windows code?(e.g. in the output panel in the editor.
Title: Re: .dbg() Question
Post by: spacefractal on 2015-Nov-23
its only make seance on Windows really, not on other platforms.

But im did indeeded have issues with DEBUG on iOS and commented it out in the source code.