Starter sample for developing debug adapters for VSCode.
Перейти к файлу
Ladislau Szomoru f9f23d69eb
Engineering - cleanup TSA pipeline template parameter (#111)
2024-03-18 12:47:05 +01:00
.github/workflows Revert "update CI config for mode 17" 2022-03-31 19:30:44 +02:00
.vscode Mock-debug has actually implemented this. vscode does not properly respect this property, microsoft/vscode#144211 (#80) 2022-11-04 14:14:53 -07:00
build Engineering - cleanup TSA pipeline template parameter (#111) 2024-03-18 12:47:05 +01:00
images update dependencies 2017-09-08 15:59:57 +02:00
sampleWorkspace Support "attach" request 2022-04-25 10:50:33 -07:00
src fix: disassembly-related things (#108) 2023-09-07 14:16:26 -07:00
.eslintrc.json simplify and align webpack configs 2021-11-02 15:57:27 +01:00
.gitignore add browser/webworker support 2020-09-10 01:10:23 +02:00
.vscodeignore don't package sample workspaces 2020-09-15 12:04:04 +02:00
CHANGELOG.md use DAP 1.55.1 2022-03-31 18:55:15 +02:00
LICENSE.txt updating license to conform to Microsoft standard 2015-11-23 17:50:10 -08:00
SECURITY.md Microsoft mandatory file 2023-06-02 21:28:32 +00:00
ThirdPartyNotices.txt simplifying project structure 2015-11-27 18:44:46 +01:00
package.json chore: remove implicit activation events (#90) 2023-02-01 12:14:56 -08:00
readme.md update readme.md 2022-01-18 12:54:23 +01:00
tsconfig.json support writeMemory requests 2021-12-31 11:04:02 -08:00
yarn.lock use DAP 1.56.0 2022-06-30 10:30:57 -07:00

readme.md

VS Code Mock Debug

This is a starter sample for developing VS Code debug adapters.

Mock Debug simulates a debug adapter for Visual Studio Code. It supports step, continue, breakpoints, exceptions, and variable access but it is not connected to any real debugger.

The sample is meant as an educational piece showing how to implement a debug adapter for VS Code. It can be used as a starting point for developing a real adapter.

More information about how to develop a new debug adapter can be found here.

Using Mock Debug

  • Install the Mock Debug extension in VS Code.
  • 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 the green 'play' button to start debugging.

You can now 'step through' the readme.md file, set and hit breakpoints, and run into exceptions (if the word exception appears in a line).

Mock Debug

Build and Run

  • Clone the project https://github.com/Microsoft/vscode-mock-debug.git
  • Open the project folder in VS Code.
  • Press F5 to build and launch Mock Debug in another VS Code window.
  • In the explorer view of the new window open the 'program' file readme.md
  • Set some breakpoints
  • From the editor's "Run and Debug" toolbar dropdown menu select "Debug File"