Sven van den Boogaart
Sven van den Boogaart

Reputation: 12317

How to find the source of a message, output by Qt?

When running my qt application, that is updated from qt 5.9 to qt 5.15, I get the following application output:

Using QByteRef with an index pointing outside the valid range of a QByteArray

The application is quite big and has plenty qbytearrays and qbyterefs. The project is a few thousand files big so I do not want to search for it manually. Is there an easy way to find the location of the application output. e.g. show the line/file that generates the output. The line is generated by qt and not a custom qdebug or anything.

Upvotes: 3

Views: 1534

Answers (1)

scopchanov
scopchanov

Reputation: 8399

I would suggest you to check Stop when qWarning() is called under the Debugger section of the Qt Creator's Options:

enter image description here

By default, this option is off, as shown in the screenshot.

Upvotes: 5

Related Questions