Debugging Javascript/PHP jumps stepping through PHP.

Hi everyone.

Since today I realised, I cannot debug Javascript and PHP anymore.

When I debug just PHP with a profile made from "PHP Remote Debug" everything works fine, except there is no debugging Javascript, of course.

Debugging with a profile made from "Javascript Debug" used to be working fine, too. But now it won't.

When "Break at first line in PHP scripts" is checked execution stops at first line. One step F8 and debugging is finished, browser (Chrome Version 71.0.3578.98 (64-Bit)) says response is "200 ok" but content length is 0 (zero), which shouldn't be.

When "Break at first line in PHP scripts" is NOT checked and I have a breakpoint somewhere in the middle of my flow, execution stops fine, but a step with F8 jumps weirdly up the stack, frame per frame, response is 200, content length is zero. :-(

When there is no breakpoint set in PHP everything is fine.

As you can see below, the only thing (apart from Windows updates), that changed is Intellij after the 17th of December, obviously.

I am not sure it worked since then, but definitely before the 17th last year.

I tried with the debug profile from "Javascript Debug", that used to work before and also tried with a new one. Didn't help.

I have

  • Win 10 64bit
  • IntelliJ IDEA 2018.3.2 (Ultimate Edition)
    Build #IU-183.4886.37, built on December 17, 2018
    [...]
    JRE: 1.8.0_152-release-1343-b26 amd64
    JVM: OpenJDK 64-Bit Server VM by JetBrains s.r.o
    Windows 10 10.0
  • [2017-12-20] XAMPP for Windows 7.2.0-0
    - PHP 7.2.1
    - Apache 2.4.29
    [...]
    -Xdebug v2.6.0RC2
  • Chrome Version 71.0.3578.98 (64-Bit)

Any suggestions?

Thanks,
Lars

1
2 comments

What's worth checking:

  1. First of all, please double-check that OPcache (or any other framework-specific caching) is not enabled in your interpreter or project.
  2. Create a copy of this project in another directory leaving .idea aside, and try there.
  3. If the issue persists, check what's happening in the Xdebug remote log when stopping at the first line in PHP scripts is turned off.
0
Avatar
Permanently deleted user

Hi Eugene,

Thank you. Fresh copy of the project did the trick.

Best,
Lars

0

Please sign in to leave a comment.