-
Notifications
You must be signed in to change notification settings - Fork 35
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
phpstorm如何配置调试虚拟机的项目 #67
Comments
|
path mapping 是指这里的项目路径匹配吗? 我设置了remote_host 为 宿主机ip,通过php -e bin/hyperf start 已经成功运行了项目,但是打了断点还是没效果。 |
你看看这个 |
这个issue里面的图片好像都访问不了了,我这边看不到。但我经过设置了目录映射后,执行php -e bin/hyperf start的时候就直接进入到 bin/hyperf.php文件调试,尽管这个文件没有打断点也会阻塞在第一行。打断点在控制器中,访问路由也没有进入调试。 |
@CauliFlowor 自动在bin/hyperf.php的第一行是 ide的配置,你可以修改。到这里的时候,点击debug窗口左上角的绿色图标,打断点在控制器中,然后等待启动成功,发起请求就会在断点处停止 |
我就是这样做的,点击那个绿色的类似的播放按钮,然后打了断点在控制器中,项目启动成功后,浏览器发请求,没有停止,直接响应成功了 |
确认一下,控制器是否生成了代理类,导致打断点失效。如果生成了代理类,请在代理类里面打断点。 |
配置一下 yasd.log_level=0 然后重复一次你的调试过程。结束后,会在当前目录生成文件 |
这不应该额。你这是最新的 |
是的,我昨天从这个项目的code克隆下来安装的 |
好吧,能用就好。可能是之前你哪里没有配好。 |
@huanghantao 感谢大佬的帮助! |
查了一天断点为什么不生效,最后发现是这个原因...... |
@huanghantao 大佬帮忙看看 ![]() 开启了 yasd.log_level=0
|
No description provided.
The text was updated successfully, but these errors were encountered: