Comments (6)
@thegecko the Mock Debug extension can be installed and used in the browser based version of VS Code.
from vscode-mock-debug.
Excellent, where does the extension run? In the browser or on the server?
from vscode-mock-debug.
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.
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.
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.
@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)
- This repo is missing important files
- Question: mouse hover on text during debug session
- Question: how to hide stepback and reverse button on debug toolbar? HOT 2
- Adapter not working when changed to `external` mode HOT 1
- Cannot run through tutorial with latest stable release of 1.62.3 HOT 1
- Cannot start debugging sampleWorkspace/readme.md on Linux due to filename case-sensitivity problem HOT 1
- can this extension run on https://vscode.dev/ HOT 6
- When i try to download the node modules it throws errors. HOT 1
- How to edit and continue while debugging the application? HOT 3
- You installed esbuild on another platform than the one you're currently using. HOT 2
- Unable to use the debug functionality when used as a web extension
- vscode stack frameId can get out of sync HOT 1
- AskForProgramName command did not work
- `vscode-mock-debug` sends `StackFrame#column: 0` response although the debug client sends `columnsStartAt1: true` for initialize
- Web Extension no longer works HOT 3
- Extension doesn't work in web extension host on Codespaces or github.dev HOT 1
- Mock debug adapter sends stop event before response to step request in violation of the spec
- Question: How to detect if `preLaunchTask` failed?
- Normal breakpoints don't get hit util exception line gets hit.
- Remove onCommand:extension.mock-debug.getProgramName activation event? HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-mock-debug.