Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP debugging in XAMPP

Is any debugger is installed by default in XAMPP/WAMP server or We have manually download and configure the debugger? Also do recommend the best PHP debugger.

like image 957
sandbox Avatar asked Dec 07 '11 16:12

sandbox


People also ask

Does xampp have xdebug?

Xdebug is a powerful open source debugger and profiler for PHP. It is included with XAMPP and can be used to display stack traces, analyze code coverage and profile your PHP code. Restart the Apache server using the XAMPP control panel.

Does PHP have a debugger?

PHP is shipped with the phpdbg interactive debugger. External debuggers can also be used. The » Zend IDE includes a debugger, and there are also some free debugger extensions like DBG at » http://www.php-debugger.com/dbg/, the » Advanced PHP Debugger (APD) or » Xdebug.


1 Answers

If you want to use Netbeans and Xampp with debugging, simply open c:\xampp\php\php.ini and add these rows. It worked for me like a charm.

xdebug.remote_handler="dbgp"
xdebug.remote_enable=on
xdebug.remote_port =9000
xdebug.remote_enable = 1
xdebug.profiler_enable = off
xdebug.profiler_trigger = off
xdebug.profiler_output_name = "cachegrind.out.%t-%s"
xdebug.profiler_output_dir = "C:\xampp\tmp"

Or check this out: Check this out: https://www.youtube.com/watch?v=HbJOP0YcSjs

like image 163
Novasol Avatar answered Sep 27 '22 17:09

Novasol