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
Simpler way to add the XDEBUG_SESSION_START cookie/variable?
提问by berkes
I use vim
with debugger
and xdebug
to walk trough PHP applications.
我用vim
与debugger
和xdebug
走线槽PHP应用程序。
In firefox (or any other browser), I then need to open up the page, call a URL with XDEBUG_SESSION_START=1
appended to it, in order to tell the xdebug
PHP-plugin to start the debug-server.
在 firefox(或任何其他浏览器)中,我需要打开页面,调用XDEBUG_SESSION_START=1
附加到它的 URL ,以便告诉xdebug
PHP 插件启动调试服务器。
This works fine, but can it be made simpler?
这工作正常,但可以简化吗?
Is there some plugin for firefox that allows me add this session automatically? Some xdebug
setting 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.
前段时间我使用了vimxdebug。它做得很好,但在 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
干杯,德里克