Using Laravel Tinker in Chrome DevTools
Tony Lea created a new Chrome extension that will add a PHP tab in Chrome DevTools. Nice!
Read more [amitmerchant.com]
Posts tagged with debug
Tony Lea created a new Chrome extension that will add a PHP tab in Chrome DevTools. Nice!
Read more [amitmerchant.com]
– youtu.be - submitted by Bert De Swaef
In this video we're learning how to use Ray to debug your projects. Weither your working with Laravel, PHP, Javascript or some other programming language, Ray is there for you.
Debugging your project was made easy by the guys over at Spatie. They designed and developed a debugging tool for us, called Ray. Available at https://myray.app
Read more [youtu.be]
Join thousands of developers
Every two weeks, I share practical tips, tutorials, and behind-the-scenes insights from maintaining 300+ open source packages.
No spam. Unsubscribe anytime. You can also follow me on X.
– github.com - submitted by Patrick
The vue-ray package has released v2.0, with full script setup/composition api support, reduced overhead, and more.
Read more [github.com]
– flareapp.io - submitted by Spatie
Learn how to improve your debugging experience with custom context and glows.
Read more [flareapp.io]
– qirolab.com - submitted by Harish Kumar
Laravel Clockwork is a powerful debugging and profiling tool seamlessly integrated into the Laravel framework. With its real-time web interface, Clockwork provides developers with instant insights into their application's runtime behavior.
Read more [qirolab.com]
There are a few tricks in Chrome DevTools that don’t seem to get enough attention.
Read more [utilitybend.com]
Our handy Ray debugging app gained a cool new trick: it can now display the values of private properties and results of private methods.
I'm proud to share that our team has released a new major version of Ignition, the most beautiful error page for Laravel and PHP. It has been redesigned from the ground up. Here's how it looks like. This error page will be the default in Laravel 9. You can optionally install it into any Laravel 8 or…
If you're using Ignition (and you probably are if you're on Laravel 6), you know have access to a new helper function that help you debug code.
We now give you ddd - a globally available helper function that does everything that you love about dd and sprinkles everything that Ignition has to offer on top of it.
Read more [flareapp.io]
Jonathan Reinink has added a very usefull metric to Laravel debugbar
Last week at Laracon US I gave a talk titled Eloquent Performance Patterns. In that talk I used a custom Laravel Debugbar metric I created to track how many Eloquent models were being hydrated throughout a request. I've had a lot of people asking about this, so today I submitted a pull request to the Laravel Debugbar to add this as an official metric.
Read more [reinink.ca]
If you're debugging an array or an object, try console.table() instead of console.log()! It gives you a muuuuch better visual representation of the data in the console ? pic.twitter.com/5V9TCsBiOK
— Erin ? (@erinfranmc) June 10, 2019
Read more [twitter.com]
Grégoire Pineau explains how you can find the source of a segfault in PHP.
Sometimes, a segfault happens, but you don’t know where, and your PHP installation does not have tools to find it. Or sometime, you think PHP is hanging, but you don’t know where. You may use xdebug, but you don’t want to click so many times on the « next call » button.
Read more [jolicode.com]
Whoops error pages are awesome, though sometimes you may need to analyze stack trace in PhpStorm!
— PhpStorm (@phpstorm) October 19, 2018
Tools -> Analyze Stack Trace
Can also be handy if you got a stack trace from a remote server log. pic.twitter.com/OVRb5KnBJQ
Read more [twitter.com]
⏲️? Having trouble inspecting things that only show up when your mouse is hovered (because of javascript, not just CSS hover)?
— Caleb Porzio (@calebporzio) September 7, 2018
Here's a little helper to add to your projects. I use this baby all the time. pic.twitter.com/FNyyGcVgbj
Read more [twitter.com]
Joe Watkins, core PHP developer and author of (amongst many other things) ptrheads, is busy creating a PHP debugger written in PHP that you can just composer require.
This isn't just pipe dreams, the PHP code exists, it's alpha quality and largely untested ...There is much to do and you shouldn't design your workflow around this (or any alpha quality software) yet. What you should do is start reading code, testing, and opening pull requests...
You'll find the code of Joe's debugger in this repo on GitHub.
Read more [blog.krakjoe.ninja]
Let's talk a little bit about Symfony's dump function. It's part of their VarDumper component. The function can dump a variable to the screen or browser in a nicer format than PHP's native var_dump. In the recently released Symfony 3.4 and Symfony 4 the function got a nice little improvement that…
Clockwork is Laravel package, made by itsgoingd, that can collect a lot of helpful info such as queries executed, views loaded, route used, ... Unlike the popular laravel-debugbar package, Clockwork will not inject extra stuff into the html itself. All collected info is displayed in the developer tools of your browser (you'll need to install an extension first).
On most of my day to day work I use Laravel Valet to develop locally. When hitting a bug often I just put a dd() statement in the code to quickly inspect what's going on. But when encountering a complex bug this becomes tedious. Wouldn't it be nice if we could add a breakpoint to our code and be…
On the Tighten blog Keith Damiani wrote an article how you can mold the dd helper to your liking.
An important part of every Laravel developer's debugging arsenal is the humble dd() helper function—"dump and die"—to output the contents of a variable and terminate execution of your code. In the browser, dd() results in a structured, easy-to-read tree, complete with little arrow buttons that can be clicked to expand or hide children of nested structures. In the terminal, however, it's a different story. ... Fortunately, it's simple to build your very own customized version of dd() to help tame your unwieldly terminal output.
Daniel Reis shows some alternatives for the best known form of debugging JavaScript console.log.
I don’t consider myself a nitpicker. That’s only true, and it’s all fine and dandy… until I find a console.log() that someone forgot to remove from the JavaScript code. And if we’re talking about debugger statements… all hell breaks loose! ... I collected some of the most common examples I can present as proper alternatives for that process.
https://medium.com/outsystems-experts/beyond-console-debugging-tricks-f7d0d7f5df4