Bug 562885 - Hexdump Detail Formatter for byte[]
Summary: Hexdump Detail Formatter for byte[]
Status: NEW
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Debug (show other bugs)
Version: 4.16   Edit
Hardware: PC Windows 10
: P3 normal (vote)
Target Milestone: ---   Edit
Assignee: JDT-Debug-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords: helpwanted
Depends on:
Blocks:
 
Reported: 2020-05-06 10:09 EDT by Juergen Weber CLA
Modified: 2022-07-17 00:25 EDT (History)
2 users (show)

See Also:


Attachments
Hex View of CDT (25.31 KB, image/png)
2020-05-07 10:50 EDT, Juergen Weber CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description Juergen Weber CLA 2020-05-06 10:09:01 EDT
In the debugger variables view it should be possible to display a byte[] as  Canonical hex+ASCII display (Linux hexdump -C).

E.g. instead of

[71, 73, 79, 80, 1, 2]

it should display

47 49 4f 50 01 02   GIOP..


See also:

https://www.eclipse.org/forums/index.php/m/1826899/

https://stackoverflow.com/questions/3939461/how-do-i-display-a-byte-array-as-an-array-of-hex-bytes-or-unsigned-decimal-number

https://stackoverflow.com/questions/381546/how-can-i-display-a-byte-array-as-a-string-in-javas-debug-detail-formatter/381934

https://bugs.eclipse.org/bugs/show_bug.cgi?id=187922
Comment 1 Stephan Herrmann CLA 2020-05-07 08:34:12 EDT
From a UI perspective, I wonder which approach would be better:

As a (predefined?) detail formatter? (Note that "byte[]" can currently not be used). This would be quite flexible but might require some additional effort to integrate a predefined detail formatter.

Or in the display settings for primitive types? This would slightly bend the interpretation of "primitive" but would probably be easiest to implement.


@Team: any preferences?
Comment 2 Sarika Sinha CLA 2020-05-07 08:58:23 EDT
Anyone interested in providing the support?
Comment 3 Juergen Weber CLA 2020-05-07 10:50:13 EDT
Created attachment 282743 [details]
Hex View of CDT

CDT's debugger has a hexview, but not very nice, as each byte is on a new line.
Comment 4 Eclipse Genie CLA 2022-04-28 08:42:39 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.

--
The automated Eclipse Genie.
Comment 5 Juergen Weber CLA 2022-07-12 10:18:31 EDT
Still relevant.