NOTE: The document root is the directory on a web server where the website files for a domain name are stored.
# Part 1 - defaults & `file://` protocol
# in IDE:
* open the `/system/debug.php` file for editing
* comment-out these keys in the `$dbg_options` array: `DBG_LOCAL_BASE_PATH`, `DBG_EDITOR_URL`
* save changes
# in Admin Console
* stay on the login screen
* open the Debugger Report
* use `Inspect` context menu entry on the 1st file editing link below an SQL query (has `application.php:305` text for me)
* confirm, that shown URL:
* is encoded (all the `/` symbols are replaced with `%2F`)
* URL-decoded version of it looks like `file://w:/path/to/file:line_number` (`/path/to/file` - path to a file starting from the Document Root of a Web Server; `line_number` - line number in that file)
# Part 2 - `phpstorm://` protocol
# in IDE:
* open the `/system/debug.php` file for editing
* comment-out these keys in the `$dbg_options` array: `DBG_LOCAL_BASE_PATH`
* in the `DBG_EDITOR_URL` key of the `$dbg_options` array specify `'phpstorm://open?file=%F&line=%L'`
* save changes
# in Admin Console
* stay on the login screen
* open the Debugger Report
* use `Inspect` context menu entry on the 1st file editing link below an SQL query (has `application.php:305` text for me)
* confirm, that shown URL:
* is encoded (all the `/` symbols are replaced with `%2F`)
* URL-decoded version of it looks like `phpstorm://open?file=w:/path/to/file&line=line_number` (`/path/to/file` - path to a file starting from the Document Root of a Web Server; `line_number` - line number in that file)
# Part 3 - `vscode://` protocol
# in IDE:
* open the `/system/debug.php` file for editing
* comment-out these keys in the `$dbg_options` array: `DBG_LOCAL_BASE_PATH`
* in the `DBG_EDITOR_URL` key of the `$dbg_options` array specify `'vscode://file/%F:%L'`
* save changes
# in Admin Console
* stay on the login screen
* open the Debugger Report
* use `Inspect` context menu entry on the 1st file editing link below an SQL query (has `application.php:305` text for me)
* confirm, that shown URL:
* is encoded (all the `/` symbols are replaced with `%2F`)
* URL-decoded version of it looks like `vscode://file/w:/path/to/file:line_number` (`/path/to/file` - path to a file starting from the Document Root of a Web Server; `line_number` - line number in that file)