View Issue Details

IDProjectCategoryView StatusLast Update
0001735XdebugStep Debuggingpublic2020-01-17 17:55
Reporterdnsnx Assigned Toderick  
PrioritynormalSeverityblockReproducibilityalways
Status closedResolutionfixed 
Product Version2.9.0 
Target Version2.9.2Fixed in Version2.9.2 
Summary0001735: 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:
I'm using a Windows 10 system with IIS webserver and PHP version 7.4. I've downloaded and installed Xdebug with the last version (2.9.0) successfully (see the excerpt from the php.ini below). Visual Studio Code is configured for using Xdebug (see launch.json file below).

My issue is:
When I set a breakpoint, it stops at this breakpoint. So far so good. But if I press then "Step into" (F11) or "Step over" (F10) buttons, nothing is happening at all. The initial breakpoint is still highlighted - it stays at the breakpoint.

Maybe something is configured wrong, but actually I can't figure out what it is.

See here the configuration files:

php.ini:


[XDEBUG]
xdebug.remote_enable = 1
xdebug.remote_handler = dbgp
xdebug.remote_host = localhost
xdebug.remote_port = 9000
xdebug.remote_autostart = 1
xdebug.idekey=VSCODE
xdebug.remote_log ="C:\temp\xdebug.log"

[PHP_XDEBUG-2.9.0-7.4-VC15-NTS]
zend_extension = "C:\Program Files (x86)\PHP\v7.4\ext\php_xdebug-2.9.0-7.4-vc15-nts-x86_64.dll"

launch.json of Visual Studio Code:


{
// Verwendet IntelliSense zum Ermitteln möglicher Attribute.
// Zeigen Sie auf vorhandene Attribute, um die zugehörigen Beschreibungen anzuzeigen.
// Weitere Informationen finden Sie unter https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "Listen for XDebug",
"type": "php",
"request": "launch",
"port": 9000,
"ignore": [
"/vendor//*.php"
]
},
{
"name": "Launch currently open script",
"type": "php",
"request": "launch",
"program": "${file}",
"cwd": "${fileDirname}",
"port": 9000
}
]
}

The solution was to clear all breakpoints (even on deleted files) and clear all variables in the "Watch"-section of Visual Studio Code.
See also issue on stackoverflow:

https://stackoverflow.com/questions/59748690/xdebug-visual-studio-code-step-into-step-over-nothing-happens

Steps To Reproduce

I can reproduce the error, when I enter variables in the "Watch"-section of Visual Studio Code.
It produces the attached log file.

TagsNo tags attached.
Attached Files
Operating SystemWindows 10
PHP Version7.4.0-7.4.4

Activities

derick

2020-01-17 12:35

administrator   ~0005217

Would you mind putting the log in an attached file?

dnsnx

2020-01-17 12:39

reporter   ~0005218

Log file attached...

xdebug_log.log (29,511 bytes)   
[21784] Log opened at 2020-01-17 08:29:56
[21784] I: Connecting to configured address/port: localhost:9000.
[21784] I: Connected to client. :-)
[21784] -> <init xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" fileuri="file:///D:/Files/Company/Project/public/index.php" language="PHP" xdebug:language_version="7.4.0-dev" protocol_version="1.0" appid="21784" idekey="VSCODE"><engine version="2.9.0"><![CDATA[Xdebug]]></engine><author><![CDATA[Derick Rethans]]></author><url><![CDATA[https://xdebug.org]]></url><copyright><![CDATA[Copyright (c) 2002-2019 by Derick Rethans]]></copyright></init>

[21784] <- breakpoint_list -i 1
[21784] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_list" transaction_id="1"></response>

[21784] <- breakpoint_set -i 2 -t line -f file:///d:/Files/Company/Project/app/Http/Controllers/Auth/AuthController.php -n 101
[21784] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="2" id="217840005"></response>

[21784] <- breakpoint_list -i 3
[21784] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_list" transaction_id="3"><breakpoint type="line" filename="file:///D:/Files/Company/Project/app/Http/Controllers/Auth/AuthController.php" lineno="101" state="enabled" hit_count="0" hit_value="0" id="217840005"></breakpoint></response>

[21784] <- breakpoint_list -i 4
[21784] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_list" transaction_id="4"><breakpoint type="line" filename="file:///D:/Files/Company/Project/app/Http/Controllers/Auth/AuthController.php" lineno="101" state="enabled" hit_count="0" hit_value="0" id="217840005"></breakpoint></response>

[21784] <- breakpoint_set -i 5 -t exception -x *
[21784] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="breakpoint_set" transaction_id="5" id="217840006"></response>

[21784] <- run -i 6
[21784] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="6" status="break" reason="ok"><xdebug:message filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Encryption/BaseEncrypter.php" lineno="44" exception="Illuminate\Contracts\Encryption\DecryptException"><![CDATA[The payload is invalid.]]></xdebug:message></response>

[21784] <- run -i 7
[21784] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="7" status="break" reason="ok"><xdebug:message filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Encryption/BaseEncrypter.php" lineno="44" exception="Illuminate\Contracts\Encryption\DecryptException"><![CDATA[The payload is invalid.]]></xdebug:message></response>

[21784] <- run -i 8
[21784] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="8" status="break" reason="ok"><xdebug:message filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Encryption/BaseEncrypter.php" lineno="44" exception="Illuminate\Contracts\Encryption\DecryptException"><![CDATA[The payload is invalid.]]></xdebug:message></response>

[21784] <- run -i 9
[21784] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="9" status="break" reason="ok"><xdebug:message filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Encryption/BaseEncrypter.php" lineno="44" exception="Illuminate\Contracts\Encryption\DecryptException"><![CDATA[The payload is invalid.]]></xdebug:message></response>

[21784] <- run -i 10
[21784] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="10" status="break" reason="ok"><xdebug:message filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Encryption/BaseEncrypter.php" lineno="44" exception="Illuminate\Contracts\Encryption\DecryptException"><![CDATA[The payload is invalid.]]></xdebug:message></response>

[21784] <- run -i 11
[21784] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="11" status="break" reason="ok"><xdebug:message filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Encryption/BaseEncrypter.php" lineno="44" exception="Illuminate\Contracts\Encryption\DecryptException"><![CDATA[The payload is invalid.]]></xdebug:message></response>

[21784] <- run -i 12
[21784] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="12" status="break" reason="ok"><xdebug:message filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Encryption/BaseEncrypter.php" lineno="44" exception="Illuminate\Contracts\Encryption\DecryptException"><![CDATA[The payload is invalid.]]></xdebug:message></response>

[21784] <- run -i 13
[21784] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="run" transaction_id="13" status="break" reason="ok"><xdebug:message filename="file:///D:/Files/Company/Project/app/Http/Controllers/Auth/AuthController.php" lineno="101"></xdebug:message></response>

[21784] <- stack_get -i 14
[21784] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="stack_get" transaction_id="14"><stack where="App\Http\Controllers\Auth\AuthController-&gt;register" level="0" type="file" filename="file:///D:/Files/Company/Project/app/Http/Controllers/Auth/AuthController.php" lineno="101"></stack><stack where="call_user_func_array:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Controller.php:80}" level="1" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Controller.php" lineno="80"></stack><stack where="App\Http\Controllers\Auth\AuthController-&gt;callAction" level="2" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Controller.php" lineno="80"></stack><stack where="Illuminate\Routing\ControllerDispatcher-&gt;call" level="3" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php" lineno="146"></stack><stack where="Illuminate\Routing\ControllerDispatcher-&gt;Illuminate\Routing\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\ControllerDispatcher.php:92-96}" level="4" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php" lineno="94"></stack><stack where="call_user_func:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:52}" level="5" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="52"></stack><stack where="Illuminate\Routing\Pipeline-&gt;Illuminate\Routing\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:50-58}" level="6" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="52"></stack><stack where="call_user_func:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:102}" level="7" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="102"></stack><stack where="Illuminate\Routing\Pipeline-&gt;then" level="8" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="102"></stack><stack where="Illuminate\Routing\ControllerDispatcher-&gt;callWithinStack" level="9" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php" lineno="96"></stack><stack where="Illuminate\Routing\ControllerDispatcher-&gt;dispatch" level="10" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/ControllerDispatcher.php" lineno="54"></stack><stack where="Illuminate\Routing\Route-&gt;runController" level="11" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Route.php" lineno="174"></stack><stack where="Illuminate\Routing\Route-&gt;run" level="12" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Route.php" lineno="140"></stack><stack where="Illuminate\Routing\Router-&gt;Illuminate\Routing\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Router.php:721-726}" level="13" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Router.php" lineno="724"></stack><stack where="call_user_func:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:52}" level="14" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="52"></stack><stack where="Illuminate\Routing\Pipeline-&gt;Illuminate\Routing\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:50-58}" level="15" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="52"></stack><stack where="App\Http\Middleware\Domain-&gt;handle" level="16" type="file" filename="file:///D:/Files/Company/Project/app/Http/Middleware/Domain.php" lineno="51"></stack><stack where="call_user_func_array:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:136}" level="17" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="136"></stack><stack where="Illuminate\Routing\Pipeline-&gt;Illuminate\Pipeline\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:114-137}" level="18" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="136"></stack><stack where="call_user_func:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:32}" level="19" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="32"></stack><stack where="Illuminate\Routing\Pipeline-&gt;Illuminate\Routing\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:28-38}" level="20" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="32"></stack><stack where="App\Http\Middleware\Locale-&gt;handle" level="21" type="file" filename="file:///D:/Files/Company/Project/app/Http/Middleware/Locale.php" lineno="24"></stack><stack where="call_user_func_array:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:136}" level="22" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="136"></stack><stack where="Illuminate\Routing\Pipeline-&gt;Illuminate\Pipeline\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:114-137}" level="23" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="136"></stack><stack where="call_user_func:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:32}" level="24" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="32"></stack><stack where="Illuminate\Routing\Pipeline-&gt;Illuminate\Routing\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:28-38}" level="25" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="32"></stack><stack where="App\Http\Middleware\VerifyCsrfToken-&gt;handle" level="26" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/VerifyCsrfToken.php" lineno="64"></stack><stack where="call_user_func_array:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:136}" level="27" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="136"></stack><stack where="Illuminate\Routing\Pipeline-&gt;Illuminate\Pipeline\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:114-137}" level="28" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="136"></stack><stack where="call_user_func:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:32}" level="29" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="32"></stack><stack where="Illuminate\Routing\Pipeline-&gt;Illuminate\Routing\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:28-38}" level="30" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="32"></stack><stack where="Illuminate\View\Middleware\ShareErrorsFromSession-&gt;handle" level="31" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/View/Middleware/ShareErrorsFromSession.php" lineno="49"></stack><stack where="call_user_func_array:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:136}" level="32" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="136"></stack><stack where="Illuminate\Routing\Pipeline-&gt;Illuminate\Pipeline\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:114-137}" level="33" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="136"></stack><stack where="call_user_func:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:32}" level="34" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="32"></stack><stack where="Illuminate\Routing\Pipeline-&gt;Illuminate\Routing\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:28-38}" level="35" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="32"></stack><stack where="Illuminate\Session\Middleware\StartSession-&gt;handle" level="36" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Session/Middleware/StartSession.php" lineno="64"></stack><stack where="call_user_func_array:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:136}" level="37" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="136"></stack><stack where="Illuminate\Routing\Pipeline-&gt;Illuminate\Pipeline\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:114-137}" level="38" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="136"></stack><stack where="call_user_func:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:32}" level="39" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="32"></stack><stack where="Illuminate\Routing\Pipeline-&gt;Illuminate\Routing\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:28-38}" level="40" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="32"></stack><stack where="Illuminate\Cookie\Middleware\AddQueuedCookiesToResponse-&gt;handle" level="41" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/AddQueuedCookiesToResponse.php" lineno="37"></stack><stack where="call_user_func_array:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:136}" level="42" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="136"></stack><stack where="Illuminate\Routing\Pipeline-&gt;Illuminate\Pipeline\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:114-137}" level="43" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="136"></stack><stack where="call_user_func:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:32}" level="44" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="32"></stack><stack where="Illuminate\Routing\Pipeline-&gt;Illuminate\Routing\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:28-38}" level="45" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="32"></stack><stack where="App\Http\Middleware\EncryptCookies-&gt;handle" level="46" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Cookie/Middleware/EncryptCookies.php" lineno="59"></stack><stack where="call_user_func_array:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:136}" level="47" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="136"></stack><stack where="Illuminate\Routing\Pipeline-&gt;Illuminate\Pipeline\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:114-137}" level="48" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="136"></stack><stack where="call_user_func:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:32}" level="49" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="32"></stack><stack where="Illuminate\Routing\Pipeline-&gt;Illuminate\Routing\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:28-38}" level="50" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="32"></stack><stack where="call_user_func:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:102}" level="51" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="102"></stack><stack where="Illuminate\Routing\Pipeline-&gt;then" level="52" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="102"></stack><stack where="Illuminate\Routing\Router-&gt;runRouteWithinStack" level="53" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Router.php" lineno="726"></stack><stack where="Illuminate\Routing\Router-&gt;dispatchToRoute" level="54" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Router.php" lineno="699"></stack><stack where="Illuminate\Routing\Router-&gt;dispatch" level="55" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Router.php" lineno="675"></stack><stack where="App\Http\Kernel-&gt;Illuminate\Foundation\Http\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Foundation\Http\Kernel.php:243-247}" level="56" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php" lineno="246"></stack><stack where="call_user_func:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:52}" level="57" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="52"></stack><stack where="Illuminate\Routing\Pipeline-&gt;Illuminate\Routing\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:50-58}" level="58" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="52"></stack><stack where="Barryvdh\Debugbar\Middleware\Debugbar-&gt;handle" level="59" type="file" filename="file:///D:/Files/Company/Project/vendor/barryvdh/laravel-debugbar/src/Middleware/Debugbar.php" lineno="51"></stack><stack where="call_user_func_array:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:136}" level="60" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="136"></stack><stack where="Illuminate\Routing\Pipeline-&gt;Illuminate\Pipeline\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:114-137}" level="61" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="136"></stack><stack where="call_user_func:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:32}" level="62" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="32"></stack><stack where="Illuminate\Routing\Pipeline-&gt;Illuminate\Routing\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:28-38}" level="63" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="32"></stack><stack where="App\Http\Middleware\VerifyAGB-&gt;handle" level="64" type="file" filename="file:///D:/Files/Company/Project/app/Http/Middleware/VerifyAGB.php" lineno="24"></stack><stack where="call_user_func_array:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:136}" level="65" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="136"></stack><stack where="Illuminate\Routing\Pipeline-&gt;Illuminate\Pipeline\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:114-137}" level="66" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="136"></stack><stack where="call_user_func:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:32}" level="67" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="32"></stack><stack where="Illuminate\Routing\Pipeline-&gt;Illuminate\Routing\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:28-38}" level="68" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="32"></stack><stack where="Illuminate\Foundation\Http\Middleware\CheckForMaintenanceMode-&gt;handle" level="69" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Middleware/CheckForMaintenanceMode.php" lineno="44"></stack><stack where="call_user_func_array:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:136}" level="70" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="136"></stack><stack where="Illuminate\Routing\Pipeline-&gt;Illuminate\Pipeline\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:114-137}" level="71" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="136"></stack><stack where="call_user_func:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:32}" level="72" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="32"></stack><stack where="Illuminate\Routing\Pipeline-&gt;Illuminate\Routing\{closure:D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Routing\Pipeline.php:28-38}" level="73" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Routing/Pipeline.php" lineno="32"></stack><stack where="call_user_func:{D:\Files\Company\Project\vendor\laravel\framework\src\Illuminate\Pipeline\Pipeline.php:102}" level="74" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="102"></stack><stack where="Illuminate\Routing\Pipeline-&gt;then" level="75" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Pipeline/Pipeline.php" lineno="102"></stack><stack where="App\Http\Kernel-&gt;sendRequestThroughRouter" level="76" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php" lineno="132"></stack><stack where="App\Http\Kernel-&gt;handle" level="77" type="file" filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Foundation/Http/Kernel.php" lineno="99"></stack><stack where="{main}" level="78" type="file" filename="file:///D:/Files/Company/Project/public/index.php" lineno="53"></stack></response>

[21784] <- eval -i 15 -- JHJlc3VsdEpzb24=
[21784] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="15" status="break" reason="ok"><xdebug:message filename="file://D:/Files/Company/Project/public/xdebug:/debug-eval" lineno="1" exception="ErrorException"><![CDATA[Undefined variable: resultJson]]></xdebug:message></response>

[21784] <- context_names -i 16 -d 0
[21784] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="context_names" transaction_id="16"><context name="Locals" id="0"></context><context name="Superglobals" id="1"></context><context name="User defined constants" id="2"></context></response>

[21784] <- step_over -i 17
[21784] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="15" status="running" reason="ok"><error code="206"><message><![CDATA[error evaluating code]]></message></error></response>

[21784] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="step_over" transaction_id="17" status="break" reason="ok"><xdebug:message filename="file:///D:/Files/Company/Project/app/Http/Controllers/Auth/AuthController.php" lineno="107"></xdebug:message></response>

[21784] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" status="break" reason="ok"><xdebug:message filename="file:///D:/Files/Company/Project/vendor/laravel/framework/src/Illuminate/Foundation/Validation/ValidatesRequests.php" lineno="88" exception="Illuminate\Foundation\Validation\ValidationException"><![CDATA[The given data failed to pass validation.]]></xdebug:message></response>

[21784] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" status="stopping" reason="ok"></response>

[21784] Log closed at 2020-01-17 08:30:05

[21784] Log opened at 2020-01-17 08:30:05
[21784] I: Connecting to configured address/port: localhost:9000.
[21784] E: Time-out connecting to client (Waited: 200 ms). :-(
[21784] Log closed at 2020-01-17 08:30:06

[21784] Log opened at 2020-01-17 08:30:06
[21784] I: Connecting to configured address/port: localhost:9000.
[21784] E: Time-out connecting to client (Waited: 200 ms). :-(
[21784] Log closed at 2020-01-17 08:30:07

[21784] Log opened at 2020-01-17 08:30:07
[21784] I: Connecting to configured address/port: localhost:9000.
[21784] E: Time-out connecting to client (Waited: 200 ms). :-(
[21784] Log closed at 2020-01-17 08:30:07

xdebug_log.log (29,511 bytes)   

derick

2020-01-17 16:21

administrator   ~0005219

Last edited: 2020-01-17 16:21

I see in the log:


[21784] <- eval -i 15 -- JHJlc3VsdEpzb24=
[21784] -> <response xmlns="urn:debugger_protocol_v1" xmlns:xdebug="https://xdebug.org/dbgp/xdebug" command="eval" transaction_id="15" status="break" reason="ok"><xdebug:message filename="file://D:/Files/Company/Project/public/xdebug:/debug-eval" lineno="1" exception="ErrorException"><![CDATA[Undefined variable: resultJson]]></xdebug:message></response>

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 ).

derick

2020-01-17 17:55

administrator   ~0005220

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:

  • An error handler converted a warning/notice into an Exception
  • An exception breakpoint was set on this specific Exception, or a wild card exception breakpoint was set
  • The DBGp eval command, which IDEs often use to implement watches, created a warning or notice, in this case, due to an undefined variable.

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.

Issue History

Date Modified Username Field Change
2020-01-17 12:28 dnsnx New Issue
2020-01-17 12:35 derick Assigned To => derick
2020-01-17 12:35 derick Status new => feedback
2020-01-17 12:35 derick Note Added: 0005217
2020-01-17 12:39 dnsnx File Added: xdebug_log.log
2020-01-17 12:39 dnsnx Note Added: 0005218
2020-01-17 12:39 dnsnx Status feedback => assigned
2020-01-17 16:15 derick Steps to Reproduce Updated
2020-01-17 16:21 derick Status assigned => feedback
2020-01-17 16:21 derick Note Added: 0005219
2020-01-17 16:21 derick Note Edited: 0005219
2020-01-17 16:22 derick Description Updated
2020-01-17 17:32 derick Target Version => 2.9.2
2020-01-17 17:32 derick Summary Xdebug - Visual Studio Code - Step into / Step over - Nothing happens => DBGp eval warning promoted to Exception can cause out-of-sync responses
2020-01-17 17:55 derick Status feedback => closed
2020-01-17 17:55 derick Resolution open => fixed
2020-01-17 17:55 derick Fixed in Version => 2.9.2
2020-01-17 17:55 derick Note Added: 0005220
2020-03-12 16:33 derick Category Remote Debugging => Step Debugging