[View]  [Edit]  [Lock]  [References]  [Attachments]  [History]  [Home]  [Changes]  [Search]  [Help] 

[node8-android] Debugging with U8 Debugger

The node8-android execution machinery supports the Chrome DevTools Protocol to instrument, inspect, debug and profile S8 Smalltalk systems running as native android applications.
We can connect the [UI8]UI8Debugger to any running S8 android application setup to run inspector at startup.

Note that you need to grant network access to the application from the computer your want to debug for the port used for debugging (default:9229).

To enable the inspector interface at startup of your application, edit the implementation of JAVA method startProgress() of MainActivity; adding the argument "--inspect" when calling to startNodeWithArguments().

The inspector interface will emmit the URL to access the application's debug server in the terminal; take note of the URL.
Use the URL to connect from [UI8]UI8Debugger page.
You can also use the connect UI to access the server (with the IP of android device). In this case all the available S8 systems running in the device will be listed and you can select wich app to debug