Skip to content
| Marketplace
Sign in
Visual Studio Code>Debuggers>parallelazy-vscodeNew to Visual Studio Code? Get it now.
parallelazy-vscode

parallelazy-vscode

Cesare Montresor

|
1 install
| (0) | Free
Automatically attach VS Code debugpy sessions to parallelazy spawn workers.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

parallelazy-vscode

VS Code extension designed to work with parallelazy and overcome limitations of debugpy when debugging processes started using the spawn method instead of fork.

When a parallelazy worker starts its debugger, this extension automatically attaches a VS Code debugpy session to that worker. Each worker can therefore be debugged independently, without manually finding or forwarding its debugging port.

Requirements

  • VS Code 1.80 or newer
  • Python with parallelazy installed
  • debugpy, installed as a dependency of parallelazy
  • A debugpy launch configuration in the workspace

Install parallelazy in the same Python environment used by the debug configuration:

python -m pip install parallelazy

For installation from source and the framework's complete documentation, see the parallelazy repository.

Quick start

  1. Install and enable this extension.
  2. Create a VS Code debugpy launch configuration for the Python application that creates the parallelazy workers.
  3. Enable worker debugging by constructing the manager with PluginManager(worker_pydebug=True).
  4. Start the application with Run and Debug.
  5. When a worker calls parallelazy.utils.init_debugger(), this extension automatically starts an attach session for that worker.

Example launch.json:

{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Python: parallelazy application",
      "type": "debugpy",
      "request": "launch",
      "program": "${workspaceFolder}/main.py",
      "console": "integratedTerminal"
    }
  ]
}

See the integration guide for the complete worker example, the connection flow, configuration options, and troubleshooting.

Configuration

The extension contributes these settings:

Setting Default Description
debugpySpawn.host localhost Host used when attaching to a worker.
debugpySpawn.justMyCode false Whether attached sessions debug only user code.

The extension chooses a free local IPC port when it activates. It injects that port into launched debugpy applications as _DEBUG_SPAWN_EXT_PORT; no manual port configuration is required.

Scope and limitations

  • Automatic setup occurs for debugpy launch configurations.
  • Worker attach requests are received over localhost TCP.
  • Worker debugger ports are selected dynamically by debugpy.
  • The extension does not start the Python application or install Python packages for you.
  • Start the application from a __main__ guard, as required by Python's spawn multiprocessing mode.

Related documentation

  • Debugging guide
  • Troubleshooting
  • parallelazy documentation
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft