diff --git a/core/tests/Drupal/KernelTests/KernelTestBase.php b/core/tests/Drupal/KernelTests/KernelTestBase.php
index 6a35f15..f763da5 100644
--- a/core/tests/Drupal/KernelTests/KernelTestBase.php
+++ b/core/tests/Drupal/KernelTests/KernelTestBase.php
@@ -25,6 +25,10 @@
 use PHPUnit\Framework\TestCase;
 use Symfony\Component\DependencyInjection\Reference;
 use Symfony\Component\HttpFoundation\Request;
+use Symfony\Component\VarDumper\VarDumper;
+use Symfony\Component\VarDumper\Cloner\VarCloner;
+use Symfony\Component\VarDumper\Dumper\CliDumper;
+use Symfony\Component\VarDumper\Dumper\HtmlDumper;
 use org\bovigo\vfs\vfsStream;
 use org\bovigo\vfs\visitor\vfsStreamPrintVisitor;
 
@@ -208,6 +212,28 @@
   public static function setUpBeforeClass() {
     parent::setUpBeforeClass();
 
+    $date = date(DATE_ISO8601);
+    file_put_contents(static::getDrupalRoot() . '/dump.txt', "Starting test at $date!\n", \FILE_APPEND);
+    // Set up dumper.
+    VarDumper::setHandler(function ($var) {
+        $cloner = new VarCloner();
+        $dumper = new CliDumper(function($line) {
+          file_put_contents(static::getDrupalRoot() . '/dump.txt', $line . "\n", \FILE_APPEND);
+
+          /*
+          // This works, but how do we get the lines back out???
+          $state = \Drupal::state();
+
+          $lines = $state->get('kernel_dump', []);
+          $lines[] = $line;
+
+          $state->set('kernel_dump', $lines);
+          */
+        });
+
+        $dumper->dump($cloner->cloneVar($var));
+    });
+
     // Change the current dir to DRUPAL_ROOT.
     chdir(static::getDrupalRoot());
   }
@@ -610,6 +636,21 @@ protected function assertPostConditions() {
    * {@inheritdoc}
    */
   protected function tearDown() {
+    // Set up dumper.
+    // TODO! This doesn't work, as we're still in the child process here!
+    /*
+    VarDumper::setHandler(function ($var) {
+        $cloner = new VarCloner();
+        $dumper = new CliDumper();
+
+        $dumper->dump($cloner->cloneVar($var));
+    });
+    $lines = \Drupal::state()->get('kernel_dump');
+    dump($lines);
+    */
+
+
+
     // Destroy the testing kernel.
     if (isset($this->kernel)) {
       $this->kernel->shutdown();
