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.
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.
- CaptureLive break or crash dump
- InspectStack, arguments, locals
- ExplainEvidence + likely cause
- 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: LoadSettingSource under investigation
int ReadValue(int* value) { return *value;}
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.
- Choose.dmp file
- LocateMatching .pdb folders
- 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.