Squashing Bugs

QFileInfo

QFileInfo no longer causes application segmentation fault when the variable does not exist or has not been initialized.

Using python yield

GDB tries to print the least amount of values needed, but if you just return a list is disregards the set print elements no command. to prevent this, the python key word yield can be used to lazily compute the next needed values.

relevant commit -> here here.

QList Printer

QListPrinter in the debug pane now show if it is uninitialized or empty instead of showing an error.

q_list_initialized

Added Printers

  • QUrl Printer adapted from here and here.
  • QVarArray Printer.
  • QTime Printer.

What is next ?

Automatic testing, currently the way I test the printers is to manually compile and compare the debugger’s result with the expected one, but this gets cumbersome. When you add more printers you are not sure how it would affect previous printers.

More on testing next week as the initial step has begun, bye.