Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>MTS_VProDebugNew to Visual Studio Code? Get it now.
MTS_VProDebug

MTS_VProDebug

MTS s.r.o.

|
39 installs
| (0) | Free
Enables debugging of Cognex VisionPro ToolBlock scripts and Cognex Designer scripts in Visual Studio Code
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

mts-vprodebug README

This is extension to enable debugging of Cognex Designer VisionPro ToolBlock scripts and Cognex Designer scripts from Visual Studio Code.

Dependency you need to install manually: .NET SDK for visual studio code: https://dotnet.microsoft.com/en-us/download/dotnet/sdk-for-vs-code?utm_source=vs-code&utm_medium=referral&utm_campaign=sdk-install

To run the extension: In Cognex Designer application you want to debug, inside VisionPro toolblock you want to debug, change the script compilation config Debug, uncomment or add these lines to code:

#if DEBUG
    if (System.Diagnostics.Debugger.IsAttached) System.Diagnostics.Debugger.Break();
#endif

compile and close the Script window.

In VScode press Ctrl+Shift+P search for MTS_VProDebug, and click or hit enter.

When prompted, search for running Designer instance you would like to debug and click or hit enter.

Now run the VisionPro toolblock and you code should popup in the VScode windows and breakpoint should be hit.

First initialization can take little bit longer (should be under 5 minutes definitely). Wait for Process ID selection please.

Example: Demo of MTS VPro Debug

Features

Debug VisionPro Toolblocks: Attach to Cognex Designer processes to debug toolblock scripts. Breakpoint Integration: Set and hit breakpoints directly within Visual Studio Code. Streamlined Workflow: Simplifies the debugging process for VisionPro, making it more efficient.

Requirements

C# extension Dependency you need to install manually .NET SDK for visual studio code: https://dotnet.microsoft.com/en-us/download/dotnet/sdk-for-vs-code?utm_source=vs-code&utm_medium=referral&utm_campaign=sdk-install

Extension Settings

Known Issues

Release Notes

1.1.7

Removed unnecessary debug message.

1.1.6

Fixed fast reload bug.

1.1.5

More efficient resources reload.

1.1.4

Fast reload after source code modifications inside scripts and recompilation. 

1.1.0

Properly stopping the background processes after disconnecting debugger.

1.1.0

Cognex Designer task block script support implemented.

1.0.4

Demo animation not able to work without external hostin - switching to youtube video link.

1.0.3

1.0.2

1.0.1

Attempted to show demo animation in this readme.

1.0.0

The extension is able to automatically handle .pdb conversions right after new debug .dlls are created by VisionPro system and automatically reconnects the debugging session.

Following extension guidelines

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft