* Updates Dependencies
* Uses webpack to bundle runtime library into a single file * Inject the entire file into the Debugee * Register runtime helpers (hediet_dbgVis)
This commit is contained in:
@@ -3,6 +3,8 @@
|
||||
[](https://twitter.com/intent/follow?screen_name=hediet_dev)
|
||||
|
||||
A library that helps implementing data extractors for the Debug Visualizer VS Code extension.
|
||||
It will automatically be injected by the extension when the debugger attaches.
|
||||
Compatible with NodeJS and browsers.
|
||||
|
||||
# Installation
|
||||
|
||||
@@ -14,15 +16,10 @@ yarn add @hediet/debug-visualizer-data-extraction
|
||||
|
||||
# Usage
|
||||
|
||||
## `createGraph` / `createGraphFromPointers` Helper
|
||||
## `createGraphFromPointers` Helper
|
||||
|
||||
```ts
|
||||
import {
|
||||
registerDefaultDataExtractors,
|
||||
createGraphFromPointers,
|
||||
} from "@hediet/debug-visualizer-data-extraction";
|
||||
|
||||
registerDefaultDataExtractors();
|
||||
import { createGraphFromPointers } from "@hediet/debug-visualizer-data-extraction";
|
||||
|
||||
setTimeout(() => {
|
||||
new Main().run();
|
||||
@@ -85,14 +82,7 @@ class DoublyLinkedList {
|
||||
## Registering Custom Data Extractors
|
||||
|
||||
```ts
|
||||
import {
|
||||
registerDefaultDataExtractors,
|
||||
getDataExtractorApi,
|
||||
} from "@hediet/debug-visualizer-data-extraction";
|
||||
|
||||
// The default data extractors are usually also registered by the VS Code extension.
|
||||
// Registered them manually ensures that they are up to date.
|
||||
registerDefaultDataExtractors();
|
||||
import { getDataExtractorApi } from "@hediet/debug-visualizer-data-extraction";
|
||||
|
||||
getDataExtractorApi().registerExtractor({
|
||||
id: "my-foo-extractor",
|
||||
|
||||
Reference in New Issue
Block a user