CppPilot feature Visual Studio C++
Debug with the AI
CppPilot connects either Codex or Claude to the Visual Studio debugger using your own account. While your program is paused, the AI can inspect its state and request breakpoints or stepping, with your approval. This workflow uses AI chat, which is not included in CppPilot Cloud Free or Pro.
- PauseChoose a relevant frame
- AskInspect a value or stack
- ApproveBreakpoint or step request
- InspectRead the next stopped state
With your own Codex or Claude account, inspect a paused frame, approve a requested debugger action, then examine the new state.
Read values while paused
The AI evaluates a variable, a member, an array element, or a comparison in the current frame or a caller's, with its members. Expressions that could change the program, such as assignments or function calls, are refused.
Example paused frame
Frame: ProcessItemsindex = 4items.size() = 4// Next instruction accesses items[index].Question in AI Chat
Why is index equal to items.size()?Check the loop bound and the caller's arguments.Do not change code yet.Breakpoints and stepping, with your approval
The AI lists the breakpoints and sets or removes one, with an optional condition. It continues, steps over, into, or out of a function, or breaks into the running program, then sees where it stopped. Each of these actions waits for your approval, and the AI never starts or stops debugging.
- RequestStep over the next statement
- ApproveReview the action in Visual Studio
- ObserveNew location and values
The AI requests an action and waits for the approval handled by CppPilot before stepping or changing a breakpoint.
Threads and modules
For hangs and deadlocks, the AI reads the threads of the paused program with their call stacks. When a breakpoint is not hit, it reads the loaded modules and whether their symbols are loaded.
Your code as Visual Studio sees it
The AI also reads the outline of a file, its classes, functions, and variables with their lines, and finds the file an
#include names as the compiler would for the project and configuration. It reads open documents as the editor
shows them, unsaved changes included.
How to use it
Debugging with the AI works in Extensions > CppPilot > AI Chat... with your own Codex or Claude account: pause your program, then ask, for example, why a value is wrong or which thread holds a lock. The tools come from CppPilot's integrated MCP server, which is configured by the extension.
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.