microsoft / microsoft/vscode-java-debug
toString() Object View should catch exceptions, or default to false
Nadie ha tomado este issue todavía.
- Lenguaje dominante
- TypeScript
- Estrellas
- 591
- Forks
- 429
- Merge medio
- 1 d 9 h
- PR fusionados (30 d)
- 19
Descripción
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
- set a breakpoint and look at Variables View, where some variables cannot be inspected

- set "Enable toString() Object View" to false

- Now the variables can be expanded:

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
Guía de contribución
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Línea de trabajo
El issue no indica ningún archivo fuente, prueba ni punto de entrada; reprodúcelo en la Variables View con Enable toString() Object View habilitado y, después, sigue la ruta de evaluación de toString() del depurador. Se considera terminado cuando todas las variables siguen pudiéndose expandir e inspeccionar aunque su toString() lance una excepción, y el comportamiento está cubierto por una prueba de regresión adecuada.
Escrito por el modelo de indexación a partir del texto del issue.
Evaluación
- Stack tecnológico
- java, typescript, vscode
- Área
- devtools
- Tipo de issue
- Error
- Dificultad
- 4/5
- Tiempo estimado
- 3-5 días
- Estado de actividad
- Estancado
- Claridad
- Bastante claro
- Aptitud para principiantes
- 42/100