|
1 | | -## How to build and debug the Microsoft CppTools Extension |
2 | | - |
3 | | -These steps will allow you to debug the TypeScript code that is part of the Microsoft CppTools extension for Visual Studio Code. |
4 | | - |
5 | | -Prerequisite steps: |
6 | | - * Clone [this](https://github.com/Microsoft/vscode-cpptools) repository. |
7 | | - * Install [npm](https://nodejs.org). |
8 | | - * From a command line, run the following commands from the **Extension** folder in the root of the repository: |
9 | | - * `npm install -g vsce` will install `vsce` globally to create the vsix package. |
10 | | - * `npm install` will install the dependencies needed to build the extension. |
11 | | - * Set an environment variable `CPPTOOLS_DEV=1`. |
12 | | - * This enables the local developer workflow, copying dependencies from the **node_modules** folder. |
13 | | - * Open the **Extension** folder in Visual Studio Code and F5. |
14 | | - * Read the [contributing guidelines](https://github.com/Microsoft/vscode-cpptools/blob/master/CONTRIBUTING.md). |
| 1 | +## How to build and debug the Microsoft CppTools Extension |
| 2 | + |
| 3 | +These steps will allow you to debug the TypeScript code that is part of the Microsoft CppTools extension for Visual Studio Code. |
| 4 | + |
| 5 | +Prerequisite steps: |
| 6 | + * Clone [this](https://github.com/Microsoft/vscode-cpptools) repository. |
| 7 | + * Install [npm](https://nodejs.org). |
| 8 | + * From a command line, run the following commands from the **Extension** folder in the root of the repository: |
| 9 | + * `npm install` will install the dependencies needed to build the extension. |
| 10 | + * **(optional)** `npm install -g vsce` will install `vsce` globally to create a VSIX package that you can install. |
| 11 | + * **(optional)** Set an environment variable `CPPTOOLS_DEV=1`. |
| 12 | + * This enables the local developer workflow when testing the debugger, copying dependencies from the **node_modules** folder. Testing the language server does not require this step. |
| 13 | + * Open the **Extension** folder in Visual Studio Code and press F5. This will launch a VS Code Extension Host window and activate the TypeScript debugger. You can set breakpoints on the extension source code and debug your scenario. |
0 commit comments