dongtuo4132 2015-04-09 01:01
浏览 44

如何在PhpStorm上使用我的浏览器时调试代码

I cannot debug Laravel via PhpStorm and Xdebug.

When I try to debug a single file via PhpStorm, it works fine, but when I set a breakpoint and try it on the browser, it doesn't work.

PhpStorm waits for incoming connection with ide key and it stops there.

  • 写回答

1条回答 默认 最新

  • duanlun4411 2015-04-09 14:49
    关注

    The workflow that I've set:

    1. Use something like Xdebug helper.
    2. Configure it to use PhpStorm IDE Key.

    When you want to debug:

    1. Activate Xdebug Helper (Mark Debug)
    2. Go to PhpStorm and Run > Start listening for PHP Debug Connections
    3. Put a breakpoint at your code
    4. Refresh your page in Chrome (or go to another one, just make a request).

    Basically, the Xdebug Helper will be your trigger. If you disable it, PhpStorm no longer will debug your code.


    If you don't want to relay on an extension, you can go to your Xdebug config and set:

    xdebug.idekey=PHPSTORM
    xdebug.remote_autostart=1
    

    And "Start listening for PHP Debug Connections" will be your trigger.

    评论

报告相同问题?

悬赏问题

  • ¥15 一直显示正在等待HID—ISP
  • ¥15 Python turtle 画图
  • ¥15 关于大棚监测的pcb板设计
  • ¥15 stm32开发clion时遇到的编译问题
  • ¥15 lna设计 源简并电感型共源放大器
  • ¥15 如何用Labview在myRIO上做LCD显示?(语言-开发语言)
  • ¥15 Vue3地图和异步函数使用
  • ¥15 C++ yoloV5改写遇到的问题
  • ¥20 win11修改中文用户名路径
  • ¥15 win2012磁盘空间不足,c盘正常,d盘无法写入