diff --git a/core/modules/simpletest/src/BrowserTestBase.php b/core/modules/simpletest/src/BrowserTestBase.php
index dc933ac..208194e 100644
--- a/core/modules/simpletest/src/BrowserTestBase.php
+++ b/core/modules/simpletest/src/BrowserTestBase.php
@@ -35,7 +35,6 @@
  * Note that this class does not yet have feature parity with WebTestBase, so
  * WebTestBase should be used where possible. In particular, this class does
  * not yet have the following features:
- * - verbose output - see https://www.drupal.org/node/2469721
  * - ajax form emulation - see https://www.drupal.org/node/2469713
  *
  * Tests extending BrowserTestBase must exist in the
diff --git a/core/modules/simpletest/src/DebugBrowserTestBase.php b/core/modules/simpletest/src/DebugBrowserTestBase.php
new file mode 100644
index 0000000..b0d55ed
--- /dev/null
+++ b/core/modules/simpletest/src/DebugBrowserTestBase.php
@@ -0,0 +1,181 @@
+<?php
+/**
+ * @file
+ * Contains Drupal\simpletest\DebugBrowserTestBase.
+ */
+
+namespace Drupal\simpletest;
+use Drupal\Component\Utility\Html;
+use Drupal\Component\Utility\UrlHelper;
+use Drupal\Core\Url;
+
+/**
+ * Provides a test case for functional Drupal tests with output support.
+ *
+ * Note that this class does not yet have feature parity with WebTestBase, so
+ * WebTestBase should be used where possible. In particular, this class does
+ * not yet have the following features:
+ * - ajax form emulation - see https://www.drupal.org/node/2469713
+ *
+ * Tests extending DebugBrowserTestBase must exist in the
+ * Drupal\Tests\yourmodule\Functional namespace and live in the
+ * modules/yourmodule/Tests/Functional directory.
+ *
+ * To enable debug output, set the BROWSERTEST_OUTPUT_DIRECTORY environment
+ * variable to a directory into which the .html files should be put.
+ *
+ * To ensure linked stylesheets work, using a directory inside the files
+ * directory is recommended, such as the existing directory added by simpletest
+ * e.g. sites/default/files/simpletest/verbose.
+ *
+ * @ingroup testing
+ */
+class DebugBrowserTestBase extends BrowserTestBase {
+
+  /**
+   * Class name for verbose logging.
+   *
+   * @var string
+   */
+  protected $verboseClassName;
+
+  /**
+   * Directory name for verbose logging.
+   *
+   * @var string
+   */
+  protected $verboseDirectory;
+
+  /**
+   * Counter storage for verbose logging.
+   *
+   * @var string
+   */
+  protected $verboseCounterStorage;
+
+  /**
+   * Counter for verbose logging.
+   *
+   * @var int
+   */
+  protected $verboseCounter = 1;
+
+  /**
+   * Verbose output enabled.
+   *
+   * @var bool
+   */
+  protected $verboseOutput = FALSE;
+
+  /**
+   * Verbose test ID.
+   *
+   * @var int
+   */
+  protected $verboseTestId;
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function setUp() {
+    parent::setup();
+    $verbose_directory = getenv('BROWSERTEST_OUTPUT_DIRECTORY');
+    $this->verboseOutput = (bool) $verbose_directory;
+    $this->verboseClassName = str_replace("\\", "_", get_called_class());
+    $this->verboseDirectory = rtrim($verbose_directory, '/');
+    $this->verboseCounterStorage = $this->verboseDirectory . '/' . $this->verboseClassName . '.counter';
+    $this->verboseTestId = str_replace('sites/simpletest/', '', $this->siteDirectory);
+    if (is_file($this->verboseCounterStorage)) {
+      $this->verboseCounter = max(1, (int) file_get_contents($this->verboseCounterStorage)) + 1;
+    }
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function drupalGet($path, array $options = array()) {
+    $out = parent::drupalGet($path, $options);
+    // The URL generator service is not necessarily available yet; e.g., in
+    // interactive installer tests.
+    if ($this->container->has('url_generator')) {
+      if (UrlHelper::isExternal($path)) {
+        $url = Url::fromUri($path, $options)->toString();
+      }
+      else {
+        // This is needed for language prefixing.
+        $options['path_processing'] = TRUE;
+        $url = Url::fromUri('base:/' . $path, $options)->toString();
+      }
+    }
+    else {
+      $url = $this->getAbsoluteUrl($path);
+    }
+    if ($this->verboseOutput) {
+      $verbose = 'GET request to: ' . $url .
+        '<hr />Ending URL: ' . $this->getSession()->getCurrentUrl();
+      $verbose .= '<hr />' . $out;
+      $verbose .= $this->getVerboseHeaders();
+      $this->verbose($verbose);
+    }
+    return $out;
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  protected function submitForm(array $edit, $submit, $form_html_id = NULL) {
+    // Get the form.
+    $assert_session = $this->assertSession();
+    if (isset($form_html_id)) {
+      $form = $assert_session->elementExists('xpath', "//form[@id='$form_html_id']");
+      $action = $form->getAttribute('action');
+    }
+    else {
+      $submit_button = $assert_session->buttonExists($submit);
+      $form = $assert_session->elementExists('xpath', './ancestor::form', $submit_button);
+      $action = $form->getAttribute('action');
+    }
+    parent::submitForm($edit, $submit, $form_html_id);
+    if ($this->verboseOutput) {
+      $out = $this->getSession()->getPage()->getContent();
+      $verbose = 'POST request to: ' . $action .
+        '<hr />Ending URL: ' . $this->getSession()->getCurrentUrl();
+      $verbose .= '<hr />' . $out;
+      $verbose .= $this->getVerboseHeaders();
+      $this->verbose($verbose);
+    }
+  }
+
+  /**
+   * Logs a verbose message in a text file.
+   *
+   * The link to the verbose message will be printed by the results printer.
+   *
+   * @param string $message
+   *   The verbose message to be stored.
+   *
+   * @see \Drupal\Tests\Listeners\VerbosePrinter::printResult()
+   */
+  protected function verbose($message) {
+    if (!$this->verboseOutput) {
+      return;
+    }
+    $message = '<hr />ID #' . $this->verboseCounter . ' (<a href="' . $this->verboseClassName . '-' . ($this->verboseCounter - 1) . '-' . $this->verboseTestId . '.html">Previous</a> | <a href="' . $this->verboseClassName . '-' . ($this->verboseCounter + 1) . '-' . $this->verboseTestId . '.html">Next</a>)<hr />' . $message;
+    $verbose_filename = $this->verboseClassName . '-' . $this->verboseCounter . '-' . $this->verboseTestId . '.html';
+    file_put_contents($this->verboseDirectory . '/' . $verbose_filename, $message);
+    file_put_contents($this->verboseCounterStorage, $this->verboseCounter++);
+  }
+
+  /**
+   * Returns headers in verbose format.
+   *
+   * @return string
+   *   Verbose headers.
+   */
+  protected function getVerboseHeaders() {
+    return '<hr />Headers: <pre>' . Html::escape(var_export(array_map(function($headers) {
+      return implode(';', array_map('trim', $headers));
+    }, $this->getSession()->getResponseHeaders()), TRUE)) . '</pre>';
+  }
+
+}
diff --git a/core/modules/simpletest/tests/src/Functional/BrowserTestBaseTest.php b/core/modules/simpletest/tests/src/Functional/BrowserTestBaseTest.php
index d660b1f..e78e40c 100644
--- a/core/modules/simpletest/tests/src/Functional/BrowserTestBaseTest.php
+++ b/core/modules/simpletest/tests/src/Functional/BrowserTestBaseTest.php
@@ -7,14 +7,14 @@
 
 namespace Drupal\Tests\simpletest\Functional;
 
-use Drupal\simpletest\BrowserTestBase;
+use Drupal\simpletest\DebugBrowserTestBase;
 
 /**
  * Tests BrowserTestBase functionality.
  *
  * @group simpletest
  */
-class BrowserTestBaseTest extends BrowserTestBase {
+class BrowserTestBaseTest extends DebugBrowserTestBase {
 
   /**
    * Modules to enable.
diff --git a/core/phpunit.xml.dist b/core/phpunit.xml.dist
index 2620fe9..a1202ef 100644
--- a/core/phpunit.xml.dist
+++ b/core/phpunit.xml.dist
@@ -5,7 +5,8 @@
          beStrictAboutTestsThatDoNotTestAnything="true"
          beStrictAboutOutputDuringTests="true"
          beStrictAboutChangesToGlobalState="true"
-         checkForUnintentionallyCoveredCode="false">
+         checkForUnintentionallyCoveredCode="false"
+         printerClass="\Drupal\Tests\Listeners\VerbosePrinter">
   <php>
     <!-- Set error reporting to E_ALL. -->
     <ini name="error_reporting" value="32767"/>
diff --git a/core/tests/Drupal/Tests/Listeners/VerbosePrinter.php b/core/tests/Drupal/Tests/Listeners/VerbosePrinter.php
new file mode 100644
index 0000000..723bf5f
--- /dev/null
+++ b/core/tests/Drupal/Tests/Listeners/VerbosePrinter.php
@@ -0,0 +1,98 @@
+<?php
+/**
+ * @file
+ * Contains \Drupal\Tests\Listeners\VerbosePrinter.
+ */
+
+namespace Drupal\Tests\Listeners;
+
+/**
+ * Defines a class for providing verbose results for verbose aware tests.
+ */
+class VerbosePrinter extends \PHPUnit_TextUI_ResultPrinter {
+
+  protected $directory;
+  /**
+   * {@inheritdoc}
+   */
+  public function __construct($out, $verbose, $colors, $debug, $numberOfColumns) {
+    parent::__construct($out, $verbose, $colors, $debug, $numberOfColumns);
+    if ($verbose_directory = getenv('BROWSERTEST_OUTPUT_DIRECTORY')) {
+      // Initialize verbose debugging.
+      $this->directory = rtrim($verbose_directory, '/');
+      // Check if directory exists.
+      if (is_dir($this->directory)) {
+        // Remove it.
+        $this->cleanUpLastTestRun($this->directory);
+      }
+      // Create the directory.
+      if (mkdir($this->directory, 0775)) {
+        if (is_writable($this->directory)) {
+          chmod($this->directory, 0775);
+        }
+        file_put_contents($this->directory . '/.htaccess', "<IfModule mod_expires.c>\nExpiresActive Off\n</IfModule>\n");
+      }
+      else {
+        $this->writeWithColor('bg-red, fg-black', "Verbose directory {$this->directory} could not be created.");
+        $this->directory = NULL;
+      }
+    }
+  }
+
+  /**
+   * {@inheritdoc}
+   */
+  public function printResult(\PHPUnit_Framework_TestResult $result) {
+    parent::printResult($result);
+
+    if (!$this->directory) {
+      $this->writeWithColor('bg-yellow, fg-black', 'No verbose output was generated');
+      $this->writeNewLine();
+      $this->write('To generate verbose output for functional tests, set the BROWSERTEST_OUTPUT_DIRECTORY environment variable.');
+      $this->writeNewLine();
+      $this->write('e.g export BROWSERTEST_OUTPUT_DIRECTORY="/path/to/webroot/sites/default/files/simpletest/verbose".');
+      $this->writeNewLine();
+      return;
+    }
+
+    $counter = 0;
+    foreach (glob($this->directory . '/*.html') as $filename) {
+      if (!$counter) {
+        $this->writeNewLine();
+        $this->writeWithColor('bg-yellow, fg-black', 'Verbose Output was generated');
+      }
+      $this->write($filename);
+      $this->writeNewLine();
+      $counter++;
+    }
+    if ($counter) {
+      $this->writeWithColor('bg-yellow, fg-black', sprintf('%d verbose files', $counter));
+    }
+  }
+
+  /**
+   * Cleans up last run.
+   *
+   * @param string $directory
+   *   Directory to remove.
+   */
+  protected function cleanUpLastTestRun($directory) {
+    if (isset($directory) && is_dir($directory)) {
+      $objects = scandir($directory);
+      foreach ($objects as $object) {
+        if ($object !== "." && $object !== "..") {
+          $filename = $directory . "/" . $object;
+          if (filetype($filename) == "directory") {
+            $this->cleanUpLastTestRun($filename);
+          }
+          else {
+            unlink($filename);
+          }
+        }
+      }
+      reset($objects);
+      rmdir($directory);
+    }
+  }
+
+}
