php - 如何配置 xdebug 堆栈跟踪以链接到 VS Code 中的文件并打开文件

标签 php visual-studio-code xdebug visual-studio-debugging

当 xdebug 提供堆栈跟踪时,它可以创建链接以在特定行的文本编辑器中打开文件。例如,如果安装了 subl 处理程序,以下配置将在 Sublime 中打开文件:

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

如何为 VS Code 设置 file_link_format?

最佳答案

这是 URL format for VS Code 的文档.

因此,xdebug 配置是:

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

关于php - 如何配置 xdebug 堆栈跟踪以链接到 VS Code 中的文件并打开文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/52935738/

相关文章:

C程序中裁剪BMP文件图像

php - 支持 xdebug 的 Linux 轻量级 PHP 编辑器或 IDE

php - 如何更改xdebug输出的颜色?

php - 使用 Symfony 和 PhpStorm 的 XDebug 不起作用(Ubuntu 安装)

php - 为 foreach() 提供的参数无效

php - 生成按 user_id 分组的订单表,该表汇总了产品数量

php - 在 prestashop 中拆分 Mailalerts 模块收件人

python - 安装模块时,VSCode/pylint 将模块 win32event 报告为未解析的导入

typescript - Deno:VSCode typescript 不知道 ES6

php - Laravel 无法检索保存在 POST 请求中的 session 数据