Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Data Type Renderers in Intellij?

Recent convert to Intellij. Eclipse has a feature in the debugger, "Primitive Display Options", which has the debugger render primitives in hex and ascii values.

Eclipse Debugger

Since everything has been a breeze in Intellij so far, I figured this would be a no brainer, but after an hour and a number of non-functional data type renders later, I find myself ready to crawl back to eclipse. I made a few renderers that worked, but only for objects, so I can only conclude that renderers seem to not work for primitives. Can someone point me in the right direction here?

Edit: I've seen the option to select hex in the default render, but I am hoping for something more than a solution that requires 2 clicks for every variable.

like image 231
Kyle Avatar asked Feb 14 '14 05:02

Kyle


2 Answers

There is an option (checkbox) to permanently change all primitives to display as Hex under the options for Data Views. See:

Settings > Build, Execution, Deployment > Debugger > Data Views > Java >

"Show hex value for primitives"

enter image description here

like image 59
Ajax Avatar answered Sep 27 '22 22:09

Ajax


You can also try DeltaHex Editor plugin for IntelliJ based IDEs which can show window with typical hex + text preview for byte array in debugger.

DeltaHex Editor Plugin Debug Byte Array Image

Plugin is available in Settings/Plugins/Browse repositories/Search for DeltaHex

like image 38
HajdaM Avatar answered Sep 27 '22 21:09

HajdaM