Tips & Tricks For Debugging WordPress PHP
Вставка
- Опубліковано 9 лип 2019
- In this tutorial, I go over how to get started with debugging WordPress PHP. I'll show you how to turn on debug mode, turn on error logging and a special trick you can use to debug PHP when you're making an AJAX call.
Contents:
1:09 - Turning on WordPress's Debug Mode and Logging
4:28 - Debugging PHP when making an AJAX call
Sign up for the newsletter to notified about the free 2020 WordPress Development Course: wpcasts.tv
*Don't forget to subscribe!*
*SOCIAL*
Twitter: / alexanderbyoung
Instagram: / the_alex_young
#WordPressDevelopment #PHP #WordPressBeginners
Even though we are just scratching the surface to debugging WordPress PHP. I hope you learned something!
Thanks for sharing. Xdebug is very helpful as well: www.codewall.co.uk/debug-php-in-vscode-with-xdebug/
Thank you for the debugging tips, extremely helpful.
ok such a newbie here!! THANK U! helped me so much!
So good to find this today. Fixed my hiccups. Awesome 👍😎
Exactly what I was looking for, Thank you
Great video mate. Thanks!
Awesome tips, At work we use Sentry, and I do really like it. The ability to plop everything into one location and delegate issues to team members is amazing.
For personal use through the logging method that you talked about its wicked.
The only thing I do differently is using the logging in MAMP with my Apache V-hosts, this lets me use all of my virtual hosts and log each local site to its own file.
Basically the same thing though.
Very helpful!
Thank you for the video
Very Helpful!
Glad you think so!
cooooooooooooooool!
thanks info php wordpress custom development environment and tips!
Good tutorial! Can you make a video tutorial about you to custom the post for a default WordPress theme? For example, I want to add a custom source code area in the post. Thank you for share.
Can you do a course on unit testing.,
Good video
I'm going to have a local env for elk stack and feeding php error logs into elk stack to see stats, etc.
awesome
Hi, it is possible to have querymonitor on frontend ? And thank you for your videos - top quality content, I bow to you ! I hope you continue the good work.
how can i debug in save_post?
There are very few of wordpress custom develop data in south korea.
Is there wordpress custom development going on in your career or software market of software developers a lot?
I've set wp-debug to true and then refresh the website, but no error warnings or notices appear at the top of the website. How do I get it to show at the top?
I can't update my php version of Wordpress. Can you help me with this? Also, if I do this do I need to be hosting my website locally? Someone please help.
So sorry, but I have another question. How do you get to wp-config.php to edit?
I have the same question. This is all new to me...
You need to access your server files. So let's say your site name is example-site[.com] , then your main file should have the same name so you browse example-site[.com] and you should see wp-config.php inside that direcrtory
FTP mb
What are you using to edit the site live? Looks much easier than uploading new files every time.
I'll be creating a tutorial about how my workflow in WordPress in the coming weeks. Keep an eye out for it :)
@@WPCasts let us know please! thanks
what program are u using to access php code?
Visual Studio Code
gooooodddddddddddddddddddd
How do this if you cannot login now to WordPress after debug error?
If you have access to the DB you can change the active theme to twentytwenty and deactivate the plugins. That will make it so you can login again
where the fuck do i find that fucking front.php file?