Skip to content

remote debug error #198

@DonJayamanne

Description

@DonJayamanne

From @naeco2005 on October 9, 2017 8:2

when i remote debug a python script with VS code, i always see the below error:

TypeError, __init__() missing 2 required positional arguments: 'old_out' and 'is_stdout'
Traceback (most recent call last):
  File "<string>", line 1, in <module>
TypeError: __init__() missing 2 required positional arguments: 'old_out' and 'is_stdout'
Error in sys.excepthook:
Traceback (most recent call last):
  File "D:\Neutron\main\src\Lib64\Debug_Build\Debug\Python\lib\site-packages\ptvsd\visualstudio_py_debugger.py", line 2288, in _excepthook
    do_wait()
  File "D:\Neutron\main\src\Lib64\Debug_Build\Debug\Python\lib\site-packages\ptvsd\visualstudio_py_debugger.py", line 2413, in do_wait
    sys.__stdout__.write('Press any key to continue . . . ')
AttributeError: 'NoneType' object has no attribute 'write'

i don't know what happens. can you tell if there is something wrong?

Thanks,
-Neil

Copied from original issue: DonJayamanne/pythonVSCode#1286

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions