Created
November 21, 2019 04:59
-
-
Save junaidtk/75816bd6f579b1530e0445d06ad32dd5 to your computer and use it in GitHub Desktop.
Formatting the var_dump in MAMP
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This is used to formate the debuging mode of the MAMP. | |
Here we need to enable the xdebug module in mamp in php ini file. | |
There are two different php ini file in, The locations are following. | |
/Applications/MAMP/bin/php/php7.3.8/conf/php.ini ---- In bin folder | |
/Applications/MAMP/conf/php7.3.8/php.ini ---- In conf folder | |
In bin folder open php.ini file and uncomment the line | |
zend_extension="/Applications/MAMP/bin/php/php5.4.4/lib/php/extensions/no-debug-non-zts-20100525/xdebug.so" | |
you can also add the below line after the above line php.ini file for better functionality. | |
xdebug.remote_autostart=1 | |
xdebug.remote_enable=1 | |
xdebug.remote_host=localhost | |
xdebug.remote_port=9000 | |
xdebug.remote_handler=dbgp | |
reference : | |
https://justnorris.com/var_dump-sucked/ | |
https://xdebug.org/docs/all_settings | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment