How to configure xdebug stacktrace to link to and open files in VS Code

柔情痞子 提交于 2019-12-24 11:11:45

问题


When xdebug provides a stacktrace, it can create links to open files in your text editor at a particular line. For instance, the following configuration will open files in Sublime, if the subl handler is installed:

xdebug.file_link_format="subl://open?url=%f&line=%l"

How does one set file_link_format for VS Code?


回答1:


Here's the documentation of the URL format for VS Code.

Thus, the xdebug config is:

xdebug.file_link_format="vscode://file/%f:%l"


来源:https://stackoverflow.com/questions/52935738/how-to-configure-xdebug-stacktrace-to-link-to-and-open-files-in-vs-code

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!