Hello everyone,
I'm facing a persistent issue while trying to debug my SAP MDK application locally on Windows using an Android emulator. The debug session starts correctly and hits breakpoints, but it terminates immediately whenever I type anything in the Debug Console within VS Code. I’d really appreciate help in understanding and resolving this behavior.
In addition to that, when I try to run the "MDK Attach on Android" debug configuration in VS Code, the application is not automatically (re)installed on the emulator with the updated bundle. I need to run the application in "MDK Launch on Android" mode to install the app, which breaks the expected debug flow. I've tried use the both modes to debug.
Debugger Steps
Open the MDK project in Visual Studio Code.
This makes it impossible to inspect variables or evaluate expressions dynamically during debugging.
Development Environment
Steps Taken
What I've Already Tried
Updated and adjusted launch.json with different "trace", "sourceMaps", and "watch" settings.
Request clarification before answering.
Hi @jfreitas91
Thank you for the details provided.
Following our investigation into the debugging issues with SAP MDK on Windows and Android emulators, here is a quick summary:
Debug Console Crash
This is a known limitation. The Debug Console doesn’t support dynamic input during paused breakpoints in MDK/NativeScript apps. Debugging should be done using breakpoints, variable inspection, and console.log outputs.
Attach Mode Not Reinstalling App
This is by design. The Attach mode is only for connecting to a running app and won’t trigger a reinstall. You should use MDK Launch on Android to deploy updates.
Here are our recommendations:
Ensure you
Ensure you use MDK Launch on Android for deployment and debugging combined.
Ensure to avoid entering commands into the Debug Console. Instead use logging and variable inspection tools instead.
Then, consider raising an SAP support ticket if dynamic evaluation in the Debug Console is critical to your workflow. As of now, it’s not officially supported.
I hope this gives clarity. I am happy to help if you have further questions.
If you find my response helpful, kindly accept the answer and award a Kudos to this post. Your support is appreciated.
Best regards
Chris
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
| User | Count |
|---|---|
| 4 | |
| 4 | |
| 4 | |
| 3 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 | |
| 2 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.