You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: package.json
+6-6Lines changed: 6 additions & 6 deletions
Original file line number
Diff line number
Diff line change
@@ -2,7 +2,7 @@
2
2
"publisher": "dkattan",
3
3
"name": "copilot-breakpoint-debugger",
4
4
"displayName": "Copilot Breakpoint Debugger",
5
-
"version": "0.0.40",
5
+
"version": "0.0.41",
6
6
"_versionComment": "Version is auto-generated by the CI auto-release workflow. Manual edits are overwritten.",
7
7
"description": "Use GitHub Copilot to automate starting, inspecting and resuming VS Code debug sessions with conditional breakpoints, exact numeric hit counts (hitCount), logpoints, and capture actions that interpolate variables inside log messages.",
8
8
"license": "MIT",
@@ -465,18 +465,18 @@
465
465
"displayName": "Stop Debug Session",
466
466
"toolReferenceName": "stopDebugSession",
467
467
"canBeReferencedInPrompt": true,
468
-
"userDescription": "Terminate one or more debug sessions matching a name (exit option).",
469
-
"modelDescription": "Stop (terminate) all active debug sessions whose name matches the provided sessionName.",
468
+
"userDescription": "Terminate one or more debug sessions by id (aligns with resumeDebugSession).",
469
+
"modelDescription": "Stop (terminate) all active debug sessions whose id matches the provided sessionId.",
470
470
"inputSchema": {
471
471
"type": "object",
472
472
"properties": {
473
-
"sessionName": {
473
+
"sessionId": {
474
474
"type": "string",
475
-
"description": "Name of the debug session to stop."
return`Debugger State: paused on '${sessionLabel}' (id=${sessionId}). Available tools: resumeDebugSession, getVariables, expandVariable, evaluateExpression, stopDebugSession. Example: resumeDebugSession with debugSessionId='${sessionId}'.`;
250
+
return[
251
+
`Debugger State: paused on '${sessionLabel}' (id=${sessionId}).`,
252
+
`Available tools: ${availableTools}.`,
253
+
`Recommended tool: resumeDebugSession with sessionId='${sessionId}'.`,
254
+
].join("\r\n");
250
255
case"terminated":
251
-
return"Debugger State: terminated. Available tool: startDebugSessionWithBreakpoints to begin a new session.";
256
+
return[
257
+
"Debugger State: terminated.",
258
+
"Available tool: startDebugSessionWithBreakpoints to begin a new session.",
259
+
"Recommended tool: startDebugSessionWithBreakpoints to create a new session.",
260
+
].join("\r\n");
252
261
case"running":
253
-
return`Debugger State: running. (onHit 'captureAndContinue' continued session '${sessionLabel}'). Available tool: resumeDebugSession with new breakpoints.`;
262
+
return[
263
+
`Debugger State: running. (onHit 'captureAndContinue' continued session '${sessionLabel}').`,
264
+
`Available tools: ${availableTools}.`,
265
+
`Recommended tool: resumeDebugSession with sessionId='${sessionId}' to add breakpoints and continue.`,
266
+
].join("\r\n");
254
267
}
255
268
})();
256
269
@@ -265,25 +278,25 @@ export class StartDebuggerTool
265
278
!hasConfiguredOnHit
266
279
){
267
280
guidance.push(
268
-
"Tip: No onHit behavior was set; consider onHit 'captureAndContinue' to keep the session alive and still collect data."
281
+
"No onHit behavior was set; consider onHit 'captureAndContinue' to keep the session alive and still collect data."
269
282
);
270
283
}
271
284
272
285
if(!multipleBreakpoints){
273
286
guidance.push(
274
-
"Tip: You can supply multiple breakpoints, each with its own onHit (e.g., trace with captureAndContinue, then stopDebugging at a later line)."
287
+
"You can supply multiple breakpoints, each with its own onHit (e.g., trace with captureAndContinue, then stopDebugging at a later line)."
0 commit comments