node-remote-debugger
v1.1.2
Published
Server-side Node.js library for interacting with 'vs-remote-debugger' Visual Studio Code extension, e.g.
Downloads
16
Maintainers
Readme
vs-remote-debugger (Node.js SDK)
Server-side Node.js library for interacting with vs-remote-debugger Visual Studio Code extension, e.g.
License
Install
Run
npm install node-remote-debugger
inside your app project to install the module.
Usage
If you look at the example code you can see how the class can be used:
import { RemoteDebugger } from 'node-remote-debugger';
import * as ZLib from 'zlib';
let remoteDebugger = new RemoteDebugger();
remoteDebugger.addHost('localhost', 23979);
// compress JSON data with GZIP
//
// activate the "gzip" plugin in your
// launch.json file in VS Code!
remoteDebugger.jsonTransformer = (buff) => {
return ZLib.gzipSync(buff);
};
remoteDebugger.dbg({
a: 11,
b: 22,
c: 33,
});
A possible result can be this here: