Skip to content
Advertisement

Tag: xdebug

PHP var_dump() in xdebug ignores __debugInfo() magical method

Xdebug seems to ignore PHP magic method __debugInfo() in user defined classes when using var_dump(). This is especially unhandy when injecting dependencies (with dependencies, with dependencies…). Is there a setting for Xdebug’s var_dump() so it works with __debugInfo() as expected? Or a workaround in PHP maybe? I could not find anything. Answer Xdebug’s philosophy is to show data as it

Xdebug 3 not included in phpinfo()

I have a problem with Xdebug on Mac OS using Big Sur. Below, I will explain what is happening. When I run phpinfo() – I don’t see a Xdebug section at all. When I run commands such as xdebug_call_file() it throws a PHP Fatal error: Uncaught Error: Call to undefined function error. Here are all the configurations: php -v: PhpStorm

Cannot step xdebug with NetBeans since php 8

Since upgrading from php 7 to php 8, I can no longer Step Into/Step Over/Continue with NetBeans IDE 11.0 and xdebug 3.0.4. xdebug (via NetBeans) is configured to “Stop at First Line” – and this works. That is, the (local host) web page is suspended, and the NetBeans Step Into/Step Over/Continue buttons are enabled. But, when I click any of

Xdebug 3 doesn’t stop on breakpoints

I setted Xdebug extension and it’s installed, I can see it on phpinfo() but it doesn’t stop on the breakpoints and it doesn’t write anything into xdebug.log file. This is php.ini contents: And this is launch.json from VSCode: Answer You don’t say which of your three configurations you’re using, but if you’re using first the “Listen for Xdebug” one, then

Limit value of array show in debug side bar

I’m trying to increase the value limit of an array in debug side bar. By default, with an array with many elements, vscode only displays up to 32 values. I want to increase it to a certain number or unlimited. This is my launch.json file: But it seems that using max_data is incorrect. So, how to increase it to a

Advertisement