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

toString() Object View should catch exceptions, or default to false

未關閉
#1,297 8 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
42/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
java, typescript, vscode
領域
devtools

研究方向

該 issue 沒有指明原始檔、測試或進入點;請在啟用 Enable toString() Object View 的情況下,於 Variables View 中重現該問題,然後追蹤偵錯器的 toString() 評估路徑。完成標準是:即使變數的 toString() 擲出例外,每個變數仍可展開和檢查,且該行為由適當的回歸測試涵蓋。

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

描述

ai-triaged bug enhancement evaluation ux variables

When using the vscode java debugger, the experience can be really bad because some variables cannot be inspected seemingly for no reason. This gives the impression that the extension is still very buggy. It took me a long time to find out that disabling the toString() Object View solves that problem.

Likely there are exceptions thrown during toString() execution for those variables. These should either be caught, or the default for "Enable toString() Object View" should be false.

Environment
  • Operating System: MacOS Ventura 13.2
  • JDK version: debugee is OpenJDK Runtime Environment Homebrew (build 11.0.18+0)
  • Visual Studio Code version: 1.75.1 (Universal) Commit: 441438abd1ac652551dbe4d408dfcec8a499b8bf
  • Java extension version: v1.14.0
  • Java Debugger extension version: 0.48.0 - 2023-02-01
Steps To Reproduce
  1. set a breakpoint and look at Variables View, where some variables cannot be inspected
    image
  2. set "Enable toString() Object View" to false
    image
  3. Now the variables can be expanded:
    image
Current Result

Some variables cannot be inspected

Expected Result

It should be possible to inspect all variables, regardless of whether their toString() method throws an exception

主要語言
TypeScript
星號
591
分支
429
平均合併
1 天 1 小時
30 天內合併 PR
20

貢獻指南

開啟貢獻指南

從這裡開始

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

microsoft/vscode-java-debug 的其他 Issue

查看 microsoft/vscode-java-debug 的全部 Issue

相似的 Issue

更多 TypeScript Issue

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

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