ideasonpurpose / basic-wordpress-vagrant

A fast, easy to use WordPress Vagrant environment modeled after managed WordPress hosting platforms like WP Engine and Flywheel.
MIT License
25 stars 3 forks source link

Add Kint visual debugger by default #33

Closed joemaller closed 7 years ago

joemaller commented 7 years ago

I do this every time, might as well automate it.

http://raveren.github.io/kint/

Require Kint in local wp-config.php and auto-download the library into the top level.

jgraup commented 7 years ago

Interesting. Do have tools that you use in conjunction with Kint, like https://wordpress.org/plugins/kint-debugger/? Also, is there a good way to show Kint output from AJAX calls? I'm guessing it's whatever method would have to allow for more persistent data or IDE integration.

joemaller commented 7 years ago

Hi @jgraup I've been using Kint for a really long time. I kind of "grew up" with print_r but Kint is just so much more comprehensive.

Kint is for introspecting PHP stuff; data structures that the server is using to generate pages. For most Ajax, I usually just dump to the browser console with console.log. For exploring more complex API endpoints that require authentication or whatever, I use Postman.

Other than having Sublime Text somewhat tricked out, I don't personally use much IDE stuff.