top of page
Search

GSoC'18 Week 4

Writer: Manav JainManav Jain

Updated: Jul 19, 2018

As the prototype is integrated into the PDE and the debugger being attached every time you run any sketch, it was time to work on some UI for the debugger, so I had to add the Debug button and menu.


To achieve this I started by exploring the JavaToolbar class, as the debug menu is already implemented in the Java mode. I then had to replicate the code in the AndroidToolbar class to add the debug button in the Android mode.



After adding the debug button, we had to toggle the debugger, whenever the debug button was clicked.

Now the debugger gets only attached when the debug button is enabled from the PDE.


The next step was to add the debugger menu in the menubar, as the AndroidEditor extends JavaEditor I could use the buildDebugMenu() function in the JavaEditor class to create a debug menu and add it to the Sketch menu option.


Commits involving the above changes :

~ https://github.com/manav-mj/processing-android/commit/0434f66d9e1064ec23941820294a2eb4e839a534

~ https://github.com/manav-mj/processing-android/commit/a3ce7f610621c2a45e51d87f72953a69d070b55d

Comments


bottom of page