microsoft / vscode-apimanagement

VS Code extension for Azure API Management.
MIT License
60 stars 40 forks source link

Expanding context variables when debugging is not reliable #246

Open andredewes opened 2 years ago

andredewes commented 2 years ago

The variable policy debugging experience in VSCode seems to get stuck in some collections, especially when trying to iterate through Dictionaries:

context

When we expand for example context.Request.Url.Query.Item, it gets stuck forever and the debugging session crashes. Reproducing that issue is straightforward... just start debugging any policy, go to Run & Debug menu in VSCode and try to expand the variable above.

hughknaus commented 2 years ago

I have the same issue and until recently (like within the last week) the same thing was happening for context.Variables. It would completely hang the debugging session, forcing you to restart debugging. However, today context.Request.Url.Query.Items still behaves the same but context.Variables I'm now seeing an exception and the Watch feature doesn't seem to work for anything:

image