Page Menu
Home
In-Portal Phabricator
Search
Configure Global Search
Log In
Files
F1025950
D493.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
Fri, Jun 13, 5:24 PM
Size
1 KB
Mime Type
text/x-diff
Expires
Sat, Jun 14, 5:24 PM (3 h, 51 m)
Engine
blob
Format
Raw Data
Handle
661620
Attached To
D493: INP-1881 - Change default Debugger URL handler to PhpStorm
D493.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