RE: How to implement an abbreviated view of a class type

Mary Ma via Gdb <[email protected]>
Newsgroups gmane.comp.gdb.devel
Message-ID <IA1PR05MB92413A8647534F2957A8E995DC469@IA1PR05MB9241.namprd05.prod.outlook.com>
Hello Eli,

Thank you for your help.

The interactive feature of the 'explore' command is exactly what we are looking for. However, based on my investigation, it appears that I can only explore the default view of a type using the 'explore' command. Is it possible to explore the custom view defined by pretty printing function?

Please let me know if this is feasible and if there are any additional steps needed to achieve this. I appreciate your assistance.

Best regards,
Mary

-----Original Message-----
From: Eli Zaretskii <[email protected]> 
Sent: Wednesday, May 24, 2023 2:27 PM
To: Mary Ma <[email protected]>
Cc: [email protected]
Subject: Re: How to implement an abbreviated view of a class type

> Date: Wed, 24 May 2023 18:07:06 +0000
> From: Mary Ma via Gdb <[email protected]>
> 
> However, the challenge I'm facing is that the command line interface displays all the information of a class type at once including inheritance, properties, subclasses. This makes the output overwhelming for developers, especially when encountering cyclic structures.
> 
> For instance, it's possible that Type A points to Type B and vice versa, creating a cyclic relationship that makes the view look messy.
> 
> I am wondering if there are ways to present an abbreviated view of a type and allow developers to have further control over the amount of detail in the output, depending on what developers want to see.

Did you try using the 'explore' command?

There are also several settings for the 'print' command, all of them starting with "set print type".
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.