Unable to Step Into Python Code Module Error in TestStand

Updated Aug 6, 2025

Reported In

Software

  • TestStand

Operating System

  • Windows

Programming Language

  • Python

Other

  • Visual Studio Code

Issue Details

  • When logged in as one Windows user, TestStand works fine. But when logged in as another Windows user, TestStand cannot step into Python code modules.
  • When trying to step-in to a Python step using Visual Studio Code, I receive this error/info message:

Unable to step into Python code module

Unable to connect to VSCode. Ensure the following:

  1. TestStand's extension is installed and enabled
  2. If VSCode is already open, it should be opened as same user which is used to open TestStand
  3. Ensure C:\Users\myUsername\Documents\TestStand directory is trusted in VSCode
  4. Microsoft's Python extension is installed and enabled

The error is shown in the following dialog box:

 TestStand "Unable to step into Python code module" error/info box. 4 troubleshooting steps are listed. 

After closing this window, the code is able to run (the step passes or fails as normal) however it does not step-in but rather steps-over.

Solution

This error can arise when the execution supporting software cannot be accessed or is not configured correctly. When installing the software that is responsible for execution of code modules, such as Visual Studio Code for Python code modules, make sure that you install the software for all Windows users and that it can be accessed by all users.

In the case of Visual Studio Code, there are two separate Windows installers: a User Installer and System Installer. Ensure that the System Installer is downloaded. On the Visual Studio Code download page, you can find the separate download link as shown in the reference below:

Visual Studio Code download page. Highlighting "System Installer" located under "Windows User Installer".