Commit acdae43a authored by hjk's avatar hjk
Browse files

debugger: split an assert

Always nice to know which part failed.
parent c35672ea
......@@ -1331,7 +1331,8 @@ QByteArray WatchHandler::watcherName(const QByteArray &exp)
void WatchHandler::watchExpression(const QString &exp)
{
QTC_ASSERT(m_engine && (m_engine->debuggerCapabilities() & AddWatcherCapability), return ; );
QTC_ASSERT(m_engine, return);
QTC_ASSERT(m_engine->debuggerCapabilities() & AddWatcherCapability, return);
// Do not insert multiple placeholders.
if (exp.isEmpty() && m_watcherNames.contains(QByteArray()))
return;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment