Forge
csharp4405de34
1namespace CascadeIDE.Services;
2
3/// <summary>Встроенный отладчик DAP / netcoredbg (partial <see cref="IdeCommands"/>).</summary>
4public static partial class IdeCommands
5{
6 // ——— DAP / netcoredbg (паритет с dotnet-debug-mcp)
7 /// <summary>Проверка доступности встроенной отладки. returns: text.</summary>
8 public const string DebugPing = "debug_ping";
9 /// <summary>Запустить отладку (netcoredbg DAP). args: workspace_path?:string, target_path?:string, profile_name?:string, netcoredbg_path?:string, program_args?:string[] . returns: text; example: {"workspace_path":"D:\\\\proj","target_path":"samples\\\\DebugTarget\\\\bin\\\\Debug\\\\net10.0\\\\DebugTarget.dll"}.</summary>
10 public const string DebugLaunch = "debug_launch";
11 /// <summary>Подключиться к процессу по PID. args: workspace_path:string, process_id:integer, target_path?:string, netcoredbg_path?:string; returns: text; example: {"workspace_path":"D:\\\\proj","process_id":12345}.</summary>
12 public const string DebugAttach = "debug_attach";
13 /// <summary>Продолжить выполнение (DAP continue). returns: text.</summary>
14 public const string DebugContinue = "debug_continue";
15 /// <summary>Шаг через строку (DAP next). returns: text.</summary>
16 public const string DebugStepOver = "debug_step_over";
17 /// <summary>Шаг с заходом (DAP stepIn). returns: text.</summary>
18 public const string DebugStepInto = "debug_step_into";
19 /// <summary>Шаг с выходом (DAP stepOut). returns: text.</summary>
20 public const string DebugStepOut = "debug_step_out";
21 /// <summary>Завершить сессию отладки (dispose DAP). returns: text.</summary>
22 public const string DebugStop = "debug_stop";
23 /// <summary>Один снимок после stopped: meta + stack + variables (Core DapStopContext). args: frame_index?:integer, fast?:boolean, max_depth?:integer, max_children_per_node?:integer, time_budget_ms?:integer, format?:string, json_indented?:boolean; returns: text; example: {"frame_index":0,"fast":true}.</summary>
24 public const string DebugStopContext = "debug_stop_context";
25 /// <summary>Стек вызовов (DAP stackTrace). returns: text.</summary>
26 public const string DebugStackTrace = "debug_stack_trace";
27 /// <summary>Переменные кадра. args: frame_index?:integer; returns: text; example: {"frame_index":0}.</summary>
28 public const string DebugVariables = "debug_variables";
29 /// <summary>JSON: канонический снимок встроенной DAP-сессии (ADR 0002). returns: json.</summary>
30 public const string GetDebugSnapshot = "get_debug_snapshot";
31}
32
View only · write via MCP/CIDE