microsoft / microsoft/vscode-java-debug
Is there a way to see the full toString() content of a variable, including newlines?
Ouverte
@testforstephen y travaille déjà.
Depuis le 19/1/2022.
ai-triaged
bug
question
variables
- Langage dominant
- TypeScript
- Étoiles
- 591
- Forks
- 429
- Merge moyen
- 1 j 9 h
- PR mergées (30 j)
- 19
Description
When debugging and hoving over a variable, or watching the variable in the Variables/Watch panels, is there a way to see the full result of toString() including the newlines?
Environment
- Operating System: Linux
- JDK version: 1.8
- Visual Studio Code version: 1.63.2
- Java extension version: 1.2.0
- Java Debugger extension version: 0.37.0
Steps To Reproduce
- Create an instance of a
SomeClassclass that has:
@Override
public String toString() {
return "toto\ntiti";
}
- Add a breakpoint on a line where you can hover the instance to inspect it.
Current Result
The popup debug window displays: SomeClass@123 "toto
Expected Result
The popup debug window displays:
SomeClass@123
"toto
titi"
Additional Informations
This can especially useful when the toString() result is something like a JSON object that is human friendly formatted.
Ideally the full result would be in a zone where it could be easily copied!
Guide de contribution
Ouvrir le guide de contribution
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Évaluation
Cette issue n'a pas encore été évaluée.