How to get a Debug Output window on Android

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

How to get a Debug Output window on Android

Post by Pierre55 » Sun Apr 21, 2019 5:24 pm

Hi,

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

Thanks

Pierre.

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

Re: How to get a Debug Output window on Android

Post by PEB » Mon Apr 22, 2019 2:46 am

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: 44
Joined: Sat Apr 01, 2017 4:25 pm

Re: How to get a Debug Output window on Android

Post by Pierre55 » Sun Apr 28, 2019 4:28 pm

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: 3185
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: How to get a Debug Output window on Android

Post by airsoftsoftwair » Tue Apr 30, 2019 9:10 pm

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: 44
Joined: Sat Apr 01, 2017 4:25 pm

Re: How to get a Debug Output window on Android

Post by Pierre55 » Wed May 01, 2019 1:56 am

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: 3185
Joined: Fri Feb 12, 2010 2:33 pm
Location: Germany
Contact:

Re: How to get a Debug Output window on Android

Post by airsoftsoftwair » Wed May 01, 2019 11:52 am

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