vscode-csharp icon indicating copy to clipboard operation
vscode-csharp copied to clipboard

Disabling implicit evaluation of properties and functions during debugging

Open anuchandy opened this issue 6 years ago • 3 comments

Do we've equivalent to visual studio option Debugging > General > Enable property evaluation and other implicit function calls? I'm looking for a way to disable implicit evaluation of properties and functions.

Visual studio doc for this is here: https://docs.microsoft.com/en-us/visualstudio/debugger/error-evaluating-the-function-process-exited?view=vs-2019#solution-2-disable-all-implicit-evaluation

anuchandy avatar Jul 13 '19 18:07 anuchandy

Unfortunately, no, we don't have an option to set this in VS Code. Though we definitely should.

gregg-miskelly avatar Jul 15 '19 18:07 gregg-miskelly

Implementation note: the fix for this is to set DkmEvaluationFlags::NoFuncEval

gregg-miskelly avatar Jul 15 '19 18:07 gregg-miskelly

In the next version of the C# extension, this can be controlled using the following in launch.json, or the identically named VS Code user preference.

    "expressionEvaluationOptions":{
        "allowImplicitFuncEval": false
    }

gregg-miskelly avatar May 07 '24 16:05 gregg-miskelly