User forums > Help

Change the format in the debugger

<< < (2/2)

yop:
The debugger can only show you POD values (int char long etc.), you can't use it with QStrings. Take a look in my answers in http://www.qtcentre.org/forum/showthread.php?p=1965#post1965 to see a workaround that I haven't used with C::B but illustrates that you need to take some extra steps to show non POD values using gdb. mandrav has added support for wxStrings and other containers in the debugger using angelscript. It should be possible to add support for more. I'm used to ddd as a debugger frontend so I must admit I haven't used the C::B debugging capabilities that much, but who knows maybe I'll take a look at QString and some other Qt containers (QValueList, QMap etc.)

lordkrotos:
Ok, thanks every body  , I will look at the debuggers scripts.

leandro:
Hi everybody... I have the following problem... I'm developing an application in C++ using Code::Blocks and QT Framework libraries... I have also read that in Code::Blocks there is the possibility to write scripts (I'm trying modifing the "gdb_types.script" file)... Super! Since I discovered this information I put my old IDE away and started to use only Code::Blocks... But I have a common problem... I would like to watch QString types variables as real strings and not as pointers like it was done with wxStrings. So I tried without success to adapt the original script file to support QString classes but I never used GDB from the command line(I always use frontends for GDB or another compiler/debug combination), and I didn't uderstand the logic implemented in the original script file for wxStrings, STL Vectors and so on... Is there some documentation explaining (a tutorial or an API) how to improve this script and solve this kind of question?

Thank you very much in advance

Navigation

[0] Message Index

[*] Previous page

Go to full version