iScope .ajs Debugger
The extension offers two ways to work. One gives you the tools to debug an analyzer script yourself. The other hands the whole job to an AI agent: it writes the script, runs it on oscillogram files, reads the USB Oscilloscope window, finds the fault, and fixes it.
You need Windows, USB Oscilloscope, and Visual Studio Code or Cursor.
Debug the script by hand
Open a folder of .ajs or .ts scripts. If the editor asks "Do you want to allow untrusted files in this window?", press Open. Open in Restricted Mode turns iScope off.
In the USB Oscilloscope window, open an oscillogram file .mwf. Without it the script does not start.
Press F5. The script stops on a line, and you see the variables, Watch, and the call stack. Ctrl+F5 runs the script through.
For a .ts file, F5 first asks which debugger to use. Choose iScope (Oscilloscope).

For a .ts file, F5 shows this list. The row you want is iScope (Oscilloscope).

A breakpoint in the editor: the yellow arrow, variables, Watch, and the call stack.
When the script was built from .ts, the pause stays in the .ts file, and the matching .ajs line is highlighted beside it.

The breakpoint is in pulse-demo.ts, on line 12. pulse-demo.ajs is open below it, with line 4 highlighted.
Text from Host.ReportOut appears in the Output panel, on the iScope Trace channel.

The iScope Trace channel after a run: a warning, a reading, and an error.
While the script is paused, the status bar reads iScope: Paused.

The status label while paused: iScope: Paused.
The report and the log file are described in Debugging analyzers.
The agent writes, checks, and fixes the script
The same extension contains an MCP server. In the chat you describe what the analyzer should do. The agent writes the script, runs it on your oscillogram files, looks at the result in the USB Oscilloscope window, finds the fault, and corrects the script. The runs and the reading of that window are the agent's work.

The request: run pulse-demo.ts, set a breakpoint on line 12, and read duty while paused. The reply shows duty 2.4, rpm 800, cycleMs 150, pulse.channel 1, pulse.ms 3.6, and pulse.volts 13.8.
How to turn the agent on, and what you can ask it, are described in AI assistant for analyzer development.
To turn it on in this folder: open a folder of scripts. While MCP is not set up, the status bar has an iScope: Enable MCP button. The other path is Ctrl+Shift+P → iScope: Enable MCP. That writes .cursor/mcp.json. Cursor still has to approve the server: Ctrl+Shift+P → Open MCPs → This Workspace → iscope-debug → turn on Source, then open a new chat. Reloading the editor does not approve it. When the file is ready but the server is not running, the status bar says Approve MCP and shows those steps once. MCP is running means a live server for this folder. In VS Code, trust the server in .vscode/mcp.json and press Start. The server is already part of the extension. The computer needs Node.js to start it. F5 and Ctrl+F5 do not need Node.js. iScopeAjs.mcpHints set to false hides the reminder and the status button.
Settings
| Key |
What it changes on screen |
iScopeAjs.oscilloscopePath |
Path to Oscilloscope.exe. Empty means the extension looks for the installed copy itself. Set the path when the program is somewhere else. |
iScopeAjs.mwfPath |
The .mwf oscillogram file that opens before a run. |
iScopeAjs.openFileBeforeRun |
Whether to open that .mwf before the script runs. |
iScopeAjs.autoLaunch |
Whether to start USB Oscilloscope when its window is not open yet. |
iScopeAjs.mcpHints |
Whether to show the MCP status action and the one approval reminder. |
When something goes wrong
- "Please load oscillogram file…" — open an
.mwf oscillogram in USB Oscilloscope, or set iScopeAjs.mwfPath.
- F5 started another debugger — for a
.ts file, choose iScope (Oscilloscope) in the list, not Node.js.
- The USB Oscilloscope window stays open after you stop — that is intentional, so you can look at the result on the oscillogram.
Install
On this page, press Install.
From the command line, when cursor or code is on PATH:
cursor --install-extension i-scope.iscope-debugger
code --install-extension i-scope.iscope-debugger
From a .vsix file: Extensions panel → ⋯ → Install from VSIX…, or:
cursor --install-extension path\to\iscope-debugger.vsix --force
code --install-extension path\to\iscope-debugger.vsix --force
License
Proprietary. See LICENSE.