- 在php.ini中配置debug
[ioncube]
zend_extension=php_ioncube.dll
[XDebug]
zend_extension="D:\BtSoft\php\74\php_xdebug-3.1.4-7.4-vc15-nts-x86_64.dll"
xdebug.profiler_append = 1
xdebug.profiler_enable = 1
xdebug.auto_trace=On
xdebug.profiler_enable_trigger = 0
xdebug.profiler_output_dir ="D:\BtSoft\temp\xdebug"
xdebug.trace_output_dir ="D:\BtSoft\temp\xdebug"
xdebug.profiler_output_name = "cache.out.%t-%s"
xdebug.remote_enable = 1
xdebug.idekey="idea"
xdebug.mode="debug"
xdebug.remote_handler = "dbgp"
xdebug.remote_host = "127.0.0.1"
xdebug.remote_port= "9002"
xdebug.client_port= "9002"
- 在idea里面配置idea PHP servers
- 配置PHP WEB PAGE,点击validate。
- 验证通过后就可以debug运行,记得打开debug监听。
- 效果所下,复制连接后面的?XDEBUG_SESSION_START=16305可在其他地方重复使用。
http://127.0.0.1:9090/api/security/test?XDEBUG_SESSION_START=19193
6.问题汇总。
6.1 如果debug断点没反应,勾选break at first line in PHP scritp。
【推荐】国内首个AI IDE,深度理解中文开发场景,立即下载体验Trae
【推荐】编程新体验,更懂你的AI,立即体验豆包MarsCode编程助手
【推荐】抖音旗下AI助手豆包,你的智能百科全书,全免费不限次数
【推荐】轻量又高性能的 SSH 工具 IShell:AI 加持,快人一步
· 10年+ .NET Coder 心语 ── 封装的思维:从隐藏、稳定开始理解其本质意义
· 地球OL攻略 —— 某应届生求职总结
· 周边上新:园子的第一款马克杯温暖上架
· Open-Sora 2.0 重磅开源!
· 提示词工程——AI应用必不可少的技术