You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
'Copy Value' from Variables debugger window not working #1398
VS Code version: code-insider-1.23.0-1523596516_amd64
Extension version (available under the Extensions sidebar): 2018.3.1 (29 Mar 2018)
OS and version: Ubuntu 18.04
Python version (& distribution if applicable, e.g. Anaconda): 2.7
Type of virtual environment used (N/A | venv | virtualenv | conda | ...): virtualenv
Relevant/affected Python packages and their versions: N/A
Actual behavior
When in debug mode i open contextual menu to Copy value from variable and this does not work.
Also Copy from expression and Add to Watch do not work.
Also the Debug Console stop working after i select Copy Value item.
Steps to reproduce:
Press F5 to start debugging session
Go to VARIABLES panel and rigth click to show contextual menu on a variable
Well changing to pythonExperimental gives me some feedbacks when i select Copy Value on any var:
DEBUG CONSOLE
pydev debugger: New process is launching (breakpoints won't work in the new process).
pydev debugger: To debug that process please enable 'Attach to subprocess automatically while debugging?' option in the debugger settings.
(i cannot find that option to enable)
Python Debug Console:
Traceback (most recent call last):
File "/home/gn/.vscode-insiders/extensions/ms-python.python-2018.3.1/pythonFiles/experimental/ptvsd/ptvsd/wrapper.py", line 759, in done
fut.result()
File "/home/gn/.vscode-insiders/extensions/ms-python.python-2018.3.1/pythonFiles/experimental/ptvsd/ptvsd/futures.py", line 44, in result
reraise(self._exc_info)
File "/home/gn/.vscode-insiders/extensions/ms-python.python-2018.3.1/pythonFiles/experimental/ptvsd/ptvsd/futures.py", line 153, in callback
x = next(it)
File "/home/gn/.vscode-insiders/extensions/ms-python.python-2018.3.1/pythonFiles/experimental/ptvsd/ptvsd/wrapper.py", line 1216, in on_evaluate
expr = args['expression'].replace('\t', ' ')
KeyError: 'expression'
Still debug console stop working after that errors.
print()
Please start a debug session to evaluate
When i select Copy as Expression i have i lot of errors in developer console as you can see in the attached file. console_copyasexpr.log
changed the title [-]Contextual menu in debug VARIABLES panel doesn't work [/-][+]'Copy Value' from Variables debugger window not working[/+]on May 7, 2018
Activity
DonJayamanne commentedon Apr 14, 2018
Please could you try this with the experimental debugger.
Just change the
typesetting frompythontopythonExperimentalin yourlaunch.jsongoonode commentedon Apr 14, 2018
Well changing to pythonExperimental gives me some feedbacks when i select Copy Value on any var:
DEBUG CONSOLE
pydev debugger: New process is launching (breakpoints won't work in the new process).
pydev debugger: To debug that process please enable 'Attach to subprocess automatically while debugging?' option in the debugger settings.
(i cannot find that option to enable)
Python Debug Console:
Still debug console stop working after that errors.
print() Please start a debug session to evaluateWhen i select Copy as Expression i have i lot of errors in developer console as you can see in the attached file.
console_copyasexpr.log
Add to Watch still do nothing.
[-]Contextual menu in debug VARIABLES panel doesn't work [/-][+]'Copy Value' from Variables debugger window not working[/+]brettcannon commentedon May 7, 2018
I can verify it doesn't work on Windows 10, but that's because the menu option is greyed out. Either way there's definitely an issue.
valVk commentedon Jun 12, 2018
The same issue with PHP Xdebug.
Ubuntu 16.04
Eynorey commentedon Jun 26, 2018
Same thing with Golang and the delve debugger, it's all greyed-out
karamqubsi commentedon Jun 27, 2018
Same for PHP with xdebug on macos 10.12.6
DonJayamanne commentedon Jul 2, 2018
Up stream issue microsoft/ptvsd#559
DonJayamanne commentedon Aug 3, 2018
This has been resolved.
Add news entry for resolution of #1398 (#2328)
DonJayamanne commentedon Aug 5, 2018
Oops, thanks Brett Cannon (@brettcannon)