microsoft / vscode-python

Python extension for Visual Studio Code
https://aka.ms/pvsc-marketplace
MIT License
4.32k stars 1.18k forks source link

Timeout waiting for debugger connection when using Windows PowerShell #2732

Closed F8F-Bearcat closed 6 years ago

F8F-Bearcat commented 6 years ago

Environment data

Actual behavior

with a simple hello world - click on debugger selection and green run debug symbol, timeout occurs waiting for debugger connection

Expected behavior

Expecting debugger to connect

Steps to reproduce:

  1. open hello.py file
  2. click on debug spider symbol on left vertical bar

Logs

Output for Python in the Output panel (ViewOutput, change the drop-down the upper-right of the Output panel to Python)

##########Linting Output - pylint##########

--------------------------------------------------------------------

Your code has been rated at 10.00/10 (previous run: 10.00/10, +0.00)

Output from Console under the Developer Tools panel (toggle Developer Tools on under Help)

 INFO no standard startup: panel is active
console.ts:136 [Extension Host] vscode-icons is active!
console.ts:136 [Extension Host] Git extension API method 'getGitPath' is deprecated.
t.log @ console.ts:136
console.ts:136 [Extension Host] Python Extension: Failed to get conda environment list from conda Error: spawn conda ENOENT
    at _errnoException (util.js:1024:11)
    at Process.ChildProcess._handle.onexit (internal/child_process.js:190:19)
    at onErrorNT (internal/child_process.js:372:16)
    at _combinedTickCallback (internal/process/next_tick.js:138:11)
    at process._tickCallback (internal/process/next_tick.js:180:9)

OK, opening the ticket, as Brett suggested was a good idea. I had no idea this was the way to get a error message to trigger off of. I searched the error and found a similar issue. There were several questions there which I will answer here.

Conda install location: C:\PyAna2

.vscode/settings.json, what is python.pythonPath value? I find no settings.json file there, extensions only

Conda env list:

(pandas36) C:\Users\Free Agent>conda env list

conda environments:

#

base C:\PyAna2 pandas36 * C:\PyAna2\envs\pandas36 pdf27 C:\PyAna2\envs\pdf27

> 
(pandas36) C:\Users\Free Agent>conda list
# packages in environment at C:\PyAna2\envs\pandas36:
#
# Name                    Version                   Build  Channel
arrow                     0.12.1                   py36_2    conda-forge
arrow-cpp                 0.9.0               py36_vc14_7  [vc14]  conda-forge
asn1crypto                0.24.0                   py36_0
astroid                   2.0.4                     <pip>
backcall                  0.1.0                    py36_0
binaryornot               0.4.4                      py_1    conda-forge
bleach                    2.1.3                    py36_0
blinker                   1.4                      py36_0
bokeh                     0.12.15                  py36_0
boost-cpp                 1.66.0                   vc14_1  [vc14]  conda-forge
ca-certificates           2018.8.24            ha4d7672_0    conda-forge
certifi                   2018.8.24                py36_0    conda-forge
cffi                      1.11.5           py36h945400d_0
chardet                   3.0.4            py36h420ce6e_1
chardet                   3.0.4                     <pip>
click                     6.7              py36hec8c647_0
cloudpickle               0.5.2                    py36_1
colorama                  0.3.9            py36h029ae33_0
cookiecutter              1.6.0                    py36_0    conda-forge
cryptography              2.2.2            py36hfa6e2cd_0
cycler                    0.10.0           py36h009560c_0
cytoolz                   0.9.0.1          py36hfa6e2cd_0
dask                      0.17.2                   py36_0
dask-core                 0.17.2                   py36_0
datashape                 0.5.4            py36h5770b85_0
decorator                 4.3.0                    py36_0
distributed               1.21.6                   py36_0
entrypoints               0.2.3            py36hfd66bb0_2
et_xmlfile                1.0.1            py36h3d2d736_0
feather-format            0.4.0               py36_vc14_2  [vc14]  conda-forge
freetype                  2.8.1                    vc14_0  [vc14]  conda-forge
future                    0.16.0                   py36_2    conda-forge
gitdb2                    2.0.3                     <pip>
GitPython                 2.1.9                     <pip>
graphviz                  2.38.0                        4    anaconda
heapdict                  1.0.0                    py36_2
html5lib                  1.0.1            py36h047fa9f_0
icc_rt                    2017.0.4             h97af966_0
icu                       58.2                     vc14_0  [vc14]  conda-forge
idna                      2.6              py36h148d497_1
idna                      2.6                       <pip>
intel-openmp              2018.0.0                      8
ipykernel                 4.8.2                    py36_0
ipython                   6.3.1                    py36_0
ipython_genutils          0.2.0            py36h3c5d0ee_0
ipywidgets                7.2.1                    py36_0
isort                     4.3.4                     <pip>
jdcal                     1.4                      py36_0
jedi                      0.12.0                   py36_1
jinja2                    2.10             py36h292fed1_0
jinja2-time               0.2.0                      py_2    conda-forge
jpeg                      9b                       vc14_2  [vc14]  conda-forge
jsonschema                2.6.0            py36h7636477_0
jupyter                   1.0.0                    py36_4
jupyter_client            5.2.3                    py36_0
jupyter_console           5.2.0            py36h6d89b47_1
jupyter_core              4.4.0            py36h56e9d50_0
jupyterthemes             0.19.1                    <pip>
kaggle                    1.3.8                     <pip>
kiwisolver                1.0.1            py36h12c3424_0
lazy-object-proxy         1.3.1                     <pip>
lesscpy                   0.13.0                    <pip>
libpng                    1.6.34                   vc14_0  [vc14]  conda-forge
libsodium                 1.0.16                   vc14_0  [vc14]  conda-forge
libtiff                   4.0.8           vc14h04e2a1e_10  [vc14]  anaconda
lifelines                 0.14.1                    <pip>
llvmlite                  0.22.0           py36ha794a7c_0
locket                    0.2.0            py36hfed976d_1
lxml                      4.2.1                     <pip>
m2w64-gcc-libgfortran     5.3.0                         6
m2w64-gcc-libs            5.3.0                         7
m2w64-gcc-libs-core       5.3.0                         7
m2w64-gmp                 6.1.0                         2
m2w64-libwinpthread-git   5.0.0.4634.697f757               2
markdown                  2.6.11                     py_0    conda-forge
markupsafe                1.0              py36h0e26971_1
matplotlib                2.2.2                    py36_1    conda-forge
mccabe                    0.6.1                     <pip>
missingno                 0.4.0                      py_0    conda-forge
mistune                   0.8.3            py36hfa6e2cd_1
mkl                       2018.0.2                      1
mkl_fft                   1.0.1            py36h452e1ab_0
mkl_random                1.0.1            py36h9258bd6_0
msgpack-python            0.5.6            py36he980bc4_0
msys2-conda-epoch         20160418                      1
multipledispatch          0.5.0                    py36_0
nbconvert                 5.3.1            py36h8dc0fde_0
nbdime                    0.4.1                     <pip>
nbformat                  4.4.0            py36h3a5bc1b_0
networkx                  2.1                      py36_0
notebook                  5.4.1                    py36_0
numba                     0.37.0          np114py36hea3a760_0
numpy                     1.14.2           py36h5c71026_1
oauthlib                  2.1.0                    py36_0
odo                       0.5.1            py36h7560279_0
olefile                   0.45.1                   py36_0
openpyxl                  2.5.3                    py36_0
openssl                   1.0.2p            hfa6e2cd_1000    conda-forge
packaging                 17.1                     py36_0
pandas                    0.22.0           py36h6538335_0
pandas-datareader         0.6.0                     <pip>
pandoc                    1.19.2.1             hb2460c7_1    anaconda
pandocfilters             1.4.2            py36h3ef6317_1
parquet-cpp               1.4.0                    vc14_0  [vc14]  conda-forge
parso                     0.2.0                    py36_0
partd                     0.3.8            py36hc8e763b_0
patsy                     0.5.0                    py36_0
pickleshare               0.7.4            py36h9de030f_0
pillow                    4.2.1            py36hdb25ab2_0    anaconda
pip                       18.0                      <pip>
pip                       9.0.3                    py36_0
plotly                    2.5.1                    py36_0
ply                       3.11                      <pip>
poyo                      0.4.1                      py_1    conda-forge
prompt_toolkit            1.0.15           py36h60b8f86_0
psutil                    5.4.5            py36hfa6e2cd_0
ptvsd                     4.1.3                     <pip>
pweave                    0.30.2                   py36_0    conda-forge
pyarrow                   0.9.0               py36_vc14_1  [vc14]  conda-forge
pycparser                 2.18             py36hd053e01_1
pygments                  2.2.0            py36hb010967_0
pyjwt                     1.6.4                    py36_0
pylint                    2.1.1                     <pip>
pyopenssl                 17.5.0           py36h5b7d817_0
pyparsing                 2.2.0            py36h785a196_1
pyqt                      5.6.0                    py36_2
pysocks                   1.6.8                    py36_0
python                    3.6.5                h0c2934d_0
python-dateutil           2.7.2                    py36_0
pytz                      2018.4                   py36_0
pywinpty                  0.5.1                    py36_0
pyyaml                    3.12             py36h1d1928f_1
pyzmq                     17.0.0           py36hfa6e2cd_1
qt                        5.6.2                    vc14_1  [vc14]  conda-forge
qtconsole                 4.3.1            py36h99a29a9_0
regex                     2018.02.21       py36hfa6e2cd_0
requests                  2.18.4                    <pip>
requests                  2.18.4           py36h4371aae_1
requests-file             1.4.3                     <pip>
requests-ftp              0.3.1                     <pip>
requests-oauthlib         0.8.0                    py36_1
scikit-learn              0.19.1           py36h53aea1b_0
scipy                     1.0.1            py36hce232c7_0
seaborn                   0.8.1            py36h9b69545_0
selenium                  3.11.0                   py36_0
send2trash                1.5.0                    py36_0
setuptools                39.0.1                   py36_0
simplegeneric             0.8.1                    py36_2
simplejson                3.15.0           py36hfa6e2cd_0
sip                       4.19.8           py36h6538335_0
six                       1.11.0           py36h4db2310_1
smmap2                    2.0.3                     <pip>
snappy                    1.1.7                    vc14_1  [vc14]  conda-forge
sortedcontainers          1.5.10                   py36_0
sqlite                    3.22.0                   vc14_0  [vc14]  conda-forge
statsmodels               0.8.0            py36h6189b4c_0
tblib                     1.3.2            py36h30f5020_0
terminado                 0.8.1                    py36_1
testpath                  0.3.1            py36h2698cfe_0
tk                        8.6.7            vc14hb68737d_1  [vc14]  anaconda
toolz                     0.9.0                    py36_0
tornado                   5.0.2                    py36_0
traitlets                 4.3.2            py36h096827d_0
twython                   3.7.0                    py36_0
typed-ast                 1.1.0                     <pip>
urllib3                   1.22             py36h276f60a_0
urllib3                   1.22                      <pip>
vc                        14                   h0510ff6_3
vs2015_runtime            14.0.25123                    3
wcwidth                   0.1.7            py36h3d5aa90_0
webencodings              0.5.1            py36h67c50ae_1
wheel                     0.31.0                   py36_0
whichcraft                0.4.1                      py_1    conda-forge
widgetsnbextension        3.2.1                    py36_0
win_inet_pton             1.0.1            py36he67d7fd_1
wincertstore              0.2              py36h7fe50ca_0
winpty                    0.4.3                    vc14_2  [vc14]  conda-forge
wrapt                     1.10.11                   <pip>
xlwt                      1.3.0            py36h1a4751e_0
yaml                      0.1.7                    vc14_0  [vc14]  conda-forge
zeromq                    4.2.5                    vc14_1  [vc14]  conda-forge
zict                      0.1.3            py36h2d8e73e_0
zlib                      1.2.11                   vc14_0  [vc14]  conda-forge

Path: (pandas36) C:\Users\Free Agent>path PATH=C:\PyAna2\envs\pandas36;C:\PyAna2\envs\pandas36\Library\mingw-w64\bin;C:\PyAna2\envs\pandas36\Library\usr\bin;C:\PyAna2\envs\pandas36\Library\bin;C:\PyAna2\envs\pandas36\Scripts;C:\PyAna2\envs\pandas36\bin;C:\PyAna2;C:\PyAna2\Library\mingw-w64\bin;C:\PyAna2\Library\usr\bin;C:\PyAna2\Library\bin;C:\PyAna2\Scripts;C:\PyAna2\bin;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\HashiCorp\Vagrant\bin;C:\Program Files\PuTTY\;C:\Program Files\Microsoft VS Code\bin;C:\Program Files\Git\cmd;C:\Users\Free Agent\AppData\Local\Microsoft\WindowsApps;C:\Users\Free Agent\AppData\Local\GitHubDesktop\bin;C:\Users\Free Agent\AppData\Local\Programs\MiKTeX 2.9\miktex\bin\x64\;C:\Users\Free Agent\AppData\Local\Microsoft\WindowsApps;

So looks like I should start with the fact there is no settings.json file in .vscode?

I also don't have "conda" on the path, though I do have the conda environments on the path.

F8F-Bearcat commented 6 years ago

OK, so I added settings.json in .vscode my python.pythonPath in settings.json in .vscode looks like this: "python.pythonPath": "C:\PyAna2\envs\pandas36\python.exe",

No change in the timeout behavior - still does not connect and times out

F8F-Bearcat commented 6 years ago

Also, this is Windows 10 professional release 10.0.17134

F8F-Bearcat commented 6 years ago

Dug into conda location.
I have conda.bat located in C:\PyAna2\Library\bin I also have C:\PyAna2\Library\bin on my path

DonJayamanne commented 6 years ago

Note, this is a JSON file hence back slashes need to be encoded.

F8F-Bearcat commented 6 years ago

Hi Don, thanks for getting back to me with these suggestions.

Confirmed C:\PyAna2\envs\pandas36\python.exe exists both by file manager and activating the pandas36 environment in conda and running a notebook from that activated environment.

image

F8F-Bearcat commented 6 years ago

When I loaded settings.json, the double backslashes had already been changed / fixed.

"python.pythonPath": "C:\PyAna2\envs\pandas36\python.exe",

Tried debugger connection - still a timeout and no connection

F8F-Bearcat commented 6 years ago

Finally, I tried the insiders VSIX file, it did not load.

Got this error message:

/C:/Program Files/Microsoft VS Code/resources/app/out/vs/workbench/workbench.main.js:2407 Sorry, something went wrong activating IntelliCode support for Python. Please check the "VS IntelliCode" output window for details.

I used View:Toggle Output a couple of times but am not seeing anything in the output window that is helpful. I'm cycling through Problems / Output / Debug Console / Terminal "tabs" and also all combinations of the pulldown on the right.

Tried to connect debugger again, no connection.

How would I uninstall the VSIX file?

DonJayamanne commented 6 years ago

Please send a screen shot of the contents in settings.json To install the vsix, just uninstall the python extension and quit vscode.

MandarJKulkarni commented 6 years ago

I was testing for issue #2698 and faced similar issue with in-development build vsix. F5 started the debugger for Python-Flask debug config, it gets hung. Similarly with Python-Current File debug config, if any of the module imports fails, exception is not shown on the terminal, but the debugger get hung.

I pressed Ctrl+C to break, and got the below stack

Traceback (most recent call last): File "c:\Users\abcd.vscode\extensions\ms-python.python-2018.8.1-beta\pythonFiles\experimental\ptvsd\ptvsd_vendored\pydevd_pydevd_bundle\pydevd_frame.py", line 649, in trace_dispatch self.do_wait_suspend(thread, frame, event, arg) File "c:\Users\abcd.vscode\extensions\ms-python.python-2018.8.1-beta\pythonFiles\experimental\ptvsd\ptvsd_vendored\pydevd_pydevd_bundle\pydevd_frame.py", line 134, in do_wait_suspend self._args[0].do_wait_suspend(*args, **kwargs) File "c:\Users\abcd.vscode\extensions\ms-python.python-2018.8.1-beta\pythonFiles\experimental\ptvsd\ptvsd_vendored\pydevd\pydevd.py", line 827, in do_wait_suspend time.sleep(0.01) KeyboardInterrupt

VS Code version 1.27.2 Python extension: latest development build

DonJayamanne commented 6 years ago

@MandarJKulkarni

, if any of the module imports fails

Please elaborate on this. How do you know about this failure,

F8F-Bearcat commented 6 years ago

for Mandar: my issue occurs with or without the in-development vsix build

my user settings.json: image

my workspace settings.json image

DonJayamanne commented 6 years ago

@F8F-Bearcat

Next:

Finally, I tried the insiders VSIX file, it did not load.

Please disable Intelli-code for now (or just uninstall it). and try again.

F8F-Bearcat commented 6 years ago

I am unable to debug a simple program as the debugger doesn't connect. I set a breakpoint in this program, and when I activate the debugger with the green "go" I get the popup timeout message.

image

Run Python in Terminal yields:

image

F8F-Bearcat commented 6 years ago

Disabled the Intelli-code for now. Re-ran everything is the same. I am noticing a little orange alert on the gearbox that says there is some issue with launch.json. Looks like this is present in all of the screenshots today. I had set this up before, and somehow I must have deleted it.

F8F-Bearcat commented 6 years ago

After I disabled Intelli-code, I shut VScode down and restarted. It gave me a new window. When I opened a folder in my VScode root directory, I got my old files back. Interestingly, a comma had been dropped out of my launch.json file, I added the comma, saved, and re-ran the program successfully, went to activate the debugger (debugger gear now clear), same behavior: Timeout waiting for debugger connections.

Likely unrelated, but also see this terminal output, which looks strange and I have not seen before. I am much more interested in the lack of debugger connection.....

image

DonJayamanne commented 6 years ago

@MandarJKulkarni @F8F-Bearcat Please could you both try the following

Item 1

Item 2: If previous step doesn't work

Please do send screenshots, that helps a lot. @F8F-Bearcat Thanks for the great screenshots.

F8F-Bearcat commented 6 years ago

For Item 1: added the terminal activate parameter as false, tried debugging - same behavior, no connection

For item 2: changing to the command prompt did do something, bit looks like it hit an error on the command line before the debugger tried to connect. I don't know where this command line string comes from to edit the &&. I'll also try restarting VScode.

image

MandarJKulkarni commented 6 years ago

@DonJayamanne , Sorry, none of the 2 items worked for me.

About the "Please elaborate on this. How do you know about this failure,": It was not a system module, but the module written by me which had some issue. I verified the import failure by trying to import that module from Python prompt.

F8F-Bearcat commented 6 years ago

OK, reran after restarting VScode. This got past the command line issue. Debugger still timed out. Note that I am making the changes to the settings.json file for User Settings, not Workplace Settings, assuming that User overrides Workplace.

image

F8F-Bearcat commented 6 years ago

Should I remove the activateEnvironment flag as it did not change the behavior? In the spirit of just changing one thing at a time.

DonJayamanne commented 6 years ago

Please could you try this once again however, this time go into your .vscode/launch.json file and add a setting for timeout with a value of around 10000 (10 seconds) as follows:

            "timeout": 10000
        },

Please ensure this setting is added into the right launch configuration item.

F8F-Bearcat commented 6 years ago

I entered the timeout parameter. Continues to not connect. It appears to be a property that is not allowed. It had a green squiggle under timeout, and when I hover over it I get "Property timeout is not allowed"

image

DonJayamanne commented 6 years ago

when I hover over it I get "Property timeout is not allowed"

Yes, that's fine.

F8F-Bearcat commented 6 years ago

Using that parameter I still had the debugger timeout issue.

2Dews commented 6 years ago

I am getting the same timeout. It seems related to Anaconda. I'm using the Visual Studio Anaconda install C:\Program Files (x86)\Microsoft Visual Studio\Shared\Anaconda3_64, Python 3.6.

I can debug against standard Python 3, and virtual environments built off them. I tried things from above but cannot debug if targeting Anaconda.

I tried switching to Visual Studio 2017 15.8.5 and the debugger connects but after a couple seconds I get an error saying "The debug adapter exited unexpectedly."

2Dews commented 6 years ago

I was able to get debugging working in VS Enterprise 2017 15.8.5 by enabling legacy debugging Not sure if that's possible in VS Code. Sorry if this is irrelevant, but from what I understand the underlying debugger is the same in 15.8 and the current VS Code with python extension.

DonJayamanne commented 6 years ago

Thanks for narrowing down the issue to Anaconda, that helps. Please could you try the following:

  1. Please go into your .vscode/launch.json and add the setting "logToFile": true
  2. Start debugging
  3. Once complete (even after a failure), go into VS Code and select the command Extensions: Open Extensions Folder
  4. Locate the python extensions directory ms-python.python-2018-**
  5. Look for a file named debug.log, please upload that file here
F8F-Bearcat commented 6 years ago

Welcome 2Dews! FYI, in my case I had a existing Anaconda installation, and added VSCode later. DonJ - thanks for the suggested steps! Attached is the debug.log file

debug.log

DonJayamanne commented 6 years ago

@F8F-Bearcat
Please could you test this with another distro of Python, other than Anaconda? Please could you try installing python from here (https://www.python.org/downloads/) and trying this out (only if possible).

F8F-Bearcat commented 6 years ago

Downloaded Python 3.6.5 64 bit, installed off the system path, configured to point to that location, and now am able to connect to the debugger.

So that works.

ColombianViking commented 6 years ago

I've had the same timeout issue for about a month now. I tried cloning my conda enviroment and I could debug in the cloned environment, but not in the original. Now, a couple of weeks later, the copied environment also times out when debugging.

I also think the issue is not exclusive to vscode. I've tried using PyCharm, and there the debugger stops silently. Likely also timing out, but without the error message.

2Dews commented 6 years ago

@DonJayamanne here is my debug.log. Thanks. debug.log

DonJayamanne commented 6 years ago

@F8F-Bearcat @2Dews @ColombianViking Please could you debug this once again with a minor change:

Here's a screenshot of the file being debugged, the launch.json and the output window.

screen shot 2018-10-08 at 4 24 21 pm
F8F-Bearcat commented 6 years ago

This did not work for me. The debugger did not connect, and also did not timeout. I tried this with and without version 1.0.4 of the Visual Studio Intellisense extension enabled. Is there an updated version of this extension.

image

image

DonJayamanne commented 6 years ago

This did not work for me. The debugger did not connect, and also did not timeout.

What happened? If it didn't work and didn't time out then what happened?

F8F-Bearcat commented 6 years ago

Hi Don, it sat there with the little yellow line going across over and over like it was hung. After a while, I just closed VScode. There was never any debug console output

DonJayamanne commented 6 years ago

@F8F-Bearcat @ColombianViking @2Dews
I'd like to get to the bottom of this. I'm in Redmond, USA (Pacific Daylight Time)

Would appreciate it if someone can get onto Skype with me to sort this out. Or we could use VS Live Share

F8F-Bearcat commented 6 years ago

Hi Don, appreciate your determination to chase this down. I'm also on Pacific time and would be able to work with you on this, for awhile anyway, but will need to schedule it - can't do it in the next couple of days. What's the best way to schedule a time? to be in contact?

DonJayamanne commented 6 years ago

My email address is don.jayamanne<at><company I work for>.com

DonJayamanne commented 6 years ago

@HughGrovesArup

Please could you try this once again however, this time go into your .vscode/launch.json file and add a setting for timeout with a value of around 10000 (10 seconds) as follows:

            "timeout": 10000
        },

Please ensure this setting is added into the right launch configuration item.

HughGrovesArup commented 6 years ago

Did this image

Tried to start debugging with F5, still get this image

Jacob-Jan commented 6 years ago

Hi, I have the exact same issue, debugging is not working. But by right clicking my python file in the explorer and then hitting "Run python file in terminal", is working. It's obviously not debugging but certainly python works. I've installed python via Anaconda as well.

matvelloso commented 6 years ago

I started having the same problem as everybody else as of today. Had no changes in my environment, was working until yesterday. The only change I can think of was installing the latest Windows 10 update this morning

matvelloso commented 6 years ago

Here's my console log if that helps:

17:17:59, 2018-10-7 Started @ Sun Oct 07 2018 17:17:59 GMT+0000 (UTC) From Client: Content-Length: 148

{"type":"request","seq":1,"command":"initialize","arguments":{"adapterID":"python","linesStartAt1":true,"columnsStartAt1":true,"pathFormat":"path"}} To Client: Content-Length: 687

{"seq":1,"type":"response","request_seq":1,"command":"initialize","success":true,"body":{"supportsExceptionInfoRequest":true,"supportsConfigurationDoneRequest":true,"supportsConditionalBreakpoints":true,"supportsSetVariable":true,"supportsExceptionOptions":true,"supportsEvaluateForHovers":true,"supportsModulesRequest":true,"supportsValueFormattingOptions":true,"supportsHitConditionalBreakpoints":true,"supportsSetExpression":true,"supportsLogPoints":true,"supportTerminateDebuggee":true,"supportsCompletionsRequest":true,"exceptionBreakpointFilters":[{"filter":"raised","label":"Raised Exceptions","default":false},{"filter":"uncaught","label":"Uncaught Exceptions","default":true}]}} From Client: Content-Length: 434

{"type":"request","seq":2,"command":"launch","arguments":{"program":"/home/travis/build/DonJayamanne/pythonVSCode/src/test/pythonFiles/debugging/startAndWait.py","cwd":"/home/travis/build/DonJayamanne/pythonVSCode/src/test/pythonFiles/debugging","stopOnEntry":false,"logToFile":true,"debugOptions":["RedirectOutput"],"pythonPath":"/home/travis/virtualenv/python3.7-dev/bin/python","args":[],"envFile":"","port":34528,"type":"python"}} To Client: Content-Length: 283

{"seq":2,"type":"response","request_seq":2,"command":"launch","success":false,"message":"Failed to start the socket server. (Error: listen EADDRINUSE 127.0.0.1:34528)","body":{"error":{"format":"Failed to start the socket server. (Error: listen EADDRINUSE 127.0.0.1:34528)","id":1}}} From Client: Content-Length: 49

{"type":"request","seq":3,"command":"disconnect"} onResponseDisconnect To Client: Content-Length: 81

{"seq":3,"type":"response","request_seq":3,"command":"disconnect","success":true} check and shutdown shutdown Sending Terminated Event To Client: Content-Length: 45

onEventTerminated To Client: {"seq":0,"type":"event","event":"terminated"} Shutting down debug session disposing check and shutdown

matvelloso commented 6 years ago

Note I tried a bunch of the steps mentioned above, from increasing timeout, etc and none worked. I think the error saying it can't open a socket is very telling. Not sure what would fix that, though. Tried re-installing python, switching Anaconda's environments, no dice. Right now the only way I can get it to run is running Python from command line

conorfos commented 6 years ago

I am experiencing the same issue. All I can add is that this happened directly after installing the latest Windows 10 update.

demon16 commented 6 years ago

I am experiencing the same issue. All I can add is that this happened directly after installing the latest Windows 10 update.

just like you

matkoh commented 6 years ago

confirmed, same problem.

JeppeDruedahl commented 6 years ago

also confirmed, same problem.

Pfedj commented 6 years ago

confirmed +1