Vs code debugger works only half of the time

0

I think it's very strange , but my problem is (look at the title), let me explain.

Debugger settings

   {
        "name": "Python 3.7.3",
        "pythonPath": "C:\\Users\\HE-MEM'\\AppData\\Local\\Programs\\Python\\Python37-32\\python.exe",
        "type": "python",
        "request": "launch",
        "program": "${file}",
        "console": "integratedTerminal"
    }

Now, when I wrote my code (no matter wrong it or not) I hit the play button, and receive error notification

cd 'c:\Users\HE-MEM'\AppData\Local\Programs\Python\Python37-32'; ${env:PYTHONIOENCODING}='UTF-8'; ${env:PYTHONUNBUFFERED}='1'; & 'C:\Users\HE-MEM''\AppData\Local\Programs\Python\Python37-32\python.exe' 'c:\Users\HE-MEM''\.vscode\extensions\ms-python.python-2019.6.24221\pythonFiles\ptvsd_launcher.py' '--default' '--client' '--host' 'localhost' '--port' '51166' 'c:\Users\HE-MEM''\Desktop\py\Sells\Sells.py'
Set-Location : can not find positional parameter, accepting argument, "\AppData\Local\Programs\Python\Python37-32; ${env:PYTHONIOENCODING}=UTF-8; ${env:PYTHONUNBUFFERED}=1; & C:\Users\HE-M
EM\AppData\Local\Programs\Python\Python37-32\python.exe c:\Users\HE-MEM\.vscode\extensions\ms-python.python-2019.6.24221\pythonFiles\ptvsd_launcher.py --default --client --host localhost --port
 51164 c:\Users\HE-MEM\Desktop\py\Sells\Sells.py 
cd c:\Users\HE-MEM\AppData\Local\Programs\Python\Python37-32".
line:1 sign:1
+ cd 'c:\Users\HE-MEM'\AppData\Local\Programs\Python\Python37-32'; ${en ...
+ ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
    + CategoryInfo          : InvalidArgument: (:) [Set-Location], ParameterBindingException
    + FullyQualifiedErrorId : PositionalParameterNotFound,Microsoft.PowerShell.Commands.SetLocationCommand 

BUT IT ACTUALLY WORKED Ok, so we can ignore it

Then I hit play button again, and

PS C:\Users\HE-MEM'\Desktop\py\Sells>
PS C:\Users\HE-MEM'\Desktop\py\Sells> cd 'c:\Users\HE-MEM'\AppData\Local\Programs\Python\Python37-32'; ${env:PYTHONIOENCODING}='UTF-8'; ${env:PYTHONUNBUFFERED}='1'; & 'C:\Users\HE-MEM''\AppData\Local\Programs\Python\Python37-32\python.exe' 'c:\Users\HE-MEM''\.vscode\extensions\ms-python.python-2019.6.24221\pythonFiles\ptvsd_launcher.py' '--default' '--client' '--host' 'localhost' '--port' '51232' 'c:\Users\HE-MEM''\Desktop\py\Sells\Sells.py'

AND NOTHING HAPPENS

except "Timeout wating for debugger connection" message

Actually, I can live with it. But I don't want to, so please, I need help of Someone who knows better than me.

Geara0

Posted 2019-07-26T17:23:25.227

Reputation: 1

No answers