Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1046464
D493.id.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
Sat, Jun 28, 7:21 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Sun, Jun 29, 7:21 PM (5 h, 56 m)
Engine
blob
Format
Raw Data
Handle
676319
Attached To
D493: INP-1881 - Change default Debugger URL handler to PhpStorm
D493.id.diff
View Options
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
Log In to Comment