fuzzer: add a nice place to set a breakpoint

This commit is contained in:
Sergio Martins
2020-05-13 19:35:55 +01:00
parent 68acdaeb9a
commit 137cf017c4
3 changed files with 15 additions and 3 deletions

View File

@@ -92,6 +92,15 @@ void Fuzzer::runTest(const Test &test)
for (const auto &op : operations) {
index++;
#if 0
// Uncomment to set a breakpoint! Check the last good index printed in the terminal
if (index == 82) {
qDebug() << "About to run the bad guy. Layout:";
DockRegistry::self()->checkSanityAll(/*dumpDebug=*/true);
qDebug() << "Running the bad guy:";
}
#endif
op->execute();
if (op->hasParams())
qDebug() << "Ran" << op->description() << index;