Code on the Go: Android debugging without a PC from your mobile phone

Discover how Code on the Go brings a full debugger to your Android phone without needing a PC. Debug in real time with JDWP and Shizuku.

miércoles, 1 de julio de 2026 • 3 min read • Q2BSTUDIO Team

Native debugging on Android: JDWP via local socket without cables

Mobile app development has evolved to the point where an Android device can become a complete work environment. However, one of the most complex tasks has always been debugging: in the traditional model, the IDE resides on a computer and communicates with the phone via ADB over USB or WiFi. Code on the Go breaks this scheme by allowing both the IDE and the debugged app to run on the same device, without the need for cables or external PCs. This approach requires rethinking every layer of the debugging stack, from privileged access to the inter-process communication protocol.

The main challenge is that ADB is an Android system service that a normal application cannot access due to the security sandbox. The solution involves using the Java Debug Wire Protocol (JDWP) over local sockets, which are allowed between applications without special permissions. To obtain the necessary level of access, a mechanism inspired by Shizuku is used: leveraging the pairing code service of Android's wireless debugging, a channel is established that allows launching processes with shell privileges. Thus, a JDWP agent can be injected into the target app using the --attach-agent flag of the activity manager, reversing the usual handshake direction: the app connects to the debugger instead of waiting for an external connection.

This advancement is not only relevant for independent developers but also opens new possibilities for companies looking to optimize their workflows. At Q2BSTUDIO, we understand that technical innovation must be accompanied by robust and scalable solutions. That is why we offer custom software services that integrate the best development practices, including mobile debugging environments like this one. The ability to debug directly from the device reduces friction in teams and accelerates the delivery of high-quality custom applications.

From a business perspective, this type of innovation fits perfectly with current mobility and cloud trends. On-site testing and debugging are especially useful for projects incorporating artificial intelligence or AI agents, where real-time interaction with the device hardware is critical. Additionally, organizations adopting AWS and Azure cloud services can extend their CI/CD pipelines to the terminal itself, combining the flexibility of the cloud with the power of local debugging. Similarly, cybersecurity benefits from being able to analyze application behavior in the real environment without exposing sensitive data to external networks.

Another notable aspect is the integration with business intelligence tools and Power BI. When debugging applications that handle large volumes of data, the ability to inspect variables and pause execution on the mobile device itself facilitates data flow validation and early error detection. Companies developing AI for enterprises also find an ally here, as machine learning models integrated into mobile apps can be debugged without relying on a desktop computer.

Of course, the current implementation has limitations: it only supports Java projects (though Kotlin support is being worked on), variable editing is limited to primitive types, and the initial process requires user intervention for pairing. However, these barriers are surmountable and do not detract from the functional core: breakpoints, step-by-step execution, stack inspection, and source code navigation. The roadmap includes conditional breakpoints, expression evaluation, support for attaching to running processes, and more.

In short, Code on the Go demonstrates that a phone is not a reduced version of a laptop, but a platform with its own logic. Reusing open source tools like Shizuku and Android native libraries has made it possible to build a complete debugger without a computer. For companies looking to stay at the forefront, investing in capabilities like this, whether through internal development or with the support of specialists like Q2BSTUDIO, is a strategic decision. If you wish to explore how these technologies can be adapted to your custom application projects or need advice on AWS and Azure cloud services, do not hesitate to contact us.

A BREAK?

Play for a moment before you go

OUR SERVICES

How we can help you

Do you have a project in mind?

Tell us your vision and we'll turn it into a software solution. Whatever the scope, we make your idea real.