CppPilot

CppPilot feature Visual Studio C++

Explain crashes and dumps with AI

When your program crashes under the debugger, or when a user sends you a crash dump, CppPilot reads what the debugger sees and asks the selected AI for a likely cause, supporting evidence, and a proposed correction.

VideoFilmed in Visual Studio with a demo project. English narration, with subtitles in English, French, German, Italian and Spanish.
Transcript

A C++ crash explained by CppPilot under the Visual Studio debugger, then fixed. Loyalty adds points to customers found by name.

Press F5 to debug it. The program breaks on an access violation in AddPoints.

CppPilot offers an analysis in a notification that does not interrupt you. Click Analyze crash.

CppPilot reads the call stack, the arguments, and the local variables, and asks the AI for the likely cause. The cause: FindCustomer found no customer named Grace and returned nullptr, which AddPoints dereferenced.

The analysis shows the evidence, and changes nothing. To apply the proposed correction, click Fix crash.

The AI makes the smallest correction: AddPoints checks the pointer before using it. Stop debugging and run it again: the program ends normally.

CppPilot explains and fixes C++ build errors in Visual Studio.

How it worksUse debugger evidence to investigate a crash
  1. CaptureLive break or crash dump
  2. InspectStack, arguments, locals
  3. ExplainEvidence + likely cause
  4. DecideRequest a fix if needed

The AI receives a bounded debugger snapshot and proposes a likely cause. You decide whether to request a correction.

When the debugger breaks

When Visual Studio breaks on a native exception, an assertion, or a debug break, CppPilot offers an analysis in a notification that does not interrupt you. It captures a bounded snapshot of the active location, the call stack, the arguments, and the local variables, and asks the AI to explain the likely cause. You can turn these notifications off.

Evidence from the paused program

Exception: access violation on readLocation: ReadValue, line 2Argument: value = nullptrCaller: LoadSetting

Source under investigation

int ReadValue(int* value) {    return *value;}
ExampleThe bounded debugger snapshot gives the AI evidence for a likely cause. Review the caller before deciding how a missing value should be handled.
CppPilot crash analysis of a dump: a null-pointer dereference in ComputeTotal, with the evidence and a minimal fix
CppPilot crash analysis of a dump: a null-pointer dereference in ComputeTotal, with the evidence and a minimal fix

From a crash dump

Choose Extensions > CppPilot > Analyze Crash Dump..., pick the .dmp file and the folders that contain the program's .pdb files. CppPilot opens the dump in the native debugger with these symbols and explains the crash from the recorded state. Your symbol path is restored afterwards, and the symbol folders are remembered. New to dumps? See how to create and analyze a crash dump.

How it worksAnalyze a dump with its symbols
  1. Choose.dmp file
  2. LocateMatching .pdb folders
  3. AnalyzeRecorded stack + variables

CppPilot opens the dump in Visual Studio's native debugger and restores the previous symbol path when debugging stops.

Read-only until you decide

The analysis changes nothing. If you want the proposed correction, apply it, and approve each file change as usual.

Using CppPilot in Visual Studio

CppPilot connects your own Codex or Claude account to Visual Studio. If you have neither, CppPilot Cloud provides AI access for build fixes, reviews, crash analysis, and project checks. AI chat requires your own Codex or Claude account.

Setup instructions · Visual Studio Marketplace