Php 如何在Aptana或Eclipse中使用Yii框架配置Xdebug

Php 如何在Aptana或Eclipse中使用Yii框架配置Xdebug,php,debugging,yii,xdebug,Php,Debugging,Yii,Xdebug,我已经在Ubuntu操作系统上安装了Xdebug和im,使用Apatana作为IDE。当我开始调试时,它会在index.php第2行停止 <?php error_reporting(E_ALL); // change the following paths if necessary $yii=dirname(__FILE__).'/../yii/framework/yii.php'; ==> this is the line no 2 $config=dirname(__FILE

我已经在Ubuntu操作系统上安装了Xdebug和im,使用Apatana作为IDE。当我开始调试时,它会在index.php第2行停止

<?php
error_reporting(E_ALL);
// change the following paths if necessary
$yii=dirname(__FILE__).'/../yii/framework/yii.php';   ==> this is the line no 2
$config=dirname(__FILE__).'/protected/config/main.php';

// remove the following lines when in production mode
defined('YII_DEBUG') or define('YII_DEBUG',true);
// specify how many levels of call stack should be shown in each log message
defined('YII_TRACE_LEVEL') or define('YII_TRACE_LEVEL',3);

require_once($yii);
Yii::createWebApplication($config)->run();

Xdebug总是在代码的第一行停止。由IDE来禁用此功能。这通常是“第一行中断”设置。您应该能够从菜单工具选项中关闭该选项,单击PHP图标并取消选中第一行框处的停止。

XDebug有break_on_异常参数,该参数定义调试停止时的情况,并具有默认值,如“致命错误”、“可捕获致命错误”、“警告”、“解析错误”、“注意”、“严格标准”,“已弃用”、“Xdebug”、“未知错误”

只需将这些更改为“致命错误”、“可捕获致命错误”、“解析错误”