惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园 - 聂微东
GbyAI
GbyAI
S
SegmentFault 最新的问题
H
Hackread – Cybersecurity News, Data Breaches, AI and More
V
Visual Studio Blog
WordPress大学
WordPress大学
Hugging Face - Blog
Hugging Face - Blog
B
Blog
宝玉的分享
宝玉的分享
Last Week in AI
Last Week in AI
雷峰网
雷峰网
爱范儿
爱范儿
Vercel News
Vercel News
人人都是产品经理
人人都是产品经理
U
Unit 42
Microsoft Azure Blog
Microsoft Azure Blog
Microsoft Security Blog
Microsoft Security Blog
Jina AI
Jina AI
P
Proofpoint News Feed
A
About on SuperTechFans
I
InfoQ
F
Fortinet All Blogs
L
LangChain Blog
T
Tailwind CSS Blog

Visual Studio Blog

Today I will... find hidden latency across a distributed .NET application - Visual Studio Blog Stop alt-tabbing into the wrong Visual Studio - Visual Studio Blog Today I will... review GitHub PRs - Visual Studio Blog VSLive! @ Microsoft HQ: Developer Takeaways and Must-Watch Sessions - Visual Studio Blog Visual Studio August Update — Work Smarter Across Models and Branches - Visual Studio Blog Unlocking the Power of AI for Every Developer in Visual Studio with Bring your Own Model - Visual Studio Blog Today I will... Modernize a .NET application - Visual Studio Blog Today I will... manage Git Submodules without leaving the IDE - Visual Studio Blog Build Azure Skills Faster with Cloud Academy, a Visual Studio Subscriber Benefit - Visual Studio Blog Tell your model when to think harder  - Visual Studio Blog Visual Studio July Update — Meet the New Agent, Powered by the GitHub Copilot SDK - Visual Studio Blog Visual Studio Administrator? Join our Private Marketplace Preview! - Visual Studio Blog Pick, manage, and get the most from your models - Visual Studio Blog Built-in Agent Skills Bring .NET and Azure Expertise into Visual Studio - Visual Studio Blog The Visual Studio Dev/Test Benefit: Freedom to Build, Test, and Experiment in Azure - Visual Studio Blog Visual Studio June Update - Track Your Usage, Trust Your Tools - Visual Studio Blog Automating your Visual Studio extension builds with GitHub Actions - Visual Studio Blog Make Visual Studio look the way you want - Visual Studio Blog Review pull requests without leaving Visual Studio What’s Coming Next in Visual Studio: Our Microsoft Build 2026 Announcements Visual Studio May Update – Plan, Review, Refine Plan Before You Build: Introducing the Plan agent in Visual Studio VSLive! Microsoft AI Hackathon 2026: Send Your Team Home With Working Code Agent Skills in Visual Studio: Teach Copilot How Your Team Works TypeScript 7 Beta Now Enabled by Default in Visual Studio 2026 18.6 Insiders 3 SDK-Style Support for Extension Projects Visual Studio April Update – Cloud Agent Integration - Visual Studio Blog From AI to .NET: 20 VS Live! Las Vegas Sessions You Can Watch Now - Visual Studio Blog Azure MCP tools now ship built into Visual Studio 2022 — no extension required Stop Hunting Bugs: Meet the New Visual Studio Debugger Agent Workflow
The Visual Studio Debugger Agentic Workflow Gets a Test-D...
Harshada Hole · 2026-08-27 · via Visual Studio Blog

A few months ago, we introduced a new guided agentic workflow in the Visual Studio Debugger Agent designed to help you move from a bug report to a verified fix without spending your morning guessing where to begin.  

If you missed that announcement, check out  Stop Hunting Bugs: Meet the New Visual Studio Debugger Agent to see how the Agent builds a hypothesis, guides the debugger, investigates your application at runtime, and validates the final change. 

Today, we’re building on that experience with a new Test-Driven Investigation workflow. The Debugger Agent can now create or identify a focused test, debug through it to investigate the root cause, and rerun it to validate the fix. It’s especially useful for the bug reports we all know too well: an exception, a stack trace, or a note that something “sometimes fails,” with no dependable way to reproduce it manually. 

The Visual Studio Debugger Agentic Workflow Gets a Test-Driven Upgrade

Building on the Guided Debugger Loop 

Live debugging remains a great fit when a problem can be reproduced reliably. When it can’t, Test-Driven Investigation gives the Debugger Agent another way in:  capture the failure in an automated test and make it repeatable. 

Start with a GitHub issue, Azure DevOps work item, or a simple issue description. (See example prompts ) The Agent reviews the available context, asks for missing details, and recommends the best investigation path. 

Choosing the Right Path for the Problem 

When reliable reproduction steps are available, the Debugger Agent can help you choose the approach that best fits the scenario: 

  • Live Debugging: Launch the application, reproduce the issue interactively, and inspect the live runtime state. 
  • Test-Driven Investigation: Create or identify a test that reproduces the behavior, then use that test to drive the investigation and validate the fix. (Existing Test infrastructure is needed) 

If the issue doesn’t include usable reproduction steps, the Agent first looks for a practical way to derive them from the description, diagnostics, and code context. If it can’t establish a dependable manual repro and finds supported test infrastructure, it automatically starts the Test-Driven Investigation workflow and generates or identifies a focused test.  

A Failing Test Becomes the Investigation 

Once a test captures the problem, the Debugger Agent doesn’t simply generate code and hope for the best. It debugs through the test, using breakpoints and runtime information to understand why the behavior occurs. 

The workflow can help you: 

  • Reproduce the issue consistently. The same failing test can be run throughout the investigation. 
  • Inspect what the code is actually doing. The Agent evaluates variables, call stacks, and runtime state while the test executes. 
  • Test the hypothesis. Potential causes can be confirmed or ruled out using evidence from the debugging session. 
  • Validate the resolution. After you approve the proposed change, the Agent reruns the test to confirm that it passes. 
  • Check for regressions. When appropriate, related tests can also be run to make sure the fix hasn’t disrupted existing behavior. 

This creates a useful debugging loop: reproduce, investigate, fix, and verify. Instead of relying on a one-time manual check, you finish with an automated test that documents the expected behavior and can continue protecting it in the future. 

You’re Still Driving 

You stay in control throughout the workflow. Review or modify the test, steer the investigation, and approve the fix helping ensure the test reflects the real customer problem. 

Try It and Let Us Know What You Think! 

Try Test-Driven Investigation with your next hard-to-reproduce bug. We’d love to hear how it fits into your debugging workflow and what you’d like to see next. 

Stay connected with the Visual Studio team by following @VS_Debugger, @VisualStudio, YouTube, and LinkedIn. 

Category

Topics

Author

Harshada Hole

Harshada Hole is a Product Manager on the Visual Studio Debugging, Diagnostics, and Copilot team.