Skip to content

Commit 9a37e98

Browse files
committed
feature #7019 [Framework] Update link-to-source mapping definition (nicolas-grekas)
This PR was merged into the master branch. Discussion ---------- [Framework] Update link-to-source mapping definition Follow up of #6944 and symfony/symfony#20101 Commits ------- 3a0c0d8 [Framework] Update link-to-source mapping definition
2 parents 2b027a9 + 3a0c0d8 commit 9a37e98

File tree

1 file changed

+8
-3
lines changed

1 file changed

+8
-3
lines changed

reference/configuration/framework.rst

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -215,6 +215,11 @@ Since every developer uses a different IDE, the recommended way to enable this
215215
feature is to configure it on a system level. This can be done by setting the
216216
``xdebug.file_link_format`` option in your ``php.ini`` configuration file.
217217

218+
.. tip::
219+
220+
Setting the ``xdebug.file_link_format`` ini option works even if the Xdebug
221+
extension is not enabled.
222+
218223
Alternatively, you can use this ``ide`` configuration key.
219224

220225
In both cases, the expected configuration value is a URL template that contains an
@@ -255,13 +260,13 @@ do something like:
255260

256261
When running your app in a container or in a virtual machine, you can tell
257262
Symfony to map files from the guest to the host by changing their prefix.
258-
This map should be specified at the end of the URL template after a ``#``
259-
using JSON-like key/values::
263+
This map should be specified at the end of the URL template, using ``&`` and
264+
``>`` as guest-to-host separators::
260265

261266
// /path/to/guest/.../file will be opened
262267
// as /path/to/host/.../file on the host
263268
// and /foo/.../file as /bar/.../file also
264-
'myide://%f:%l#"/path/to/guest/":"/path/to/host/","/foo/":"/bar/"...'
269+
'myide://%f:%l&/path/to/guest/>/path/to/host/&/foo/>/bar/&...'
265270

266271
.. versionadded:: 3.2
267272
Guest to host mappings were introduced in Symfony 3.2.

0 commit comments

Comments
 (0)