Unlike GDB's pretty printers and LLDB's data formatters, Qt Creator's debugging helpers are independent of the native debugging backend. Qt Creator uses Python scripts to translate raw memory contents and type information data from native debugger backends (GDB, LLDB, and CDB are currently supported) into the form presented to the user in the Locals and Expressions views. Qt Creator ships with debugging helpers for more than 200 of the most popular Qt classes, standard C++ containers, and smart pointers, covering the usual needs of a C++ application developer out-of-the-box. To force the plain display for a single object or for all objects of a given type, select the corresponding option from the context menu. This will still use the Python scripts, but generate more basic output. To force a plain C-like display of structures, select Edit > Preferences > Debugger > Locals & Expressions, and then deselect the Use Debugging Helpers check box. Debugging helpers are always automatically used. To give the user simple access also to these items, Qt Creator employs Python scripts that are called debugging helpers. These items are internally represented by a complex arrangement of pointers, often highly optimized, with part of the data not directly accessible through neither sub-structures nor pointers. This standard representation is good enough for the examination of simple structures, but it does usually not give enough insight into more complex structures, such as QObjects or associative containers. In case the context menu item Dereference Pointers Automatically is selected, the pointer and the target are combined into a single entry, showing the name and the type of the pointer and the value of the target. Similarly, pointers are displayed as a tree item with a single child item representing the target of the pointer. The sub-structures are presented in their in-memory order, unless the Sort Members of Classes and Structs Alphabetically option from the context menu is selected. To access sub-structures of the objects, expand the tree nodes. Structured data, such as objects of class, struct, or union types, is displayed in the Locals and Expressions views as part of a tree.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |