Watch, Follow, &
Connect with Us
Public Report
Report From: Delphi-BCB/Debugger/Inspector    [ Add a report in this area ]  
Report #:  31964   Status: Closed
Debug inspector decodes
Project:  Delphi Build #:  10.0.2288.42451
Version:    10.0 Submitted By:   Leroy Casterline
Report Type:  Suggestion / Enhancement Request Date Reported:  8/1/2006 7:36:27 AM
Severity:    Commonly encountered problem Last Updated: 3/20/2012 2:24:39 AM
Platform:    All versions Internal Tracking #:   241407
Resolution: Duplicate (Resolution Comments) Resolved in Build: : 12.0.3170.16989
Duplicate of:  None
Voting and Rating
Overall Rating: (2 Total Ratings)
5.00 out of 5
Total Votes: None
Description
It would be helpful if the Debug Inspector could decode certain parameters. For example, when I inspect the Params argument to a CreateWindowHandle call, two of the items listed for TCreateParams are ExStyle and Style. I would like a + to the left of each which would, when opened, decode the values to list the actual styles specified.
Steps to Reproduce:
N/A
Workarounds
None
Attachment
None
Comments

Florent Ouchet at 10/19/2006 11:29:31 AM -
These fields are pure integer values, I wonder how the debugger could know they are storing some sets of constants.

Leroy Casterline at 10/19/2006 2:36:13 PM -
<quote>
These fields are pure integer values, I wonder how the debugger could know they are storing some sets of constants.
</quote>

It knows that it's inspecting a TCreateParams structure, so it can also know how to decode its fields.

If the decoding info were stored in an editable file, then we could add our own decodes so DevCo wouldn't have to do all of the work.

Florent Ouchet at 10/22/2006 6:43:55 AM -
ok, it could be valuable to generalize this functionality to handle more fields. The problem is that ordinal fields may not be just a set but could contain any combinaison a exclusive flags:

MY_FLAG_1 = $0001; // may not be combined with 2 and 3
MY_FLAG_2 = $0002; // may not be combined with 1 and 3
MY_FLAG_2 = $0003; // may not be combined with 1 and 2
MY_FLAG_3 = $0004;
MY_FLAG_4 = $0008;
....

Leroy Casterline at 10/23/2006 7:50:45 AM -
<quote>
ok, it could be valuable to generalize this functionality to handle more fields. The problem is that ordinal fields may not be just a set but could contain any combinaison a exclusive flags:

MY_FLAG_1 = $0001; // may not be combined with 2 and 3
MY_FLAG_2 = $0002; // may not be combined with 1 and 3
MY_FLAG_2 = $0003; // may not be combined with 1 and 2
MY_FLAG_3 = $0004;
MY_FLAG_4 = $0008;
....
</quote>

There may be some cases that can't be handled simply, but this could be solved by a more flexible decode file format. In the short run, perhaps we just don't provide a way to decode these cases. Something is better than nothing, IMO.

Server Response from: ETNACODE01