Skip to content
New issue

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

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

Already on GitHub? Sign in to your account

vs code上debug(fastapi项目)时出现报错(按照提示到github汇报) #4478

Closed
Junon-Gz opened this issue Feb 11, 2025 · 2 comments
Closed

Comments

@Junon-Gz
Copy link

以下是当此在vs code上debug运行启动后所有日志:
PS D:\xboom\backend> & 'e:\ProgramData\anaconda3\envs\xboom_env_test\python.exe' 'c:\Users\Administrator.cursor\extensions\ms-python.debugpy-2024.6.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy\launch
哎呀,出现问题。请在报告此 Bug 时添加以下详细信息。
在 GitHub 上报告: https://github.com/lzybkr/PSReadLine/issues/new

上 200 个密钥:
\ x b o o m _ e n v _ t e s t \ p y t h o n . e x e ' Space ' c : \ U s e r s \ A d m i n i s t r a t o r \ . c u r s o r \ e x t e n s i o n s \ m s - p y t h o n . d e b u g p y - 2 0 2 4 . 6 . 0 - w i n 3 2 - x 6 4 \ b u n d l e d \ l i b s \ d e b u g p y \ a d a p t e r / . . / . . \ d e b u g p y \ l a u n c h e r ' Space ' 3 5 8 5 ' Space ' - - ' Space ' d : \ x b o o m \ b a c k e n d \ r u n . p y ' Space Enter

异常:
System.ArgumentOutOfRangeException: 该值必须大于或等于零,且必须小于控制台缓冲区
在该维度的大小。
参数名: top
实际值是 -1。
在 System.Console.SetCursorPosition(Int32 left, Int32 top)
在 Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
在 Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
在 Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
在 Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) 在 Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
在 Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
在 Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

PS D:\xboom\backend> & 'e:\ProgramData\anaconda3\envs\xboom_env_test\python.exe' 'c:\Users\Administrator.cursor\extensions\ms-python.debugpy-2024.6.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy\launcher' '3585' '--' 'd:\xboom\backend
哎呀,出现问题。请在报告此 Bug 时添加以下详细信息。
在 GitHub 上报告: https://github.com/lzybkr/PSReadLine/issues/new

上 200 个密钥:
\ x b o o m _ e n v _ t e s t \ p y t h o n . e x e ' Space ' c : \ U s e r s \ A d m i n i s t r a t o r \ . c u r s o r \ e x t e n s i o n s \ m s - p y t h o n . d e b u g p y - 2 0 2 4 . 6 . 0 - w i n 3 2 - x 6 4 \ b u n d l e d \ l i b s \ d e b u g p y \ a d a p t e r / . . / . . \ d e b u g p y \ l a u n c h e r ' Space ' 3 5 8 5 ' Space ' - - ' Space ' d : \ x b o o m \ b a c k e n d \ r u n . p y ' Space Enter

异常:
System.ArgumentOutOfRangeException: 该值必须大于或等于零,且必须小于控制台缓冲区
在该维度的大小。
参数名: top
实际值是 -2。
在 System.Console.SetCursorPosition(Int32 left, Int32 top)
在 Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
在 Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
在 Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
在 Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) 在 Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
在 Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
在 Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

PS D:\xboom\backend> & 'e:\ProgramData\anaconda3\envs\xboom_env_test\python.exe' 'c:\Users\Administrator.cursor\extensions\ms-python.debugpy-2024.6.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy\launcher' '3585' '--' 'd:\xboom\backend
哎呀,出现问题。请在报告此 Bug 时添加以下详细信息。
在 GitHub 上报告: https://github.com/lzybkr/PSReadLine/issues/new

上 200 个密钥:
\ x b o o m _ e n v _ t e s t \ p y t h o n . e x e ' Space ' c : \ U s e r s \ A d m i n i s t r a t o r \ . c u r s o r \ e x t e n s i o n s \ m s - p y t h o n . d e b u g p y - 2 0 2 4 . 6 . 0 - w i n 3 2 - x 6 4 \ b u n d l e d \ l i b s \ d e b u g p y \ a d a p t e r / . . / . . \ d e b u g p y \ l a u n c h e r ' Space ' 3 5 8 5 ' Space ' - - ' Space ' d : \ x b o o m \ b a c k e n d \ r u n . p y ' Space Enter

异常:
System.ArgumentOutOfRangeException: 该值必须大于或等于零,且必须小于控制台缓冲区
在该维度的大小。
参数名: top
实际值是 -2。
在 System.Console.SetCursorPosition(Int32 left, Int32 top)
在 Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
在 Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
在 Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
在 Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) 在 Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
在 Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
在 Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

PS D:\xboom\backend> & 'e:\ProgramData\anaconda3\envs\xboom_env_test\python.exe' 'c:\Users\Administrator.cursor\extensions\ms-python.debugpy-2024.6.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy\launcher' '3585' '--' 'd:\xboom\backend\r
哎呀,出现问题。请在报告此 Bug 时添加以下详细信息。
在 GitHub 上报告: https://github.com/lzybkr/PSReadLine/issues/new

上 200 个密钥:
\ x b o o m _ e n v _ t e s t \ p y t h o n . e x e ' Space ' c : \ U s e r s \ A d m i n i s t r a t o r \ . c u r s o r \ e x t e n s i o n s \ m s - p y t h o n . d e b u g p y - 2 0 2 4 . 6 . 0 - w i n 3 2 - x 6 4 \ b u n d l e d \ l i b s \ d e b u g p y \ a d a p t e r / . . / . . \ d e b u g p y \ l a u n c h e r ' Space ' 3 5 8 5 ' Space ' - - ' Space ' d : \ x b o o m \ b a c k e n d \ r u n . p y ' Space Enter

异常:
System.ArgumentOutOfRangeException: 该值必须大于或等于零,且必须小于控制台缓冲区
在该维度的大小。
参数名: top
实际值是 -2。
在 System.Console.SetCursorPosition(Int32 left, Int32 top)
在 Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
在 Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
在 Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
在 Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) 在 Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
在 Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
在 Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

PS D:\xboom\backend> & 'e:\ProgramData\anaconda3\envs\xboom_env_test\python.exe' 'c:\Users\Administrator.cursor\extensions\ms-python.debugpy-2024.6.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy\launcher' '3585' '--' 'd:\xboom\backend\ru
哎呀,出现问题。请在报告此 Bug 时添加以下详细信息。
在 GitHub 上报告: https://github.com/lzybkr/PSReadLine/issues/new

上 200 个密钥:
\ x b o o m _ e n v _ t e s t \ p y t h o n . e x e ' Space ' c : \ U s e r s \ A d m i n i s t r a t o r \ . c u r s o r \ e x t e n s i o n s \ m s - p y t h o n . d e b u g p y - 2 0 2 4 . 6 . 0 - w i n 3 2 - x 6 4 \ b u n d l e d \ l i b s \ d e b u g p y \ a d a p t e r / . . / . . \ d e b u g p y \ l a u n c h e r ' Space ' 3 5 8 5 ' Space ' - - ' Space ' d : \ x b o o m \ b a c k e n d \ r u n . p y ' Space Enter

异常:
System.ArgumentOutOfRangeException: 该值必须大于或等于零,且必须小于控制台缓冲区
在该维度的大小。
参数名: top
实际值是 -2。
在 System.Console.SetCursorPosition(Int32 left, Int32 top)
在 Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
在 Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
在 Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
在 Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) 在 Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
在 Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
在 Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

PS D:\xboom\backend> & 'e:\ProgramData\anaconda3\envs\xboom_env_test\python.exe' 'c:\Users\Administrator.cursor\extensions\ms-python.debugpy-2024.6.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy\launcher' '3585' '--' 'd:\xboom\backend\run
哎呀,出现问题。请在报告此 Bug 时添加以下详细信息。
在 GitHub 上报告: https://github.com/lzybkr/PSReadLine/issues/new

上 200 个密钥:
\ x b o o m _ e n v _ t e s t \ p y t h o n . e x e ' Space ' c : \ U s e r s \ A d m i n i s t r a t o r \ . c u r s o r \ e x t e n s i o n s \ m s - p y t h o n . d e b u g p y - 2 0 2 4 . 6 . 0 - w i n 3 2 - x 6 4 \ b u n d l e d \ l i b s \ d e b u g p y \ a d a p t e r / . . / . . \ d e b u g p y \ l a u n c h e r ' Space ' 3 5 8 5 ' Space ' - - ' Space ' d : \ x b o o m \ b a c k e n d \ r u n . p y ' Space Enter

异常:
System.ArgumentOutOfRangeException: 该值必须大于或等于零,且必须小于控制台缓冲区
在该维度的大小。
参数名: top
实际值是 -2。
在 System.Console.SetCursorPosition(Int32 left, Int32 top)
在 Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
在 Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
在 Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
在 Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) 在 Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
在 Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
在 Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

PS D:\xboom\backend> & 'e:\ProgramData\anaconda3\envs\xboom_env_test\python.exe' 'c:\Users\Administrator.cursor\extensions\ms-python.debugpy-2024.6.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy\launcher' '3585' '--' 'd:\xboom\backend\run.
哎呀,出现问题。请在报告此 Bug 时添加以下详细信息。
在 GitHub 上报告: https://github.com/lzybkr/PSReadLine/issues/new

上 200 个密钥:
\ x b o o m _ e n v _ t e s t \ p y t h o n . e x e ' Space ' c : \ U s e r s \ A d m i n i s t r a t o r \ . c u r s o r \ e x t e n s i o n s \ m s - p y t h o n . d e b u g p y - 2 0 2 4 . 6 . 0 - w i n 3 2 - x 6 4 \ b u n d l e d \ l i b s \ d e b u g p y \ a d a p t e r / . . / . . \ d e b u g p y \ l a u n c h e r ' Space ' 3 5 8 5 ' Space ' - - ' Space ' d : \ x b o o m \ b a c k e n d \ r u n . p y ' Space Enter

异常:
System.ArgumentOutOfRangeException: 该值必须大于或等于零,且必须小于控制台缓冲区
在该维度的大小。
参数名: top
实际值是 -2。
在 System.Console.SetCursorPosition(Int32 left, Int32 top)
在 Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
在 Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
在 Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
在 Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) 在 Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
在 Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
在 Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

PS D:\xboom\backend> & 'e:\ProgramData\anaconda3\envs\xboom_env_test\python.exe' 'c:\Users\Administrator.cursor\extensions\ms-python.debugpy-2024.6.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy\launcher' '3585' '--' 'd:\xboom\backend\run.p
哎呀,出现问题。请在报告此 Bug 时添加以下详细信息。
在 GitHub 上报告: https://github.com/lzybkr/PSReadLine/issues/new

上 200 个密钥:
\ x b o o m _ e n v _ t e s t \ p y t h o n . e x e ' Space ' c : \ U s e r s \ A d m i n i s t r a t o r \ . c u r s o r \ e x t e n s i o n s \ m s - p y t h o n . d e b u g p y - 2 0 2 4 . 6 . 0 - w i n 3 2 - x 6 4 \ b u n d l e d \ l i b s \ d e b u g p y \ a d a p t e r / . . / . . \ d e b u g p y \ l a u n c h e r ' Space ' 3 5 8 5 ' Space ' - - ' Space ' d : \ x b o o m \ b a c k e n d \ r u n . p y ' Space Enter

异常:
System.ArgumentOutOfRangeException: 该值必须大于或等于零,且必须小于控制台缓冲区
在该维度的大小。
参数名: top
实际值是 -2。
在 System.Console.SetCursorPosition(Int32 left, Int32 top)
在 Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
在 Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
在 Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
在 Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) 在 Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
在 Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
在 Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

PS D:\xboom\backend> & 'e:\ProgramData\anaconda3\envs\xboom_env_test\python.exe' 'c:\Users\Administrator.cursor\extensions\ms-python.debugpy-2024.6.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy\launcher' '3585' '--' 'd:\xboom\backend\run.py
哎呀,出现问题。请在报告此 Bug 时添加以下详细信息。
在 GitHub 上报告: https://github.com/lzybkr/PSReadLine/issues/new

上 200 个密钥:
\ x b o o m _ e n v _ t e s t \ p y t h o n . e x e ' Space ' c : \ U s e r s \ A d m i n i s t r a t o r \ . c u r s o r \ e x t e n s i o n s \ m s - p y t h o n . d e b u g p y - 2 0 2 4 . 6 . 0 - w i n 3 2 - x 6 4 \ b u n d l e d \ l i b s \ d e b u g p y \ a d a p t e r / . . / . . \ d e b u g p y \ l a u n c h e r ' Space ' 3 5 8 5 ' Space ' - - ' Space ' d : \ x b o o m \ b a c k e n d \ r u n . p y ' Space Enter

异常:
System.ArgumentOutOfRangeException: 该值必须大于或等于零,且必须小于控制台缓冲区
在该维度的大小。
参数名: top
实际值是 -2。
在 System.Console.SetCursorPosition(Int32 left, Int32 top)
在 Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
在 Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
在 Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
在 Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) 在 Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
在 Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
在 Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

PS D:\xboom\backend> & 'e:\ProgramData\anaconda3\envs\xboom_env_test\python.exe' 'c:\Users\Administrator.cursor\extensions\ms-python.debugpy-2024.6.0-win32-x64\bundled\libs\debugpy\adapter/../..\debugpy\launcher' '3585' '--' 'd:\xboom\backend\run.py'
哎呀,出现问题。请在报告此 Bug 时添加以下详细信息。
在 GitHub 上报告: https://github.com/lzybkr/PSReadLine/issues/new

上 200 个密钥:
\ x b o o m _ e n v _ t e s t \ p y t h o n . e x e ' Space ' c : \ U s e r s \ A d m i n i s t r a t o r \ . c u r s o r \ e x t e n s i o n s \ m s - p y t h o n . d e b u g p y - 2 0 2 4 . 6 . 0 - w i n 3 2 - x 6 4 \ b u n d l e d \ l i b s \ d e b u g p y \ a d a p t e r / . . / . . \ d e b u g p y \ l a u n c h e r ' Space ' 3 5 8 5 ' Space ' - - ' Space ' d : \ x b o o m \ b a c k e n d \ r u n . p y ' Space Enter

异常:
System.ArgumentOutOfRangeException: 该值必须大于或等于零,且必须小于控制台缓冲区
在该维度的大小。
参数名: top
实际值是 -2。
在 System.Console.SetCursorPosition(Int32 left, Int32 top)
在 Microsoft.PowerShell.PSConsoleReadLine.ReallyRender(RenderData renderData, String defaultColor)
在 Microsoft.PowerShell.PSConsoleReadLine.ForceRender()
在 Microsoft.PowerShell.PSConsoleReadLine.Insert(Char c)
在 Microsoft.PowerShell.PSConsoleReadLine.SelfInsert(Nullable1 key, Object arg) 在 Microsoft.PowerShell.PSConsoleReadLine.ProcessOneKey(ConsoleKeyInfo key, Dictionary2 dispatchTable, Boolean ignoreIfNoAction, Object arg)
在 Microsoft.PowerShell.PSConsoleReadLine.InputLoop()
在 Microsoft.PowerShell.PSConsoleReadLine.ReadLine(Runspace runspace, EngineIntrinsics engineIntrinsics)

PS D:\xboom\backend> & 'e:\ProgramData\anaconda3\envs\xboom_env_test\python.exe' 'c:\Users\Administrator.cursor\extensions\ms-python.debugpy-2024.6.0-win32-x6kend\run.py'
INFO: Will watch for changes in these directories: ['D:\xboom\backend']
INFO: Uvicorn running on http://0.0.0.0:18123 (Press CTRL+C to quit)
INFO: Started reloader process [9912] using WatchFiles
INFO: Started server process [12436]
INFO: Waiting for application startup.
INFO: Application startup complete.

@microsoft-github-policy-service microsoft-github-policy-service bot added the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Feb 11, 2025
@Junon-Gz
Copy link
Author

sorry if I didn't report with English title 😅

Copy link

This issue was already fixed (see #1306). Please upgrade to the 2.3.5 version of PSReadLine from PowerShell Gallery.
See the upgrading section for instructions. Please let us know if you run into the same issue with the latest version.

@microsoft-github-policy-service microsoft-github-policy-service bot removed the Needs-Triage 🔍 It's a new issue that core contributor team needs to triage. label Feb 11, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant