Skip to content

Contribution

Don Jayamanne edited this page Jan 11, 2018 · 8 revisions

Prerequisites

  1. Node.js 8.9.1 (https://nodejs.org/en/)
  2. npm 5.5.1 (available in Nodejs 8.9.1)
  3. Yarn (you can install via the npm command as follows npm install -g yarn)
  4. Identify extension directory (generally c:\users\xxx\.vscode\extensions on windows and ~/.vscode/extensions on OSX)
  5. Open terminal in the above extensions directory and run the following commands:
  • git clone https://github.com/Microsoft/vscode-python
  • cd pythonVSCode
  • yarn
  1. Open VS Code in the above directory (type the following in the terminal (code .)
  2. Build the extension by going to the menu Tasks->Run Build Task (select Compile)
  3. Open the file src/client/extensions.ts
  4. Add break points in the above file any where (starting from the top to the main entry function activate).
  5. Start debugging using the Launch Extension debug configuration
  6. This will open a debug instance of VS Code, now open a Workspace and then a python file
  • The extension should now hit your breakpoints.

Note: My suggestion is to add break points to at least the use strict statement (on the top) and start stepping through until it falls over.

Clone this wiki locally