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

[Feature Request]: QEMU support for debugging and viewing the monitor at the same time (VSC-1606) #1449

Closed
bdpdx opened this issue Feb 28, 2025 · 3 comments · Fixed by #1462
Assignees
Labels
Feature / Enhancement Request Request for Feature/ Enhancement

Comments

@bdpdx
Copy link
Contributor

bdpdx commented Feb 28, 2025

QEMU debugging in VSCode is very useful. Currently however you can only open the monitor or a debugging window but not both. idf.py qemu supports starting qemu monitor with the --gdb flag so it will wait for GDB. In another terminal you can then start idf.py qemu gdb.

Debugging in VSCode is much than at the command line so it would ideal if there was a ESP-IDF: Launch Monitor and Debug Firmware option. Ideally there would also be a flash, open monitor, and debug.

Some things to do would be to support the idf.py passing of flash and efuse file via arguments, and the restarting the command should clean up any existing windows and reload everything.

This would make debugging ESP32 incredibly easier.

@bdpdx bdpdx added the Feature / Enhancement Request Request for Feature/ Enhancement label Feb 28, 2025
@github-actions github-actions bot changed the title [Feature Request]: QEMU support for debugging and viewing the monitor at the same time [Feature Request]: QEMU support for debugging and viewing the monitor at the same time (VSC-1606) Feb 28, 2025
@brianignacio5 brianignacio5 self-assigned this Mar 7, 2025
@brianignacio5
Copy link
Collaborator

Hi @bdpdx I've created a PR that basically execute idf.py qemu that allows you to run QEMU to debug and monitor with "idf.qemuDebugMonitor": true configuration setting in .vscode/settings.json and "idf.customExtraArgs": ["--qemu-extra-args"] to pass custom arguments to QEMU in the format of idf.py qemu ${idf.customExtraArgs} ${idf.qemuDebugMonitor ? "-gdb": ""} monitor

Please take a look when you can.

You can test these changes by installing this VSIX by click menu View -> Command Palette..., type Install from VSIX and then select downloaded esp-idf-extension.vsix file to install the extension.

Copy link

This issue has been marked as stale since there are no activities, and this will be closed in 5 days if there are no further activities

@github-actions github-actions bot added the stale Stale PR or Issue label Mar 26, 2025
@brianignacio5 brianignacio5 removed the stale Stale PR or Issue label Mar 26, 2025
Copy link

Thanks for using our extension! 🚀

Your feedback matters! Could you take a moment to rate it on the marketplace? A positive rating helps other developers discover our tools and motivates us to keep improving.

⭐ Rate ESP-IDF Extension: https://marketplace.visualstudio.com/items?itemName=espressif.esp-idf-extension&ssr=false#review-details

Your support means a lot to our development team!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature / Enhancement Request Request for Feature/ Enhancement
Projects
None yet
2 participants