diff --git a/core/modules/system/system.install b/core/modules/system/system.install
index 4a8683e..8db6d26 100644
--- a/core/modules/system/system.install
+++ b/core/modules/system/system.install
@@ -633,6 +633,38 @@ function system_requirements($phase) {
     }
   }
 
+  // Check if xdebug.max_nesting_level is below 256, as that will cause issues.
+  // @see https://www.drupal.org/node/2393531
+  if (extension_loaded('xdebug') && ini_get('xdebug.max_nesting_level') < 256) {
+
+    // Report on where correct ini file is to user.
+    $ini_scanned_files = php_ini_scanned_files();
+    $ini_location = php_ini_loaded_file();
+    if ($ini_scanned_files !== false) {
+      $ini_files = explode(',', $ini_scanned_files);
+      foreach ($ini_files as $value) {
+        if (strpos($value, 'xdebug.ini') !== false) {
+          $ini_location = trim($value);
+          break;
+        }
+      }
+    }
+
+    if ($ini_location !== FALSE) {
+      $description = t('A max_nesting_level lower than 256 will cause some pages in your Drupal site to crash. To fix this it is recommended to set <em>xdebug.max_nesting_level=256</em> in your PHP configuration for Xdebug in %iniLocation.', array('%iniLocation' => $ini_location));
+    }
+    else {
+      $description = t('A max_nesting_level lower than 256 will cause some pages in your Drupal site to crash. To fix this it is recommended to set <em>xdebug.max_nesting_level=256</em> in your PHP configuration for Xdebug.');
+    }
+
+    $requirements['xdebug_max_nesting_level'] = array(
+      'title' => t('Xdebug Settings'),
+      'value' => t('xdebug.max_nesting_level is set to %value.', array('%value' => ini_get('xdebug.max_nesting_level'))),
+      'description' => $description,
+      'severity' => REQUIREMENT_ERROR,
+    );
+  }
+
   return $requirements;
 }
 
