Details
-
Suggestion
-
Resolution: Unresolved
-
P3: Somewhat important
-
None
Description
Currently, printing an object will result in output like this:
MyObject(0x60700026e920, "myObjectName")
It would be nice if the object's operator<<(QDebug) would be used instead (or just call QDebug::toString(object)). That way we could get useful debug information about a n object without having to define an invokable member function.
See also: https://lists.qt-project.org/pipermail/development/2015-November/023713.html
Attachments
Issue Links
- relates to
-
QTBUG-92192 Issues calling JSON.stringify() on objects
- Closed
-
QTBUG-60057 When using console.log(), it is not utilizing any registered custom debug stream operators for custom types
- Closed