Add in some debug statements.

Refs #9874
Activate the mantiddoc.doctest extension

Refs #9874
Merge branch 'feature/9874_doctest_xunit_output' into develop