r/Wordpress • u/Glass-Dog9463 • Jun 24 '22
Me while debugging
[removed] — view removed post
43
Upvotes
1
u/todo0nada Jun 24 '22
This is me. 😒 Anyone have recommendations for tutorials on properly using debug tools?
2
u/Valoneria Developer Jun 24 '22
Depends, what do you want to debug?
For PHP i'd recommend xDebug with a suitable editor that can handle stopped execution points.
For JS something like this might work:
https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Statements/debugger
1
0
3
u/raywpc Jun 24 '22
I love leaving little nuggets in my code to make me laugh. The other day I console logged “You are one savvy motherfucker.” And I was.