<div dir="ltr">The problem is in the debugger for kdevelop if you are checking the pointer value in kdevelop or any IDE <div><br></div><div>it does not show any other value except the pointer value  when viewing a pointer </div><div><br></div><div>in contrast to `std::string*` it shows the fields of a std::string.    however i just realised that those value show without the standard printers </div><div><br></div><div><br></div><div>The current problem i am facing now is how to automate the test cases, </div><div>i am not sure how to go about that, it is to make sure that older classes are not affected when new printer classes are created</div><div><br></div><div><br></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, 29 Jun 2021 at 16:41, Thomas Baumgart <<a href="mailto:thb@net-bembel.de">thb@net-bembel.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><br>
On Samstag, 26. Juni 2021 17:35:59 CEST Thomas Baumgart wrote:<br>
<br>
> On Donnerstag, 17. Juni 2021 17:28:24 CEST Da Viper wrote:<br>
> <br>
> > Hello there,<br>
> > <br>
> > This is a continuation of the chat from the telegram group<br>
> > <br>
> > - Manual Test<br>
> > The way i perform manual test is that, I create a cpp file then instantiate<br>
> > the class with all possible constructors and input the set a break point at<br>
> > the bottom to compare all the output  to the given input<br>
> > i am not sure of a way to make this automatic as it would be easier to know<br>
> > when new changes affect existing code instead of performing all the test<br>
> > for the hundred of classes<br>
> <br>
> I am not sure if I understand the above so that I am able to duplicate it.<br>
> Also, where do you have your code available for duplication?<br>
> <br>
> > - Printing Classes instantiated as pointer<br>
> > for example if we have a qstring created like this<br>
> > <br>
> > `QString qsst("this is another string");`<br>
> >  `QString *thePtr = &qsst;`<br>
> > <br>
> > if i am to create a printer for qstring it does not apply the printer for<br>
> > the variable `thePtr`<br>
> > i am not sure how to fix the problem ( however the same also happens for<br>
> > `std::string` but it is also included the value later)<br>
> <br>
> Having access to your printers may certainly help us to make suggestions.<br>
> Otherwise, this is somewhat shooting in the dark.<br>
<br>
Now that I have access, I could try to duplicate this. To me this look like<br>
it is working:<br>
<br>
7          QString qsst("this is another string");<br>
(gdb) n<br>
8          QString *thePtr = &qsst;<br>
(gdb) p qsst<br>
$1 = "this is another string"<br>
(gdb) n<br>
10         QString str("firstString");<br>
(gdb) p thePtr<br>
$2 = (QString *) 0x7fffffffd658<br>
(gdb) p *thePtr<br>
$3 = "this is another string"<br>
<br>
Does that make sense?<br>
<br>
-- <br>
<br>
Regards<br>
<br>
Thomas Baumgart<br>
<br>
<a href="https://www.signal.org/" rel="noreferrer" target="_blank">https://www.signal.org/</a>       Signal, the better WhatsApp<br>
-------------------------------------------------------------<br>
There are two rules for success in life:<br>
Rule 1: Don't tell people everything you know.<br>
-------------------------------------------------------------<br>
</blockquote></div>