set_variable
Set a variable's value in the current scope while debugging a .NET application. Requires the program to be stopped and a variables_reference from get_scopes or get_variables.
Instructions
Set a variable's value during debugging.
State: STOPPED required.
Modifies a variable in the current scope. The program must be stopped. Use get_variables first to find the variables_reference for the scope.
Args: variables_reference: Reference from get_scopes or get_variables name: Variable name to modify value: New value as a string expression
Escape hatch: see the dap-escape-hatch prompt for unwrapped DAP requests.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| value | Yes | ||
| variables_reference | Yes |