Skip to content

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

@Junon-Gz

Description

@Junon-Gz

以下是当此在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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions