Comments (10)
Hi, I am facing the same question as you, may i ask you how you fix it? Thank you very much!
from vscode-mock-debug.
@z00420691 sorry, I don't remember whether I fixed it or not. It's been a while since I worked on my vscode debugger project
from vscode-mock-debug.
Hi, I'can't debug readme.md file, error message shows,
Active extension "andreweinand.mock-debug" failure:
Cannot find module '...\out\extension' Require stack: -...\resources\app\out\vs\loader.js - ...\resource\app\out\bootstrap-amd.js -..\resource\app\out\bootstrap-fork.js.
Anyone can help me?
from vscode-mock-debug.
@enochcytian what are steps that resulted in this problem?
from vscode-mock-debug.
Following these steps,
- Install VS Code version,
版本: 1.45.0 (system setup)
提交: d69a79b73808559a91206d73d7717ff5f798f23c
日期: 2020-05-07T16:18:48.860Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Windows_NT x64 10.0.19613
-
git clone (https://github.com/Microsoft/vscode-mock-debug.git) (54ef289)
clone to "d:\work\vscode-mock-debug"
open the folder in VS Code. -
in VS Code, Press 'F5' to build & launch
(there is an error, " 终端进程已终止,退出代码:1 ")
-
in another VS Code window. open folder “D:\work\mock test\” and open file "readme.md", Press 'F5' and choose 'Mock Debug', error shows that failure.
That's all. Would you give me help? PLS. Thank you.
from vscode-mock-debug.
What else should I do?
from vscode-mock-debug.
Same here, nothing happened when I click the start button. System information:
Version: 1.45.1
Commit: 5763d909d5f12fe19f215cbfdd29a91c0fa9208a
Date: 2020-05-14T08:33:47.663Z
Electron: 7.2.4
Chrome: 78.0.3904.130
Node.js: 12.8.1
V8: 7.8.279.23-electron.0
OS: Darwin x64 19.4.0
from vscode-mock-debug.
Ok, I found out what's wrong. The auto-generated launch.json
is like this:
{
"version": "0.2.0",
"configurations": [
{
"type": "mock",
"request": "launch",
"name": "Ask for file name",
"program": "${workspaceFolder}/${command:AskForProgramName}",
"stopOnEntry": true
}
]
}
However, if your file is in a subdirectory, like
root/
mock test/
readme.md
Then selecting readme.md
when launching the debugger won't work. Clearly it's because the subdirectory mock test
is not taken into consideration.
A solution is to change the value of "program"
to include the subdirectory:
"program": "${workspaceFolder}/mock test/readme.md"
This will work.
from vscode-mock-debug.
Hi laike9m ,
I try as your suggestions, it can't work. :-(
from vscode-mock-debug.
@enochcytian please note that "Mock Debug" is a sample that shows the basic structure of a debug extension. It doesn't cover all corner cases.
The purpose of the auto generated launch config is to show how "asking the user for input" can be done. It is not something to use in production.
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.