Page 1 of 1

How to get a Debug Output window on Android

Posted: Sun Apr 21, 2019 5:24 pm
by Pierre55
Hi,

I'm looking a way to have a window on the Adroid platform that will show all the DebugPrint().

Thanks

Pierre.

Re: How to get a Debug Output window on Android

Posted: Mon Apr 22, 2019 2:46 am
by PEB
If you have a RapaGUI display open, you could use something like this:

Code: Select all

Function p_DebugOutput(DebugStr$)
	moai.CreateDialog([[<dialog id="DebugOutput" title="Debug Output:">
		<vgroup>
			<label>]]..DebugStr$..[[</label>
		</vgroup>
	</dialog>]])
	moai.DoMethod("DebugOutput", "showmodal")
EndFunction

Re: How to get a Debug Output window on Android

Posted: Sun Apr 28, 2019 4:28 pm
by Pierre55
Hi,

Thank you... but If I don't have a RapaGUI open can you tell me how to open one?

Bye!

Re: How to get a Debug Output window on Android

Posted: Tue Apr 30, 2019 9:10 pm
by airsoftsoftwair
The best way to debug on Android is to open LogCat on a desktop PC and then use DebugPrint() to send data to LogCat.

Re: How to get a Debug Output window on Android

Posted: Wed May 01, 2019 1:56 am
by Pierre55
That look easier.... LogCat is it part of an Android Emulator like BlueStacks?

BTW what Android Emulator is best to test Hollywood script ?

Thank you.

Pierre.

Re: How to get a Debug Output window on Android

Posted: Wed May 01, 2019 11:52 am
by airsoftsoftwair
I never test on emulators but only on real devices. You can start LogCat from ADB like this:

Code: Select all

adb logcat
This allows you to capture all debug output from your device...