How to get a Debug Output window on Android

Please post anything related to the Hollywood APK Compiler here
Post Reply
Pierre55
Posts: 51
Joined: Sat Apr 01, 2017 4:25 pm

How to get a Debug Output window on Android

Post by Pierre55 »

Hi,

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

Thanks

Pierre.

PEB
Posts: 522
Joined: Sun Feb 21, 2010 1:28 am

Re: How to get a Debug Output window on Android

Post 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

Pierre55
Posts: 51
Joined: Sat Apr 01, 2017 4:25 pm

Re: How to get a Debug Output window on Android

Post by Pierre55 »

Hi,

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

Bye!

User avatar
airsoftsoftwair
Posts: 4206
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: How to get a Debug Output window on Android

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

Pierre55
Posts: 51
Joined: Sat Apr 01, 2017 4:25 pm

Re: How to get a Debug Output window on Android

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

User avatar
airsoftsoftwair
Posts: 4206
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: How to get a Debug Output window on Android

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

Post Reply