diff --git a/core/modules/system/system.install b/core/modules/system/system.install
index 4a8683e..2bfb472 100644
--- a/core/modules/system/system.install
+++ b/core/modules/system/system.install
@@ -633,6 +633,42 @@ function system_requirements($phase) {
     }
   }
 
+  // Check whether xdebug.max_nesting_level is below 256 since if so, will cause issues
+  // @see https://www.drupal.org/node/2393531
+  if (function_exists('xdebug_enable') && ini_get('xdebug.max_nesting_level') < 256) {
+
+    // Report on where correct ini file is to user
+    $iniLocation = false;
+    $iniScannedFiles = php_ini_scanned_files();
+    if ($iniScannedFiles !== false) {
+      $iniFiles = explode(',', php_ini_scanned_files());
+      foreach ($iniFiles as $value) {
+        if (strpos($value, 'xdebug.ini') !== false) {
+          $iniLocation = trim($value);
+          break;
+        }
+      }
+    }
+
+    if (!$iniLocation) {
+      $iniLocation = php_ini_loaded_file();
+    }
+
+    $description = 'A max_nesting_level lower than 256 will cause issues with Drupal. To fix this set <em>xdebug.max_nesting_level=256</em> in your PHP configuration for Xdebug';
+    if ($iniLocation) {
+      $description = t($description . ' in <em>@iniLocation</em>', array('@iniLocation' => $iniLocation));
+    } else {
+      $description = t($description);
+    }
+
+    $requirements['xdebug_max_nesting_level'] = array(
+      'title' => t('Xdebug Settings'),
+      'value' => t('xdebug.max_nesting_level set to @value', array('@value' => ini_get('xdebug.max_nesting_level'))),
+      'description' => $description,
+      'severity' => REQUIREMENT_ERROR,
+    );
+  }
+
   return $requirements;
 }
 
