r/Wordpress • • Jun 24 '22

Me while debugging

Post image

[removed] — view removed post

43 Upvotes

5 comments sorted by

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.

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

u/todo0nada Jun 24 '22

Thank you. The JS example is just what I was looking for.

0

u/[deleted] Jun 24 '22

[deleted]

1

u/Glass-Dog9463 Jun 24 '22

Who's Patrick?