Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Debugger/Evaluator View    [ Add a report in this area ]  
Report #:  33308   Status: Open
Add an hexadecimal view for string/binary content
Project:  Delphi Build #:  N/A
Version:    10.0 Submitted By:   Eric Grange
Report Type:  Suggestion / Enhancement Request Date Reported:  8/31/2006 12:50:21 AM
Severity:    Infrequently encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All platforms Internal Tracking #:   242510
Resolution: None (Resolution Comments) Resolved in Build: : None
Duplicate of:  None
Voting and Rating
Overall Rating: No Ratings Yet
0.00 out of 5
Total Votes: None
Description
Sometimes it is hard to figure out the exact value of a string in the evaluator view, notably when there are many CRLF, ' or ", TAB or other non-alphanumeric characters.

Having an hexadecimal view would alleviate that (hexa bytes on the left characters on the right), f.i. #9'Hello'#13#10 would be viewable as

09 48 65 6C 6C 6F 0D 0A   .Hello..

This would be especially desirable for long strings.
The ',x' specifier could be extended to support that transformation for strings.
Steps to Reproduce:
program Project4;

{$APPTYPE CONSOLE}

uses
  SysUtils;

var
  MyStr: string;
begin
  try
    MyStr := 'abc'#13#10'efg';
    WriteLn(MyStr);  // place a breakpoint to evaluate MyStr here => 'abc'#$D#$A'def'
  except
    on E:Exception do
      Writeln(E.Classname, ': ', E.Message);
  end;
end.
Workarounds
None
Attachment
None
Comments

None

Server Response from: ETNACODE01