php 添加 XDEBUG_SESSION_START cookie/变量的更简单方法?

声明:本页面是StackOverFlow热门问题的中英对照翻译,遵循CC BY-SA 4.0协议,如果您需要使用它,必须同样遵循CC BY-SA许可,注明原文地址和作者信息,同时你必须将它归于原作者(不是我):StackOverFlow 原文地址: http://stackoverflow.com/questions/8666039/
Warning: these are provided under cc-by-sa 4.0 license. You are free to use/share it, But you must attribute it to the original authors (not me): StackOverFlow

提示:将鼠标放在中文语句上可以显示对应的英文。显示中英文
时间:2020-08-26 05:13:10  来源:igfitidea点击:

Simpler way to add the XDEBUG_SESSION_START cookie/variable?

phpvimxdebug

提问by berkes

I use vimwith debuggerand xdebugto walk trough PHP applications.

我用vimdebuggerxdebug走线槽PHP应用程序。

In firefox (or any other browser), I then need to open up the page, call a URL with XDEBUG_SESSION_START=1appended to it, in order to tell the xdebugPHP-plugin to start the debug-server.

在 firefox(或任何其他浏览器)中,我需要打开页面,调用XDEBUG_SESSION_START=1附加到它的 URL ,以便告诉xdebugPHP 插件启动调试服务器。

This works fine, but can it be made simpler?

这工作正常,但可以简化吗?

Is there some plugin for firefox that allows me add this session automatically? Some xdebugsetting that allows me to circumvent this alltogether? Or some vim-addon, script or trick that allows me to call firefox with that parameter added automatically?

是否有一些 Firefox 插件允许我自动添加此会话?一些xdebug设置可以让我完全规避这一切?或者一些允许我使用自动添加的参数调用 firefox 的 vim 插件、脚本或技巧?

采纳答案by el.atomo

Take a look to the firefox extensions page.

查看firefox 扩展页面

Some time ago I used vimxdebug. It did the job fine, but it's no supported in firefox 8.0. There's also other extension, easy Xdebug, but I didn't try it.

前段时间我使用了vimxdeb​​ug。它做得很好,但在 Firefox 8.0 中不支持。还有其他扩展,简单的 Xdebug,但我没有尝试。

回答by Derick

there is a list of extensions to use for different browsers at http://xdebug.org/docs/remote#browser-extensions

http://xdebug.org/docs/remote#browser-extensions有一个可用于不同浏览器的扩展列表

It doesn't matter for which IDE they are, as they should work for all.

它们适用于哪种 IDE 并不重要,因为它们应该适用于所有人。

cheers, Derick

干杯,德里克