.dbg() Question

Previous topic - Next topic

UBERmonkeybot

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

MrTAToad

Unfortunately you cant - it calls DEBUG for each field in the type.  However, DEBUG does sent text to the Android log file.

UBERmonkeybot


UBERmonkeybot

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



spacefractal

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.

Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/

UBERmonkeybot

#5
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.

spacefractal

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.
Genius.Greedy Mouse - Karma Miwa - Spot Race - CatchOut - PowerUp Elevation - The beagle Jam - Cave Heroes 2023 - https://spacefractal.itch.io/