Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Bring back the integrated debugger #686

Closed
codeanticode opened this issue Apr 19, 2022 · 5 comments
Closed

Bring back the integrated debugger #686

codeanticode opened this issue Apr 19, 2022 · 5 comments

Comments

@codeanticode
Copy link
Member

The integrated debugger is currently disabled due to the changes in the API of the PDE editor in Processing 4:

https://github.com/processing/processing-android/blob/master/mode/src/processing/mode/android/AndroidEditor.java#L88

@rupeshkumar22
Copy link
Contributor

rupeshkumar22 commented Aug 13, 2022

Some progress has been made here - master...rupeshkumar22:processing-android:debuggerImprovements

The above changes were not sufficient to make it run, adding android:debuggable="true" in the AndroidManifest.xml before running the sketch on the emulator was essential to resolve an issue mentioned here - https://stackoverflow.com/questions/18893656/application-is-waiting-for-the-debugger-to-attach

For now, Debugger seems to be working fine-
DebuggerUpAndRunning

I need some information to test the working of the debugger. Is there any documentation available to test the debugger's functionality? @codeanticode @ranaaditya
Thanks!

@rupeshkumar22
Copy link
Contributor

@codeanticode @ranaaditya I am looking for versions of Android Mode and processing 3 in which the debugger was stable and working well last time when @manav-mj contributed. Do you remember the versions @codeanticode ? I am able to launch and run the debugger but some null pointer exceptions were faced when trying to use Continue, Step buttons. Comparing the changes from the stable debugger branch would be helpful. Currently, I'm going through commit #491 to understand the debugger workflow.

@codeanticode
Copy link
Member Author

The debugger should work with version 4.3.0 of the Android mode and version 3.5.4 of Processing.

@rupeshkumar22
Copy link
Contributor

Thanks for informing the versions @codeanticode
A recent catch-up with @ranaaditya has been helpful to understand the debugger and some other functionalities.
I've reached a stage where AndroidDebugger's step, continue and other button functionalities are working fine. For variable-value window data reflection, we have started using VariableInspector.java in processing4. I have integrated the use of the VariableInspector in the debugger but data is not being reflected in the variable-value window for some reasons. I'm looking into it. Probably, I'll find a solution for the same.
Thanks

@codeanticode
Copy link
Member Author

Solved with #711

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants