Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1167451
D493.id1267.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Tue, Sep 23, 12:10 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Wed, Sep 24, 12:10 PM (2 h, 33 m)
Engine
blob
Format
Raw Data
Handle
756208
Attached To
D493: INP-1881 - Change default Debugger URL handler to PhpStorm
D493.id1267.diff
View Options
Index: core/kernel/utility/debugger.php
===================================================================
--- core/kernel/utility/debugger.php
+++ core/kernel/utility/debugger.php
@@ -458,6 +458,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
@@ -465,9 +467,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
Log In to Comment