Skip to content
New issue

Have a question about this project? # for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “#”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? # to your account

Start without debug error at second time and on #80885

Closed
hugoabreu1002 opened this issue Sep 13, 2019 · 4 comments
Closed

Start without debug error at second time and on #80885

hugoabreu1002 opened this issue Sep 13, 2019 · 4 comments

Comments

@hugoabreu1002
Copy link

  • VSCode Version: 1.38.1
  • OS Version: Windows 10

Hi, im facing a strange bug, its like the debug function of visual studio code is not working well. Im getting a lot o text out of the terminal when I try to run the same code twice. In the second time and on, I get the output like:

cd 'c:\Users\fitec\Desktop'; ${env:ALLUSERSPROFILE}='C:\ProgramData'; ${env:AMD_ENTRYPOINT}='vs/workbench/services/extensions/node/extensionHostProcess'; ${env:APPDATA}='C:\Users\fitec\AppData\Roaming'; ${env:APPLICATION_INSIGHTS_NO_DIAGNOSTIC_CHANNEL}='true'; ${env:CHROME_CRASHPAD_PIPE_NAME}='\\.\pipe\crashpad_1896_LUKNHANFYTPUSJGQ'; ${env:CHROME_RESTART}='Google Chrome|Nossa! Houve uma falha no Google Chrome. Reiniciar agora?|LEFT_TO_RIGHT'; ${env:CommonProgramFiles}='C:\Program Files\Common Files'; ${env:CommonProgramFiles(x86)}='C:\Program Files (x86)\Common Files'; ${env:CommonProgramW6432}='C:\Program Files\Common Files'; ${env:COMPUTERNAME}='DESKTOP-827RMLB'; ${env:ComSpec}='C:\WINDOWS\system32\cmd.exe'; ${env:DriverData}='C:\Windows\System32\Drivers\DriverData'; ${env:ELECTRON_RUN_AS_NODE}='1'; ${env:FPS_BROWSER_APP_PROFILE_STRING}='Internet Explorer'; ${env:FPS_BROWSER_USER_PROFILE_STRING}='Default'; ${env:HOMEDRIVE}='C:'; ${env:HOMEPATH}='\Users\fitec'; ${env:LOCALAPPDATA}='C:\Users\fitec\AppData\Local'; ${env:LOGONSERVER}='\\DESKTOP-827RMLB'; ${env:MSMPI_BIN}='C:\Program Files\Microsoft MPI\Bin\'; ${env:NUMBER_OF_PROCESSORS}='4'; ${env:OneDrive}='C:\Users\fitec\OneDrive - Fundação para Inovações Tecnológicas - FITec'; ${env:OneDriveCommercial}='C:\Users\fitec\OneDrive - Fundação para Inovações Tecnológicas - FITec'; ${env:OS}='Windows_NT'; ${env:PATHEXT}='.COM;.EXE;.BAT;.CMD;.VBS;.VBE;.JS;.JSE;.WSF;.WSH;.MSC'; ${env:PIPE_LOGGING}='true'; ${env:PROCESSOR_ARCHITECTURE}='AMD64'; ${env:PROCESSOR_IDENTIFIER}='Intel64 Family 6 Model 142 Stepping 9, GenuineIntel'; ${env:PROCESSOR_LEVEL}='6'; ${env:PROCESSOR_REVISION}='8e09'; ${env:ProgramData}='C:\ProgramData'; ${env:ProgramFiles}='C:\Program Files'; ${env:ProgramFiles(x86)}='C:\Program Files (x86)'; ${env:ProgramW6432}='C:\Program Files'; ${env:PSModulePath}='C:\Program Files\WindowsPowerShell\Modules;C:\WINDOWS\system32\WindowsPowerShell\v1.0\Modules'; ${env:PUBLIC}='C:\Users\Public'; ${env:SESSIONNAME}='Console'; ${env:SystemDrive}='C:'; ${env:SystemRoot}='C:\WINDOWS'; ${env:TEMP}='C:\Users\fitec\AppData\Local\Temp'; ${env:TMP}='C:\Users\fitec\AppData\Local\Temp'; ${env:USERDOMAIN}='DESKTOP-827RMLB'; ${env:USERDOMAIN_ROAMINGPROFILE}='DESKTOP-827RMLB'; ${env:USERNAME}='fitec'; ${env:USERPROFILE}='C:\Users\fitec'; ${env:VERBOSE_LOGGING}='true'; ${env:VSCODE_CWD}='C:\Users\fitec\AppData\Local\Programs\Microsoft VS Code'; ${env:VSCODE_HANDLES_UNCAUGHT_ERRORS}='true'; ${env:VSCODE_IPC_HOOK}='\\.\pipe\64a46832b67b6b28b09426c730f6d874-1.38.1-main-sock'; ${env:VSCODE_IPC_HOOK_EXTHOST}='\\.\pipe\vscode-ipc-860b07c4-bc92-437c-80a5-396115ce4679-sock'; ${env:VSCODE_LOGS}='C:\Users\fitec\AppData\Roaming\Code\logs\20190913T141653'; ${env:VSCODE_LOG_STACK}='false'; ${env:VSCODE_NLS_CONFIG}='{"locale":"pt-br","availableLanguages":{},"_languagePackSupport":true}'; 
${env:VSCODE_NODE_CACHED_DATA_DIR}='C:\Users\fitec\AppData\Roaming\Code\CachedData\b37e54c98e1a74ba89e03073e5a3761284e3ffb0'; ${env:VSCODE_PID}='10536'; ${env:VSCODE_PREVENT_FOREIGN_INSPECT}='true'; ${env:windir}='C:\WINDOWS'; ${env:Path}='C:\Program Files (x86)\Google\Chrome\Application;C:\Program Files (x86)\Common Files\Oracle\Java\javapath;C:\Program Files\Microsoft MPI\Bin\;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\WINDOWS\system32;C:\WINDOWS;C:\WINDOWS\System32\Wbem;C:\WINDOWS\System32\WindowsPowerShell\v1.0\;C:\WINDOWS\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\dotnet\;C:\Users\fitec\AppData\Local\Programs\Python\Python37\Scripts;C:\Users\fitec\AppData\Local\Programs\Python\Python37\Scripts\;C:\Users\fitec\AppData\Local\Programs\Python\Python37;C:\Users\fitec\AppData\Local\Programs\Python\Python37\;C:\Program Files\Microsoft SQL Server\130\Tools\Binn\;C:\Program Files\Microsoft MPI\Bin\;C:\Program Files (x86)\Intel\iCLS Client\;C:\Program Files\Intel\iCLS Client\;C:\Windows\system32;C:\Windows;C:\Windows\System32\Wbem;C:\Windows\System32\WindowsPowerShell\v1.0\;C:\Windows\System32\OpenSSH\;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files\Intel\Intel(R) Management Engine Components\DAL;C:\Program Files (x86)\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\Intel(R) Management Engine Components\IPT;C:\Program Files\Intel\WiFi\bin\;C:\Program Files\Common Files\Intel\WirelessCommon\;C:\Program Files\Symantec.cloud\PlatformAgent\;C:\Program Files\Intel\Intel(R) Management Engine Components\DA;C:\Users\fitec\AppData\Local\Microsoft\WindowsApps;C:\Users\fitec\AppData\Local\Programs\Microsoft VS Code\bin'; ${env:PYTHONIOENCODING}='UTF-8'; ${env:PYTHONUNBUFFERED}='1'; & 'C:\Users\fitec\AppData\Local\Programs\Python\Python37\python.exe' 'c:\Users\fitec\.vscode\extensions\ms-python.python-2019.9.34911\pythonFiles\ptvsd_launcher.py' '--default' '--nodebug' '--client' '--host' 'localhost' '--port' '52515' 'c:\Users\fitec\Desktop\teste.py'  
Opa, algo deu errado. Relate este bug com os detalhes abaixo.
Relate no GitHub: https://github.com/lzybkr/PSReadLine/issues/new
-----------------------------------------------------------------------
Últimas 200 Chaves:
 U s e r s \ f i t e c \ . v s c o d e \ e x t e n s i o n s \ m s - p y t h o n . p y t h o 
n - 2 0 1 9 . 9 . 3 4 9 1 1 \ p y t h o n F i l e s \ p t v s d _ l a u n c h e r . p y ' Space ' - - d e f a u l t ' Space ' - - n o d e b u g ' Space ' - - c l i e n t ' Space ' - - h 
o s t ' Space ' l o c a l h o s t ' Space ' - - p o r t ' Space ' 5 2 5 1 5 ' Space ' c : \ U s e r s \ f i t e c \ D e s k t o p \ t e s t e . p y ' Space Enter


Exceção:
System.ArgumentOutOfRangeException: O valor deve ser maior ou igual a zero e menor que o tamanho do buffer do console nessa dimensão.
Nome do parâmetro: top
Valor real era -43.
   em System.Console.SetCursorPosition(Int32 left, Int32 top)
   em Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
   em Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
   em Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
   em Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable`1 key, Object arg)
   em Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary`2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
   em Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
   em Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)
----------------------------------------------------------------------- 

Steps to Reproduce:

  1. Python code:
import matplotlib.pyplot as plt

def main():
    print("Hello World!")
    plt.figure()
    plt.plot(range(10), range(10))
    plt.show()

if __name__ == '__main__':
    main()
  1. Run Start Without Debug at second time. (Crt+F5).
@hugoabreu1002
Copy link
Author

Same as #80819

@ChaosGT
Copy link

ChaosGT commented Sep 17, 2019

same too, #81023

@ChaosGT
Copy link

ChaosGT commented Sep 17, 2019

A temporary solution is to RUN instead of DEBUG.
Right click the python editor -> choose Run Python file in terminal.

@vscodebot vscodebot bot locked and limited conversation to collaborators Oct 28, 2019
# for free to subscribe to this conversation on GitHub. Already have an account? #.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants