vscode-debug-visualizer
vscode-debug-visualizer copied to clipboard
Cannot get custom Data Extractor working
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.

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]
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
- you can change the visualization without having to restart the debugger
- the visualization code is separate from your production code
- it works ;)