Vsintegration Ide Debugging
Testing & Qualityvsintegration-ide-debuggingVsintegration Ide Debugging is an Agent Skill for testing & quality published in the dotnet/dotnet repository on GitHub: a SKILL.md instruction file an AI agent can load to do this task.
Fix F# debugging issues (breakpoints, .pdb, sequence points). Build, run VS integration tests, inspect IL/PDB.
QUICK START
How to use this skill
Bring this guide into your coding agent with a prompt tailored to the tool you use.
- Open your project in Codex.
- Copy and paste the prompt below.
- Review files and risks before approving any action.
Prompt to paste
Inspect the Agent Skill at https://github.com/dotnet/dotnet/blob/HEAD/src/fsharp/.github/skills/vsintegration-ide-debugging/SKILL.md and all supporting files. Report provenance, permissions, scripts, dependencies, and security risks. Propose an exact installation into .agents/skills/vsintegration-ide-debugging, but wait for my approval before writing files or running scripts.
Copying this prompt does not install or run the skill. Review third-party files before use.
VS Integration Debugging
Build
.\Build.cmd -c Debug
Run tests
xUnit2 VS Extensibility — not dotnet test.
$runner = (Get-ChildItem "$env:NUGET_PACKAGES\xunit.runner.console" -Recurse -Filter xunit.console.exe | Where-Object { $_.FullName -like '*net472*' } | Select-Object -First 1).FullName
& $runner artifacts\bin\FSharp.Editor.IntegrationTests\Debug\net472\FSharp.Editor.IntegrationTests.exe -parallel none -nologo
Key paths
- Tests + infra:
vsintegration/tests/FSharp.Editor.IntegrationTests/ - Sequence point emit:
src/Compiler/CodeGen/IlxGen.fs→EmitDebugPoint,EnsureNopBetweenDebugPoints - PDB writer:
src/Compiler/AbstractIL/ilwritepdb.fs - Collection lowering:
src/Compiler/Optimize/LowerComputedCollections.fs - Local compiler setup:
UseLocalCompiler.Directory.Build.props
Core rule
VS debugger binds breakpoints only at stack-empty IL offsets. Move the sequence point — never add runtime instructions.