I work on the Python extension and I have investigated the issue. Variables request does not called after executing code in debug console via the context menu item. Running to code in directly using the debug consle input correctly updates it.
D00017.218: IDE --> {
"command": "evaluate",
"arguments": {
"expression": "a = 10",
"frameId": 2,
"context": "repl"
},
"type": "request",
"seq": 17
}
D00017.234: (while handling {'command': 'evaluate', 'type': 'request', 'seq': 17})
IDE <-- {
"type": "response",
"seq": 22,
"request_seq": 17,
"success": true,
"command": "evaluate",
"message": "",
"body": {
"result": "",
"variablesReference": 0,
"presentationHint": {}
}
}
// Scope or variables request should have occurred here
D00027.453: IDE --> {
"command": "completions",
"arguments": {
"frameId": 2,
"text": "b",
"column": 2,
"line": 1
},
"type": "request",
"seq": 18
}
D00030.640: IDE --> {
"command": "evaluate",
"arguments": {
"expression": "b=5",
"frameId": 2,
"context": "repl"
},
"type": "request",
"seq": 19
}
D00030.640: IDE --> {
"command": "scopes",
"arguments": {
"frameId": 2
},
"type": "request",
"seq": 20
}
D00030.640: (while handling {'command': 'scopes', 'type': 'request', 'seq': 20})
IDE <-- {
"type": "response",
"seq": 24,
"request_seq": 20,
"success": true,
"command": "scopes",
"message": "",
"body": {
"scopes": [
{
"name": "Locals",
"variablesReference": 2,
"expensive": false,
"source": {}
}
]
}
}
D00030.640: IDE --> {
"command": "variables",
"arguments": {
"variablesReference": 2
},
"type": "request",
"seq": 21
}
D00030.640: (while handling {'command': 'evaluate', 'type': 'request', 'seq': 19})
IDE <-- {
"type": "response",
"seq": 25,
"request_seq": 19,
"success": true,
"command": "evaluate",
"message": "",
"body": {
"result": "",
"variablesReference": 0,
"presentationHint": {}
}
}
D00030.640: (while handling {'command': 'variables', 'type': 'request', 'seq': 21})
IDE <-- {
"type": "response",
"seq": 26,
"request_seq": 21,
"success": true,
"command": "variables",
"message": "",
"body": {
"variables": [
{
"name": "a",
"value": "10",
"type": "int",
"evaluateName": "a",
"variablesReference": 0
},
{
"name": "b",
"value": "5",
"type": "int",
"evaluateName": "b",
"variablesReference": 0
}
]
}
}
Issue Type: Bug
VS Code version: Code 1.36.1 (2213894, 2019-07-08T22:59:35.033Z)
OS version: Windows_NT x64 10.0.18362
System Info
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: enabled
skia_deferred_display_list: disabled_off
skia_renderer: disabled_off
surface_synchronization: enabled_on
video_decode: enabled
viz_display_compositor: disabled_off
webgl: enabled
webgl2: enabled
Extensions (14)
I work on the Python extension and I have investigated the issue. Variables request does not called after executing code in debug console via the context menu item. Running to code in directly using the debug consle input correctly updates it.
Evaluate using "Debug: Evaluate" via context menu:
Evaluate using debug console input: