netbeans icon indicating copy to clipboard operation
netbeans copied to clipboard

Debugger: show BigDecimal value in variables

Open NicolaIsotta opened this issue 1 year ago • 2 comments

Description

During debugging, in the "Variables" tab, it would useful to see the BigDecimal value instead of its reference, just like it currently happens for Double or other Number implementations.

Use case/motivation

image

Related issues

No response

Are you willing to submit a pull request?

No

NicolaIsotta avatar Apr 02 '24 12:04 NicolaIsotta

Workaround found: add a formatter under Tools -> Options -> Java -> Java Debugger -> Variable Formatters image

NicolaIsotta avatar Apr 03 '24 08:04 NicolaIsotta

default formatters would be here: https://github.com/apache/netbeans/blob/668bca250cd66fd580b6bc3bc34412e80e324f66/java/debugger.jpda/src/org/netbeans/modules/debugger/jpda/expr/formatters/VariablesFormatter.java#L303

mbien avatar May 06 '24 19:05 mbien