236 posts
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Has been a member for 3-4 years
  • Bought between 1 and 9 items
  • Microlancer Beta Tester
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

782 posts
  • Exclusive Author
  • India
  • Has been a member for 5-6 years
  • Beta Tester
  • Referred between 1 and 9 users
  • Microlancer Beta Tester
laranz says
236 posts
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Has been a member for 3-4 years
  • Bought between 1 and 9 items
  • Microlancer Beta Tester
GradaStudio says

thanks laranz.

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

490 posts
  • Sold between 10 000 and 50 000 dollars
  • Referred between 10 and 49 users
  • Bought between 50 and 99 items
  • Exclusive Author
  • Has been a member for 3-4 years
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.

2429 posts
  • Has been a member for 4-5 years
  • Exclusive Author
  • Europe
  • Bought between 10 and 49 items
  • Referred between 100 and 199 users
  • Sold between 100 and 1 000 dollars
  • Microlancer Beta Tester
digitalimpact says
576 posts
  • Bought between 1 and 9 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 10 000 and 50 000 dollars
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
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Has been a member for 3-4 years
  • Bought between 1 and 9 items
  • Microlancer Beta Tester
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 )

403 posts
  • Microlancer Beta Tester
  • Interviewed on the Envato Notes blog
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 1 000 and 5 000 dollars
RelStudios 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
  • Exclusive Author
  • Sold between 10 000 and 50 000 dollars
  • Has been a member for 3-4 years
  • Bought between 1 and 9 items
  • Microlancer Beta Tester
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

403 posts
  • Microlancer Beta Tester
  • Interviewed on the Envato Notes blog
  • Bought between 10 and 49 items
  • Exclusive Author
  • Has been a member for 3-4 years
  • Sold between 1 000 and 5 000 dollars
RelStudios 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