Skip to content

add evaluate on hover, view vars as hex, set data breakpoints #1521

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

Open
wants to merge 4 commits into
base: master
Choose a base branch
from

Conversation

brianignacio5
Copy link
Collaborator

@brianignacio5 brianignacio5 commented Apr 23, 2025

Description

  1. Add the ability to show variables values on hover (it will run a evaluateRequest to the debug adapter)
  2. Add a right click option to show the integer value parsed as Hex and binary. Values will be show in ESP-IDF: Hex View in debug tab. Variables values are updated during debug session if it changes.
  3. Add Data breakpoints request. Just right click a variable and select Break on Value Read, Break on Value Read or Break on Value Read.

Screenshot 2025-04-25 at 15 14 08

Fixes #1511
Fixes #1420
Fixes #1419

Type of change

  • New feature (non-breaking change which adds functionality)

Steps to test this pull request

Provide a list of steps to test changes in this PR and required output

  1. Start a debug session. On an integer variable, right click and select View as Hex. The value will be added to the ESP-IDF: Hex View tree view in the same debug tab. The item allows user to copy the value to clipboard and delete the item from the tree.
  2. Click on Break on Value Read, Break on Value Read or Break on Value Read to set a data breakpoint (watchpoint). The debug session should stop based on the variable value change read or write (depending on selection).
  3. When the debug session is active, the user can hover on source code variables to see the current value during debug session.
  4. Observe results.
  • Expected behaviour:

Show variables values on hover (it will run a evaluateRequest to the debug adapter)
Add a right click option to show the integer value parsed as Hex and binary. Values will be show in ESP-IDF: Hex View in debug tab.
Data breakpoint when selecting Break on Value Read, Break on Value Read or Break on Value Read on variable right click should set a breakpoint on variable update.

How has this been tested?

Manual testing following steps above.

Test Configuration:

  • ESP-IDF Version: 5.3.1
  • OS (Windows,Linux and macOS): macOS

Dependent components impacted by this PR:

  • CDT Debug adapter fork

Checklist

  • PR Self Reviewed
  • Applied Code formatting
  • Added Documentation
  • Added Unit Test
  • Verified on all platforms - Windows,Linux and macOS

@brianignacio5 brianignacio5 added this to the v1.11.0 milestone Apr 23, 2025
@brianignacio5 brianignacio5 self-assigned this Apr 23, 2025
Copy link

github-actions bot commented Apr 23, 2025

Download the artifacts for this pull request:
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.

@brianignacio5 brianignacio5 changed the title add evaluate on hover, add view as hex variables add evaluate on hover, view vars as hex, set data breakpoints Apr 25, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
1 participant