Debug Python with VsCode

Visual Studio Code debugs Python. Here are the steps on Windows 10.
Create a folder with a .py file in it, e.g. Rio\proj\python\
Run code.exe, open the folder Rio\proj\python
Install extension: ms-python.python, which is the Python extension for VsCode from Microsoft.
Install pathon: python-3.7.3.exe 32bit 24M
which installs to C:\Users\rio\AppData\Local\Programs\Python\Python37-32\python.exe
Add config: click Debug then Add config, which creates S:\Rio\proj\python\.vscode\launch.json
Choose interpreter:
From Command Palette, type: Python: Select Interpreter
The installed python should be listed there, and click it.
Debug: open, set break point, hit the debug icon, they hit the green arrow in the tool bar.
execution should stop and variables can be inspected by mouse over.VsCodePy

Debug JS with VsCode

VsCode can debug JavaScript so that we can set break point and inspect values, instead of console.log

Here are the steps.
I use VsCode v1.30, Chrome v61, Windows 10.
VsCode is downloaded as zip file from, no setup.exe
Run Code.exe and install MS Debugger for Chrome extension 4.11.3 there..
Create a VsCode project file: js.code-workspace, which tells where the .js .htm files are.
Create a launch file by click debug icon – gear icon.
Restart code.exe to have chrome listed in extension. Click it.
.\.vscode\launch.json which tells what browser and and the URL to run
e.g. http://localhost/VsCode/test.htm
Click debug button, or F5. code.exe launches chrome.
Break points can be set.
Variables can be checked by mouse over or in watch window.

Sample code can be downloaded here:


vi going away

It will no longer be part of the base installs of GNU/Linux, retiring after 40 years of service.
The replacement is Visual Studio Code, or VsCode.
I am a big fan of VsCode:

Feels similar to Visual Studio, but open source.
Remote debugging: it can even remote debug Brightscript runninng on TV.
Portable: no setup.exe, no install
Cross platform