vscode-debug-visualizer icon indicating copy to clipboard operation
vscode-debug-visualizer copied to clipboard

Cannot get custom Data Extractor working

Open leonard-thieu opened this issue 3 years ago • 1 comments

I'm trying to get a custom Data Extractor working. When following the example, the code runs to register the Data Extractor but the actual extractor code never runs.

image


Repo with repro: https://github.com/leonard-thieu/test-vscode-debug-visualizer

Version: 1.73.0 (user setup)
Commit: 8fa188b2b301d36553cbc9ce1b0a146ccb93351f
Date: 2022-11-01T15:34:06.111Z
Electron: 19.0.17
Chromium: 102.0.5005.167
Node.js: 16.14.2
V8: 10.2.154.15-electron.0
OS: Windows_NT x64 6.3.9600
Sandboxed: No
  • yarn
  • Open project in Visual Studio Code
  • Open index.mjs
  • Run -> Start Debugging -> Node.js
  • Debug Visualizer: New View
  • Visualize f

Expected: Foo

Actual: [object Object]

leonard-thieu avatar Nov 03 '22 17:11 leonard-thieu

Looks like a bug.

However, I heavily recommend you to use this approach: https://github.com/hediet/vscode-debug-visualizer/blob/master/extension/README.md#debugvisualizerjscustomscriptpaths

  1. you can change the visualization without having to restart the debugger
  2. the visualization code is separate from your production code
  3. it works ;)

hediet avatar Nov 07 '22 11:11 hediet