-
Notifications
You must be signed in to change notification settings - Fork 5
Closed
Labels
improveImprovement of existing features.Improvement of existing features.
Description
Whenever the variable list is retrieved, the extension sends something like the following:
feature_get -n max_depth
feature_set -n max_depth -v 1
context_get -c 1 -d 0
feature_set -n max_depth -v 1
Three of these commands are unnecessary, because the first command sent upon connection (at least with "attach") was:
feature_set -n max_depth -v 1
max_depth and other variables that can be set by feature_set only apply to the debugger. They are changed from their default values only when the client sends feature_set, and there can only be one client at a time.
Therefore, once you set max_depth to 1, you know for certain that it has that value until you set it to something else. There is no need to query it, or to set it to the value it already has.
These extra commands add a small amount of latency, and add noise that makes debugging the debugger itself more difficult.
Metadata
Metadata
Assignees
Labels
improveImprovement of existing features.Improvement of existing features.