Skip to content
| Marketplace
Sign in
Visual Studio Code>Programming Languages>ADS Python UtilitiesNew to Visual Studio Code? Get it now.
ADS Python Utilities

ADS Python Utilities

Keysight Technologies

|
1,810 installs
| (0) | Free
Python development utilities and debugger integration for Keysight ADS.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

ADS VS Code Python Utilities

This guide covers the keysight-technologies.ads-python-utils extension and its ADS debugger add-on. Use the ADS MCP server for AI-assisted ADS documentation search, session management, workspace inspection, and Python execution. For setup instructions, refer to the ADS Python documentation topic Using ADS MCP in VS Code.


Step A. Install VS Code

  1. Download and Install

    • Download Visual Studio Code: https://code.visualstudio.com/
    • During installation, check the box to add VS Code to your PATH.
  2. Verify the availability of 'code' in your environment. (Optional)

    • Open a terminal or command prompt and run: code --version
    • If you get an error like 'code' is not recognized as an internal or external command', the command is not in your system path. Please add code to system path.

Step B. Install the extension in VS Code

Install the extension in VS Code: https://marketplace.visualstudio.com/items?itemName=keysight-technologies.ads-python-utils


Step C. Setting Python Interpreter in VS Code to run ADS scripts

  1. Open Folder in VS Code that contains where your ADS scripts are located.

  2. Configure python interpeter to use ADS modules

    • Use the View▸Command Palette (Ctrl+Shift+P) and select "ADS Python Utilities: Configure Python Interpreter Path".
    • windows: %HPEESOF_DIR%\tools\python\python.exe or C:\Program Files\Keysight\<ADS Directory>\tools\python\python.exe"
    • linux: $HPEESOF_DIR/tools/python/bin/python3
  3. Add ADS Python source and documentation to the workspace for source navigation and code completion (Optional)

    • Use the View▸Command Palette (Ctrl+Shift+P) and select "ADS Python Utilities: Add ADS Python to Workspace".
  4. Add launch configuration for executing and debugging python scripts (Optional)

    • Use the View▸Command Palette (Ctrl+Shift+P) and select "ADS Python Utilities: Add Python Launch Configuration".

AI assistance with ADS

Configure the ADS MCP server in VS Code to search ADS documentation, inspect workspaces and sessions, and execute Python in ADS. For setup instructions, refer to the ADS Python documentation topic Using ADS MCP in VS Code.


Step D – Activate add-on in ADS and attach VS Code python debugger to debug scripts executing within ADS

  1. Launch ADS.

  2. Open Tools▸App Manager….

  3. Enable Python VS Code Utilities

  4. Start a debug session

    • Open Tools▸Python Console.

    • Click "Start Debugger" Button.

      • VS Code gains focus (or launches) and attaches to ADS through debugpy on port 8765.
      • Default ports: ADS → 8765, DDS → 8766.
    • (Optional) Custom port - You can change the port used by the debugger in two ways. Method 1: Set an Environment Variable

      • Set an environment variable before starting ADS, This variable tells the addon to use your preferred port instead of the default. For example, in a Windows command prompt:
        • set DE_DEBUGPY_PORT 8768 or set DDS_DEBUGPY_PORT 8767
        • ADS will now listen on the specified port (e.g. 8768) instead of the default, and the “Start Debugger” button will open VS Code on that port. Method 2: Modify the Addon File Directly
      • If you prefer not to use environment variables, you can directly edit the addon's .py file.
        • Locate the DEFAULT_PORTS dictionary near the top of the file (in /prod/addons/debugpy_attach/init.py) and change the port numbers to your desired values:
        • Default debug-adapter port per profile
            DEFAULT_PORTS = {
                "de": 8765,  # Change this value for the Layout / DE process
                "dds": 8766,  # Change this value for the Data-Display process
            }

Note : Within one ADS session debugpy can listen on only one port.

  • Re-attaching: If you click Start Debugger while a VS Code session is already attached you’ll see: A VS Code session is already connected on port 8765(default port). Disconnect in VS Code and click "Start Debugger" button again to re-attach.

Changelog

2.0.0

  • Use the ADS MCP server in VS Code for ADS documentation search, session and workspace inspection, and Python execution.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft