XDebug Only Uses Breakpoints on First Request

When### Issue Summary

While running Ubuntu + Local, I have encountered a frustrating quirk with XDebug that is really messing with me. My XDebug breakpoints will work perfectly fine until I happen to hit the “stop” button. When I do this, breakpoints completely stop on that site. I have tried stopping the server, restarting local, restarting my IDE, restarting the XDebug process, and none of them resolve the problem. The only way I can get my breakpoints to work again is by completely restarting my computer.

Troubleshooting Questions

  • Does this happen for all sites in Local, or just one in particular?
    This happens on all sites, regardless of if they’re using “preferred” or “custom”

  • Are you able to create a new, plain WordPress site in Local and access it in a Browser?
    Yes

Replication

To replicate:

  1. Create a new site
  2. Add a few breakpoints
  3. Open your IDE (I use PHPStorm) run the debugger
  4. Observe that the breakpoints work as-expected
  5. Hit “stop” before the request finishes.
  6. Try to run the debugger again.

System Details

  • Which version of Local is being used?
    5.9.4

  • What Operating System (OS) and OS version is being used?
    Ubuntu 20.04local-lightning.log (442.9 KB)

I haven’t tested this yet, but I suspect this is happening because XDebug needs to be updated to a newer version.

The author of Xdebug reached out on Twitter and mentioned that this was a problem that was resolved in a recent update.

The culprit appears to be this bug:
https://bugs.xdebug.org/1766

Im going to try updating XDebug to see if this fixes the issue.

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.