PHPStorm+Xdebug调试Yii的时候,在没有断点的地方停下来

秀小川 2017-11-10 09:10:17

<?php
defined('YII_DEBUG') or define('YII_DEBUG', true);
defined('YII_ENV') or define('YII_ENV', 'dev');

require(__DIR__ . '/../../vendor/autoload.php');
require(__DIR__ . '/../../vendor/yiisoft/yii2/Yii.php');
require(__DIR__ . '/../../common/config/bootstrap.php');
require(__DIR__ . '/../config/bootstrap.php');

$config = yii\helpers\ArrayHelper::merge(
require(__DIR__ . '/../../common/config/main.php'),
require(__DIR__ . '/../../common/config/main-local.php'),
require(__DIR__ . '/../config/main.php'),
require(__DIR__ . '/../config/main-local.php')
);


YII用PHPstorm + xdebug 调试, 每次有请求过来, 都会在上面第一行
引用
defined('YII_DEBUG') or define('YII_DEBUG', true);
”这句话 也是就web\index.php第一行里面暂停, 明明没有打断点。 是我哪里配置不对吗?
...全文
822 3 打赏 收藏 转发到动态 举报
写回复
用AI写文章
3 条回复
切换为时间正序
请发表友善的回复…
发表回复
出门要带伞 2020-11-01
  • 打赏
  • 举报
回复
我取消了勾选,但是还是不行
秀小川 2017-11-13
  • 打赏
  • 举报
回复
引用 1 楼 hongmei85 的回复:
点击菜单Run,在弹出菜单中取消勾选“Break at first line in PHP scripts”
解决了, 老哥! 多谢, 困惑我好久了!
hongmei85 2017-11-10
  • 打赏
  • 举报
回复
点击菜单Run,在弹出菜单中取消勾选“Break at first line in PHP scripts”

4,251

社区成员

发帖
与我相关
我的任务
社区描述
国内外优秀PHP框架讨论学习
社区管理员
  • Framework
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧