[Debug with free VSCode](On Windows and Linux desktops)
-
Download and install Visual Studio Code:
https://code.visualstudio.com/ -
Install the following VSCode extensions:
- Python (Microsoft)
- Pylance (Microsoft)
- Qt for Python (optional, for syntax highlighting)
- Debugger for Python (bundled with Python extension)
- Start VSCode and select File -> Open Folder...
- Open the
pyside6-getting-startedfolder.
(screenshot placeholder)

When opening a Python file, VSCode will prompt you to select a Python interpreter.
- Click Select Python Interpreter in the status bar or open the command palette (Ctrl+Shift+P) and run:
Python: Select Interpreter
(screenshot placeholder)

Choose one of:
- An existing virtual environment
- Or create a new one:
python -m venv .venv
VSCode will automatically activate it.
Open a terminal inside VSCode:
pip install PySide6
Wait until installation completes.
VSCode automatically detects Python scripts, but you can create a debug configuration:
- Open Run and Debug (Ctrl+Shift+D)
- Click Create a launch.json file
- Choose Python: Current File
This generates:
{
"version": "0.2.0",
"configurations": [
{
"name": "Python: Current File",
"type": "python",
"request": "launch",
"program": "${file}",
"console": "integratedTerminal"
}
]
}(screenshot placeholder)

- Open any
.pyfile from the Explorer panel - Click in the left margin to set a breakpoint
- Press F5 or click the green Run icon
(screenshot placeholder)

Use the standard VSCode debug keys:
- F10 – Step over
- F11 – Step into
- Shift+F11 – Step out
- F5 – Continue
(screenshot placeholder)
