IG-XL VSCode Beta — Current ScopeThis extension currently prepares IG-XL Test program for debugging in VS Code. All debug session management is handled by the standard C# debugger. Additional IG-XL-specific debugger features will be introduced in future releases. What works:
Known limitations:
Commands
RequirementsThe extension requires these VS Code extensions:
They are not installed automatically. Each time you run any IGXL-VSCODE command, it checks for them first. If any are missing, a notification offers:
If you dismiss the notification, the command does not run. Run it again once the extensions are installed. InstallationOption 1: Extensions view
Option 2: Terminal
Option 3: Install from a
|
| Configuration | Attaches to | Purpose |
|---|---|---|
Red - Attach to Excel (IG-XL) |
EXCEL.EXE |
Code running in the IG-XL Excel add-in |
Blue - Attach to IgxlDebugRunHost (DRH) |
IgxlDebugRunHost.exe |
Code running in the Debug Run Host |
Both use "type": "clr" (the .NET Framework 4.x debugger) with "request": "attach" and
"justMyCode": false.
The file is merged, not overwritten. Existing configurations and JSONC comments are kept.
If Red or Blue already exist they are updated in place rather than duplicated. If the file
is not valid JSON/JSONC, the extension refuses to touch it and tells you so.
2. Sets <DebugType>portable</DebugType>
Portable PDBs are required for the VS Code debugger to resolve symbols. The extension scans every
.csproj in the workspace and ensures the Debug configuration resolves DebugType to
portable:
- An existing
<DebugType>in a Debug-applicablePropertyGrouphas its value replaced in place. - If no such element exists, one is inserted into the Debug-conditioned
PropertyGroup. - For SDK-style projects with no Debug-conditioned group, a new
<PropertyGroup Condition="'$(Configuration)' == 'Debug'">is appended.
Release and other non-Debug configurations are never modified. Existing indentation and line
endings are preserved, and re-running the command is a no-op.
Read-only files are skipped. Projects under source control (for example ClearCase) that are not checked out are left untouched and listed in the report so you can check them out and re-run.
Debugging IG-XL Test Program
Open your IG-XL workspace folder in VS Code.
Rebuild the .NET Test solution if required.
Open the corresponding IG-XL Test Program via
Open Existing Test Program.Wait till IG-XL is ready.
Attach the debugger, either:
- run
IGXL-VSCODE: Attach to Excel (Red)from the Command Palette (Ctrl+Shift+P), or - open the Run and Debug view (
Ctrl+Shift+D), selectRed - Attach to Excel (IG-XL)and pressF5.
Use the Blue command or configuration instead when the code runs in the Debug Run Host.
- run

Attach commands
IGXL-VSCODE: Attach to Excel (Red) and IGXL-VSCODE: Attach to IgxlDebugRunHost (Blue) start the same
attach sessions as the Run and Debug entries:
- If
.vscode/launch.jsoncontains theRed/Blueconfiguration (written by setup), that entry is used, so any edits you made to it are honoured. - Otherwise the configuration is built from the
igxlDebug.excelProcessName/igxlDebug.runHostProcessNamesettings, so the commands work even before setup has been run. - In a multi-root workspace, the folder of the active editor is used (or the first folder if no editor is open).
- The target process must already be running. You can bind the commands to keys via Preferences: Open Keyboard Shortcuts.
Settings
| Setting | Default | Description |
|---|---|---|
igxlDebug.excelProcessName |
EXCEL.EXE |
Process the Red configuration attaches to |
igxlDebug.runHostProcessName |
IgxlDebugRunHost.exe |
Process the Blue configuration attaches to |
igxlDebug.csprojExcludeGlob |
**/{bin,obj,node_modules,.git}/** |
Projects to skip when patching |
Troubleshooting
A command shows "IG-XL VSCode requires C# Dev Kit…" instead of running. One of the required extensions is missing or disabled. Choose Install, or install/enable it from the Extensions view and run the setup command again. If an install fails, the error is listed in the IG-XL VSCode output channel.
Breakpoints show as unbound. The loaded assembly was built before the change. Rebuild in
Debug and confirm a .pdb sits next to the .dll.
Attach fails with an access error. Confirm the target process is running and that the image name matches the configured value.
No process matched. Excel or the run host was not running when you pressed F5, or the image
name differs from the configured value.

