I’m using Laravel for my project. I wrote some PHP code inside HTML which basically under my .blade.php file. I’m trying to debug variable $highestRow inside tbody tag. I tried var_dump($highestRow) but my controller is just passing over the breakpoint. I’m looking for some x_debug() thing to use for debugging. All I remember there is some function in Xdebug to
Tag: xdebug
Xdebug error on local environment [Failed loading /usr/local/lib/php/pecl/20190902/xdebug.so:]
I want to use Xdebug on the vscode. I tried it while reading the official documentation, but I couldn’t get it to work and got the following error. php –ini Has anyone else encountered the same problem? Thank you. Answer I got this working by doing something similar to this: https://stackoverflow.com/a/48054252 I added to ~/.bash_profile. You can run source ~/.bash_profile
How to set up VSCode, PHP Debug and XDebug (Windows 10)
I want to use VSCode’s ‘PHP Debug’ plugin with Xdebug to debug PHP scripts. But when I choose “Debug|Start Debugging F5” the little debug pop-up appears and I am stuck. Buttons for Pause, Restart, Stop are active. Buttons for Step over, into, out are inactive (greyed out). Nothing happens in the debug console. (1) VSCode 1.42.1 is installed (2) XAMPP
Debugging Laravel application on VSCode
Has anyone successfully configured VSCode to debug Laravel-based website? After having followed numerous articles and tutorials, I have made it to the point where I can ask VSCode to “Listen to XDEBUG”, but I haven’t been able to do normal VS-style debugging where I could just hit F5 to launch current the website in my favorite browser and it would
Xdebug Ubuntu 18.04 and PHP 7.2
I just updated Ubuntu to version 18.04 and I have version 7.2 of PHP, if I execute the command “php -v” I get this result root@laptop1:/etc/apache2/sites-enabled# php -v PHP 7.2.3-1ubuntu1 (cli) (…
Microsoft VS Code: When I try to launch my program error “spawn php ENOENT” shows up
I am trying to run PHP code on Microsoft VS Code. When I click launch the only thing that happens is an error in the debug console saying: spawn php ENOENT To fix this, I have put the dll file for XDebug into the ext folder. I copied php.ini-development into a new file called php.ini and in that file I
What’s the difference between xdebug.ini and php.ini
Recently I installed lamp and php-xdebug on an ubuntu 16.04 box. I noticed that now I have the following files /etc/php/7.0/apache2/conf.d/20-xdebug.ini /etc/php/7.0/cli/conf.d/20-xdebug.ini /etc/…
PHP Debug in Visual Studio Code breaks on every exception
I am just starting to use the PHP Debug extension in Visual Studio Code (Ubuntu 14.04). It mostly works fine for me, but I have a problem that every time an exception is thrown, the debugger …
Using xdebug with a front-end js SPA?
I have xdebug working great when I access my server directly (thru a vhost entry to the IP set up by homestead/vagrant). However, I have a decoupled frontend that I’m running on localhost:8080, that …
Xdebug laravel artisan commands
I regularly use xdebug to debug applications, I’ve built a laravel application that takes an upload of a csv inserts the data to the database and the ids to a job queue. I’ve written an artisan …