microsoft / microsoft/vscode-cpptools

Feature Request: Graphing Debug Variables

Open
#8,770 2 comments 4 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

debugger Feature Request
Dominant language
TypeScript
Stars
6.2k
Forks
1.7k
Avg merge
14h 46m
Merged PRs (30d)
61

Description

Type: Feature Request

Something that would be super awesome for this extension would be to be able to plot debugging variables on a graph. I am not a UI guy, but I would think that with all the CSS and JS, this might be not as hard as it is to implement in other IDEs? I think an example is the best way to explain this.

  1. Mark a variable(s) in the debug view window as graphed.
  2. Internally, the extension knows to either use GDB trace or to add a breakpoint on modification.
  3. The extension takes these values as the program runs and plots them as series on a graph.

Another option would be to allow the X axis to either be "time" or "sample". In cases of debugging tests, sample would be most useful. If you were debugging something real-time, time would probably be most useful.

The result would be something like this:
https://visualgdb.com/documentation/livevars/

Eventually, expanding graphing capabilities would be a truly powerful tool for understanding a program's execution at a glance and IMO would greatly speed up debugging capabilities, giving VSCode and this plugin a real edge over other IDEs.

Thanks for reading and thanks for all the work on the extension!

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

The issue names no files, tests, or entry points. Start by reviewing the extension's debug-view and trace or breakpoint architecture; done would mean selecting variables for plotting and displaying their values as graph series against either time or sample.

Written by the indexing model from the issue text.

Assessment

Tech stack
typescript
Domain
data-visualization, devtools
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.