Coder Social home page Coder Social logo

Comments (6)

weinand avatar weinand commented on May 12, 2024

@thegecko the Mock Debug extension can be installed and used in the browser based version of VS Code.

from vscode-mock-debug.

thegecko avatar thegecko commented on May 12, 2024

Excellent, where does the extension run? In the browser or on the server?

from vscode-mock-debug.

weinand avatar weinand commented on May 12, 2024

It depends on the context: if there is at least one node.js extension host, then Mock Debug will use it and if there are more than one it will use the extension host that serves the workspace (and not the UI extension host).
If there is no node.js extension host, Mock Debug will run in the browser's webworker based extension host.

This behavior can be controlled by a command line flag. See Mock Debug's launch configuration for running it in the web.

from vscode-mock-debug.

thegecko avatar thegecko commented on May 12, 2024

This behavior can be controlled by a command line flag. See Mock Debug's launch configuration for running it in the web.

👍

from vscode-mock-debug.

thegecko avatar thegecko commented on May 12, 2024

Thanks @weinand

Is there a way to specify (in the debug adapter) that it should always run in the webworker and not in the node process?
e.g. does packaging a debug adapter as a web extension force it into the webworker?

From a VSCode on the web point of view, controlling where the adapter runs can impact performance, especially if the thing being debugged is "closer" to the user's browser.

from vscode-mock-debug.

weinand avatar weinand commented on May 12, 2024

@thegecko you can control via the package.json how the DA is run. If you only have a "browser" entry point and no "main", the extension can only run in a web worker.
But I'm not aware of any "real" debugger that you could run from a web worker.

from vscode-mock-debug.

Related Issues (20)

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.