vscode-mock-debug | Starter sample for developing debug adapters for VSCode
kandi X-RAY | vscode-mock-debug Summary
kandi X-RAY | vscode-mock-debug Summary
Starter sample for developing debug adapters for VSCode.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of vscode-mock-debug
vscode-mock-debug Key Features
vscode-mock-debug Examples and Code Snippets
Community Discussions
Trending Discussions on vscode-mock-debug
QUESTION
I want to create a tree in VS code, but my problem is how to manually add a node to my tree. I am not sure from where to start. I tried to review all the projects that created a tree for VScode as an extension.
My problem is that I am not an expert in Typescript and the examples are not so clear or I am not sure how it is working.
Would you mind helping me to understand how to create the tree in VS code? My problem is with creating a node and then adding the node to tree.
I reviewed these projects:
...ANSWER
Answered 2020-Apr-25 at 16:15I finally got it working. It took me very long and I had it right all the time. My issue was I never did explicitly expand the items, so I would never see nested results and only the top level.
Basic working exampleQUESTION
I'm unable to understand how the mock-debugger extension controls where the next step is.
For example what if I'd like to step 2 lines if I find the word "banana" in my text? Also, I'd like to do something, like "Step In", where I can walk word-by-word - is it possible?
I've seen the this._currentLine = ln;
assign, which looks like it controls where the line is, but it's just a simple local variable. How could it ever control anything in the debugger? I can't find any other uses of the _currentLine
varbiable where it passes to anything useful API (except for stack tracing, but I don't think it has any relation with the debugger line-control).
ANSWER
Answered 2019-Nov-22 at 07:59The stack trace is the only source for the debugger step visualization. When the debugger gets a notification to pause it requests the current stack trace. The TOS determines where the next execution point will be located. Hence the debug adapter is reponsible to determine this position precisely.
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install vscode-mock-debug
Open the project folder in VS Code.
Press F5 to build and launch Mock Debug in another VS Code window. In that window: Open a new workspace, create a new 'program' file readme.md and enter several lines of arbitrary text. Switch to the debug viewlet and press the gear dropdown. Select the debug environment "Mock Debug". Press F5 to start debugging.
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page