Page MenuHomeIn-Portal Phabricator

D493.diff
No OneTemporary

File Metadata

Created
Fri, Jun 13, 5:24 PM

D493.diff

Index: branches/5.2.x/core/kernel/utility/debugger.php
===================================================================
--- branches/5.2.x/core/kernel/utility/debugger.php
+++ branches/5.2.x/core/kernel/utility/debugger.php
@@ -451,6 +451,8 @@
DebuggerUtil::safeDefine('DBG_ZEND_PRESENT', 0); // set this constant value to 0 (zero) to debug debugger using Zend Studio
+ $document_root = str_replace('\\', '/', realpath($_SERVER['DOCUMENT_ROOT'])); // Windows hack.
+
// set default values for debugger constants
$dbg_constMap = Array (
'DBG_USE_HIGHLIGHT' => 1, // highlight output same as php code using "highlight_string" function
@@ -458,9 +460,9 @@
'DBG_USE_SHUTDOWN_FUNC' => DBG_ZEND_PRESENT ? 0 : 1, // use shutdown function to include debugger code into output
'DBG_HANDLE_ERRORS' => DBG_ZEND_PRESENT ? 0 : 1, // handle all allowed by php (see php manual) errors instead of default handler
'DBG_DOMVIEWER' => '/temp/domviewer.html', // path to DOMViewer on website
- 'DOC_ROOT' => str_replace('\\', '/', realpath($_SERVER['DOCUMENT_ROOT']) ), // windows hack
- 'DBG_LOCAL_BASE_PATH' => 'w:', // replace DOC_ROOT in filenames (in errors) using this path
- 'DBG_EDITOR_URL' => 'file://%F:%L',
+ 'DOC_ROOT' => $document_root,
+ 'DBG_LOCAL_BASE_PATH' => $document_root, // replace DOC_ROOT in filenames (in errors) using this path
+ 'DBG_EDITOR_URL' => 'phpstorm://open?file=%F&line=%L',
'DBG_SHORTCUT' => 'F12', // Defines debugger activation shortcut (any symbols or Ctrl/Alt/Shift are allowed, e.g. Ctrl+Alt+F12)
);

Event Timeline