Skip to content

Python Debugger - using python in interactive mode via PYTHONINSPECT #5497

Closed

Description

Issue Type: Bug

It looks like the VS Code does not correctly handle the PYTHONINSPECT environment variable (equivalent of doing python.exe -i)

testing.py

a = 2

launch.json

    {
        "name": "vtest",
        "type": "python",
        "request": "launch",
        "program": "${file}",
        "console": "integratedTerminal",
        "env": {
            "PYTHONINSPECT": "equivalent of python.exe -i"
        },
        "cwd": "${workspaceRoot}",
    }

Using that debugger to debug testing.py, you'll see that the interactive mode launches. If you type 1+1 in that REPL you get 2 back. But if you type 'a' to get 2, you get a stdin error like below:
image

Extension version: 2019.4.11987
VS Code version: Code 1.33.1 (51b0b28134d51361cf996d2f0a1c698247aeabd8, 2019-04-11T08:27:14.102Z)
OS version: Windows_NT x64 10.0.17763

System Info
Item Value
CPUs Intel(R) Core(TM) i7-7500U CPU @ 2.70GHz (4 x 2904)
GPU Status 2d_canvas: enabled
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
Memory (System) 15.90GB (7.06GB free)
Process Argv
Screen Reader no
VM 0%

Activity

  1. ghost added
    triage-neededNeeds assignment to the proper sub-team
    on Apr 26, 2019
  2. DonJayamanne commented on Apr 29, 2019

    @DonJayamanne

    Thanks but we're closing as this, as it's not something we plan on supporting.
    Please use the debugger to view/analyze the variables in the current session.

  3. ghost removed
    triage-neededNeeds assignment to the proper sub-team
    on Apr 29, 2019
  4. locked as resolved and limited conversation to collaborators on May 28, 2019
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

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions