View Issue Details
| ID | Project | Category | View Status | Date Submitted | Last Update |
|---|---|---|---|---|---|
| 0001735 | Xdebug | Step Debugging | public | 2020-01-17 12:28 | 2020-01-17 17:55 |
| Reporter | dnsnx | Assigned To | |||
| Priority | normal | Severity | block | Reproducibility | always |
| Status | closed | Resolution | fixed | ||
| Product Version | 2.9.0 | ||||
| Target Version | 2.9.2 | Fixed in Version | 2.9.2 | ||
| Summary | 0001735: DBGp eval warning promoted to Exception can cause out-of-sync responses | ||||
| Description | I'm having an issue with Visual Studio Code and Xdebug. My System: My issue is: Maybe something is configured wrong, but actually I can't figure out what it is. See here the configuration files: php.ini:
launch.json of Visual Studio Code:
The solution was to clear all breakpoints (even on deleted files) and clear all variables in the "Watch"-section of Visual Studio Code. | ||||
| Steps To Reproduce | I can reproduce the error, when I enter variables in the "Watch"-section of Visual Studio Code. | ||||
| Tags | No tags attached. | ||||
| Operating System | Windows 10 | ||||
| PHP Version | 7.4.0-7.4.4 | ||||
|
|
Would you mind putting the log in an attached file? |
|
|
Log file attached... |
|
|
I see in the log:
The normal undefined variable message seems to be converted to an ErrorException. Is this something that Laravel does? If so, can you show me a link to that implementation (probably something to do with set_error_handler ). |
|
|
The PR for this has been merged (https://github.com/xdebug/xdebug/pull/543) and this fix will be part of Xdebug 2.9.2. The story is: This turned out to be a bug in Xdebug, which would happen when the following points are all true:
The cause was that although the eval command turns of breakpoints with a breakpoints_allowed flag until it has been run, the breakpoint handler for exceptions did not check whether this breakpoints_allowed flag was actually set. The fix is to check for the breakpoints_allowed flag in the handler for exception breakpoints. |