Skip to content
This repository has been archived by the owner on Aug 2, 2023. It is now read-only.

variable not updating in debug pane when using debug console #1356

Closed
DonJayamanne opened this issue Apr 15, 2019 · 6 comments
Closed

variable not updating in debug pane when using debug console #1356

DonJayamanne opened this issue Apr 15, 2019 · 6 comments

Comments

@DonJayamanne
Copy link
Contributor

@asaflotz commented on Sun Apr 14 2019

Environment data

  • VS Code version: 1.33.3
  • Extension version (available under the Extensions sidebar): 2019.3.6558
  • OS and version: linux ubuntu 16.04
  • Python version (& distribution if applicable, e.g. Anaconda): python 3.6
  • Type of virtual environment used (N/A | venv | virtualenv | conda | ...): venv
  • Relevant/affected Python packages and their versions: all

Expected behavior

in debug mode on breakpoint, when changing a var in debug console- automatically show change in watch and variable

Actual behavior

no change is shown until at least one step in code is made.

Steps to reproduce:

  1. breakpoint on line after 'a=1'
  2. change in debug console a=8
  3. see no change in vars and watches
@karthiknadig
Copy link
Member

@DonJayamanne We don't get a new variables or evaluate request after executing debug console request. The DAP protocol does not provide a way to tell the IDE that there is a change in variables state and that it needs to issue a new variables request.

@DonJayamanne
Copy link
Contributor Author

@karthiknadig
Please can you check upstream VSC issues to see whether there's a solution for this:
microsoft/vscode#2399
microsoft/vscode#15520
microsoft/vscode#8118
microsoft/vscode#2399

Looks like they fixed this in VSC, if the problem still persists, please report on VSC.

Re-opening as this is deemed to be working for other debuggers (node), and not for Python. Hence we still need to look into this - as its a bug (could be an upstream issue though).

@DonJayamanne DonJayamanne reopened this Jun 12, 2019
@YoniChechik
Copy link

Thanks for the reopening- it can be very useful for data-science with python!

@karthiknadig
Copy link
Member

Created an issue on VSCode microsoft/vscode#75359 . I will keep this open, and see what they say about this issue.

@YoniChechik
Copy link

YoniChechik commented Jun 20, 2019

@karthiknadig this issue is now fixed. please update about what you think

@karthiknadig
Copy link
Member

@YoniChechik @DonJayamanne I verified the fix in the Insiders build of VSCode.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants