emarref / xdebug-bundle
通过自动设置/删除cookie简化您在IDE中使用调试工具的过程。
此包的官方仓库似乎已不存在,因此该包已被冻结。
1.0.1
2015-12-09 20:18 UTC
Requires
- php: >=5.3
This package is auto-updated.
Last update: 2022-02-23 07:38:16 UTC
README
通过自动设置/删除cookie简化您在IDE中使用调试工具的过程。
安装
第1步:下载包
打开命令行界面,进入您的项目目录,并执行以下命令以下载此包的最新稳定版本
$ composer require emarref/xdebug-bundle "~1.0.0"
此命令需要您全局安装了Composer,如Composer文档中的安装章节所述。
第2步:启用包
然后,通过将包添加到项目中app/AppKernel.php文件的开发部分注册的包列表中来启用该包。
<?php // app/AppKernel.php // ... class AppKernel extends Kernel { public function registerBundles() { // ... if (in_array($this->getEnvironment(), array('dev', 'test'))) { // ... $bundles[] = new Emarref\Bundle\XdebugBundle\EmarrefXdebugBundle(); } } // ... }
第3步:配置包
在您的开发环境中配置该包。默认情况下,仅需要配置IDE密钥。
# app/config/config_dev.yml emarref_xdebug: debugger: idekey: MY_KEY
以下为完整的默认配置
# app/config/config_dev.yml emarref_xdebug: enabled: true debugger: enabled: true idekey: <yourkey> path: / profiler: enabled: false path: / tracer: enabled: false path: /