Skip to content

'Copy Value' from Variables debugger window not working #1398

Closed

Description

@goonode

Environment data

  • 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:

  1. Press F5 to start debugging session
  2. Go to VARIABLES panel and rigth click to show contextual menu on a variable
  3. select Copy Value

Logs

No relevant logs appear

vars-context

Activity

  1. DonJayamanne commented on Apr 14, 2018

    @DonJayamanne

    Please could you try this with the experimental debugger.
    Just change the type setting from python to pythonExperimental in your launch.json

  2. goonode commented on Apr 14, 2018

    @goonode
    Author

    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

    Add to Watch still do nothing.

  3. changed the title [-]Contextual menu in debug VARIABLES panel doesn't work [/-] [+]'Copy Value' from Variables debugger window not working[/+] on May 7, 2018
  4. brettcannon commented on May 7, 2018

    @brettcannon
    Member

    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.

  5. valVk commented on Jun 12, 2018

    @valVk

    The same issue with PHP Xdebug.
    Ubuntu 16.04

    screenshot from 2018-06-12 15-23-43

  6. Eynorey commented on Jun 26, 2018

    @Eynorey

    Same thing with Golang and the delve debugger, it's all greyed-out

  7. karamqubsi commented on Jun 27, 2018

    @karamqubsi

    Same for PHP with xdebug on macos 10.12.6

  8. DonJayamanne commented on Jul 2, 2018

    @DonJayamanne

    Up stream issue microsoft/ptvsd#559

  9. DonJayamanne commented on Aug 3, 2018

    @DonJayamanne

    This has been resolved.

  10. DonJayamanne commented on Aug 5, 2018

    @DonJayamanne
  11. locked as resolved and limited conversation to collaborators on Sep 2, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    area-debuggingbugIssue identified by VS Code Team member as probable bug

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions