Git Product home page Git Product logo

vscode-debug-visualizer's Introduction

VS Code Debug Visualizer

See here for the readme of the extension. You can get the extension in the marketplace.

This readme extends the readme of the extension with implementation details.

Build Instructions

  • Clone the repository
  • Run yarn in the repository root
  • Run yarn build

Dev Instructions

This project uses yarn workspaces and consists of the sub-projects data-extraction, extension and webview. To setup a dev environment, follow these steps:

  • Clone the repository
  • Run yarn in the repository root
  • Run yarn build initially (or yarn dev for every sub-project)
  • Run yarn dev for the sub-project (i.e. in its folder) you are working on.

For the webview project, yarn dev will serve the react application on port 8080. Certain query parameters need to be set, so that the UI can connect to the debug visualizer extension.

You can use VS Code to launch and debug the extension. Choose the preconfigured Run Extension (Dev UI) as debug configuration so that the extension loads the UI from the webpack server. Otherwise, the extension will start a webserver on its own, hosting the dist folder of the webview project.

Publish Instructions

  • Follow the Build Instructions
  • cd extension
  • yarn pub

Architecture

webview

Implements the UI and is hosted inside a webview in VS Code. Can be opened in a browser window. Uses websockets and JSON RPC to communicate with the extension.

extension

Creates the webview in VS Code, hosts a webserver and a websocket server. The webserver serves the webview project that is loaded by the webview. If started with the Run Extension (Dev UI) debug configuration, it will load the page from http://localhost:8080 rather than from its own http server.

The webview is served from an http server rather than the file system to work around some security mechanisms, which would prevent lazy chunk loading or websockets.

After the webview is loaded, it connects to the websocket server. The websocket server is used to evaluate expressions and is secured by a random token.

data-extraction

Provides types and a JS runtime for data extraction.

vscode-debug-visualizer's People

Contributors

almenon avatar birdie7761 avatar hediet avatar vitalytartynov avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.