Skip to content

Commit 007519a

Browse files
Add a user setting to control whether to show variable's toString value (#587)
Signed-off-by: Jinbo Wang <[email protected]>
1 parent 8b29b5e commit 007519a

File tree

4 files changed

+8
-0
lines changed

4 files changed

+8
-0
lines changed

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -94,6 +94,7 @@ Please also check the documentation of [Language Support for Java by Red Hat](ht
9494
- `java.debug.settings.showStaticVariables`: show static variables in "Variables" viewlet, defaults to `false`.
9595
- `java.debug.settings.showQualifiedNames`: show fully qualified class names in "Variables" viewlet, defaults to `false`.
9696
- `java.debug.settings.showLogicalStructure`: show the logical structure for the Collection and Map classes in "Variables" viewlet, defaults to `true`.
97+
- `java.debug.settings.showToString`: show 'toString()' value for all classes that override 'toString' method in "Variables" viewlet, defaults to `true`.
9798
- `java.debug.settings.maxStringLength`: the maximum length of string displayed in "Variables" or "Debug Console" viewlet, the string longer than this length will be trimmed, defaults to `0` which means no trim is performed.
9899
- `java.debug.settings.hotCodeReplace`: Reload the changed Java classes during debugging, defaults to `manual`. Make sure `java.autobuild.enabled` is not disabled for [VSCode Java](https://github.com/redhat-developer/vscode-java). See the [wiki page](https://github.com/Microsoft/vscode-java-debug/wiki/Hot-Code-Replace) for more information about usages and limitations.
99100
- manual - Click the toolbar to apply the changes.

package.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -428,6 +428,11 @@
428428
"description": "%java.debugger.configuration.showLogicalStructure.description%",
429429
"default": true
430430
},
431+
"java.debug.settings.showToString": {
432+
"type": "boolean",
433+
"description": "%java.debugger.configuration.showToString.description%",
434+
"default": true
435+
},
431436
"java.debug.settings.maxStringLength": {
432437
"type": "number",
433438
"description": "%java.debugger.configuration.maxStringLength.description%",

package.nls.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"java.debugger.configuration.showStaticVariables.description": "Show static variables in \"Variables\" viewlet.",
4141
"java.debugger.configuration.showQualifiedNames.description": "Show fully qualified class names in \"Variables\" viewlet.",
4242
"java.debugger.configuration.showLogicalStructure.description": "Show the logical structure for the Collection and Map classes in \"Variables\" viewlet.",
43+
"java.debugger.configuration.showToString.description": "Show 'toString()' value for all classes that override 'toString' method in \"Variables\" viewlet.",
4344
"java.debugger.configuration.maxStringLength.description": "The maximum length of strings displayed in \"Variables\" or \"Debug Console\" viewlet, strings longer than this length will be trimmed, if 0 no trim is performed.",
4445
"java.debugger.configuration.hotCodeReplace.description": "Reload the changed Java classes during debugging. Make sure 'java.autobuild.enabled' is not disabled.",
4546
"java.debugger.configuration.enableRunDebugCodeLens.description": "Enable the run and debug code lens providers over main methods.",

package.nls.zh.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@
4040
"java.debugger.configuration.showStaticVariables.description": "在“变量”视图中显示静态变量。",
4141
"java.debugger.configuration.showQualifiedNames.description": "在“变量”视图中显示类的全名。",
4242
"java.debugger.configuration.showLogicalStructure.description": "在“变量”视图中显示Collection和Map类的逻辑结构。",
43+
"java.debugger.configuration.showToString.description": "在“变量”视图中显示所有重载过'toString'方法的类的'toString()'值。",
4344
"java.debugger.configuration.maxStringLength.description": "设定“变量”或“调试控制台”视图中显示的字符串最大长度,长度超过部分将被剪掉。如果值为0,则不执行修剪。",
4445
"java.debugger.configuration.hotCodeReplace.description": "在调试期间重新加载已更改的Java类。确保未禁用'java.autobuild.enabled'。",
4546
"java.debugger.configuration.enableRunDebugCodeLens.description": "在main方法上启用CodeLens标记。",

0 commit comments

Comments
 (0)