How do you debug wordpress php code ( Xdebug or any other tool ) ?

236 posts
  • Author Level 5
  • Beta Tester
  • Collector Level 1
  • Exclusive Author
+1 more
GradaStudio
says

Hey guys, i use sublime text 2 and MAMP/ WAMP . is there any good tutorial to debug the php code with line breaks just like an IDE ?

thanks

822 posts
  • 6 Years of Membership
  • Beta Tester
  • India
  • Exclusive Author
+1 more
laranz
says
236 posts
  • Author Level 5
  • Beta Tester
  • Collector Level 1
  • Exclusive Author
+1 more
GradaStudio
says

thanks laranz.

is there any way to do the same with sublime text 2 ? kinda love this editor.

510 posts Ngoc Viet
  • Affiliate Level 3
  • Author Level 7
  • Collector Level 3
  • Elite Author
+3 more
wopethemes
says

I’m using nothing to debug. Just echo the value and consider how it work. I did it very well with jQuery also.

2468 posts
  • 6 Years of Membership
  • Author Level 2
  • Affiliate Level 4
  • Beta Tester
+3 more
digitalimpact
says
683 posts
  • 4 Years of Membership
  • Author Level 5
  • Collector Level 2
  • Exclusive Author
ChapterThemes
says

One of the best things is to always have WP_DEBUG set to true in the wp-config.php file. This way you’ll even see errors that don’t affect functionality, but are still there.

236 posts
  • Author Level 5
  • Beta Tester
  • Collector Level 1
  • Exclusive Author
+1 more
GradaStudio
says

thanks for replies guys.

i am already aware of basic debugging using echo, print_r and wp_debug.

this is something advanced i am asking for.

i tried SublimeXdebug plugin but had hard time configuring it ( looks like it need to be updated )

417 posts
  • Author Level 3
  • Beta Tester
  • Collector Level 2
  • Blog Interview
+2 more
CodeScribe
says

thanks for replies guys.

i am already aware of basic debugging using echo, print_r and wp_debug.

this is something advanced i am asking for.

i tried SublimeXdebug plugin but had hard time configuring it ( looks like it need to be updated )
try var_dump(); :p hehe bro actually what you want ? If i understood your question properly then, i suppose you need to do unit testing for each module and sub module, it’s actually TDD approach, so here you go here

Good luck !

236 posts
  • Author Level 5
  • Beta Tester
  • Collector Level 1
  • Exclusive Author
+1 more
GradaStudio
says


thanks for replies guys.

i am already aware of basic debugging using echo, print_r and wp_debug.

this is something advanced i am asking for.

i tried SublimeXdebug plugin but had hard time configuring it ( looks like it need to be updated )
try var_dump(); :p hehe bro actually what you want ? If i understood your question properly then, i suppose you need to do unit testing for each module and sub module, it’s actually TDD approach, so here you go here Good luck !

that is at later stage.

i actually want to pause the execution using break points in my code in sublime text just like in IDEs

417 posts
  • Author Level 3
  • Beta Tester
  • Collector Level 2
  • Blog Interview
+2 more
CodeScribe
says



thanks for replies guys.

i am already aware of basic debugging using echo, print_r and wp_debug.

this is something advanced i am asking for.

i tried SublimeXdebug plugin but had hard time configuring it ( looks like it need to be updated )
try var_dump(); :p hehe bro actually what you want ? If i understood your question properly then, i suppose you need to do unit testing for each module and sub module, it’s actually TDD approach, so here you go here Good luck !

that is at later stage.

i actually want to pause the execution using break points in my code in sublime text just like in IDEs

I don’t know about sublime ide but in eclipse, netbeans you can do that easily

by
by
by
by
by
by