Hacktoberfest 2026:維護者為十月標記出來的 issue,仍然開放、適合新手。 瀏覽 Hacktoberfest issue

Trying to "wait for debugger" in tests doesn't work

未關閉
#676 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
3/5
預估耗時
1-2 天
新手友好度
35/100
Issue 類型
重構
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
csharp, powershell, vscode
領域
testing-qa

研究方向

檢查 LanguageServerTests.cs 和 DebugServerTests.cs 中與偵錯工具附加相關的程式碼行,從連結的 LanguageServerTests.cs 位置開始。在 VSCode 中重現此行為,並將原生錯誤對話方塊及測試執行的繼續情況,與預期的偵錯工作流程進行比較。當過時的行為已被移除,或由提議的測試執行器暫停和程序識別取代,且測試提供可用的附加點時,即視為完成。

由索引模型根據 Issue 內容生成。

描述

Area-Test Issue-Bug

There are lines in both LanguageServerTests.cs and DebugServerTests.cs that can be uncommented to enable debugger attachment:

https://github.com/PowerShell/PowerShellEditorServices/blob/4bb71bd93320ba9b2105e3b5d2007f09f0f4a959/test/PowerShellEditorServices.Test.Host/LanguageServerTests.cs#L53

However, trying these in VSCode, I just get a bunch of error dialogs pop up in the machine's native UI and the tests just plough on and fail. I'm guessing this option is meant for Visual Studio usage, rather than VSCode.

I'm thinking we should retire this functionality and instead add a compile-time-conditional block with something like a Console.ReadKey() that reports the process ID of the test runner (that's how I tend to do it at the moment at least).

主要語言
C#
星號
767
分支
266
平均合併
3 天 16 小時
30 天內合併 PR
1

貢獻指南

開啟貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

PowerShell/PowerShellEditorServices 的其他 Issue

查看 PowerShell/PowerShellEditorServices 的全部 Issue

相似的 Issue

更多 C# Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。