MAMP: enabling xdebug won't work - can't find php.ini












0














I have MAMP 4.5 on a Macbook High Sierra.
I just tried to enable xdebug, mainly to make var_dump() look more readable... and I was trying to get the orange-looking Errors.
I had this on another Computer before but can't get it working this time.



My active PHP Version is 7.2.1. (which php info tells me:



phpinfo tells me, /Applications/MAMP/bin/php/php7.2.1/conf/php.ini


)
I can find the php.ini file in /Applications/MAMP/bin/php/php7.2.1
but the other php.ini file I need to edit, which should be in /Applications/MAMP/conf/php7.2.1 is not there - the latest Folder is php7.1.12 - and editing this is not doing anything.



I have the following settings (in both files):



display_errors = On

[xdebug]
zend_extension="/Applications/MAMP/bin/php/php7.1.12/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.profiler_enable=0
xdebug.profiler_output_dir="/Applications/MAMP/tmp"









share|improve this question






















  • Why don't you edit the file you've found? Have you restarted your webserver after changing the configuration?
    – Nico Haase
    Nov 21 at 10:23










  • I edited the php7.2.1 and the php7.1.12 file. And restarted MAMP more times.
    – nuriye
    Nov 21 at 10:24










  • What I always find helpful with PHP extensions is to call the corresponding CLI like "php -v". If there are any errors, they will be reported on the shell (console) rather than being written to some logfile.
    – YetiCGN
    Nov 21 at 10:33










  • This is not about errors/log-files - mainly I was trying to get an readable output of var_dump() where I pass eg. an object or array.
    – nuriye
    Nov 21 at 10:53










  • @YetiCGN the shell version of PHP does not use the same configuration files, and not each application is able to run in the shell without changes
    – Nico Haase
    Nov 21 at 12:50
















0














I have MAMP 4.5 on a Macbook High Sierra.
I just tried to enable xdebug, mainly to make var_dump() look more readable... and I was trying to get the orange-looking Errors.
I had this on another Computer before but can't get it working this time.



My active PHP Version is 7.2.1. (which php info tells me:



phpinfo tells me, /Applications/MAMP/bin/php/php7.2.1/conf/php.ini


)
I can find the php.ini file in /Applications/MAMP/bin/php/php7.2.1
but the other php.ini file I need to edit, which should be in /Applications/MAMP/conf/php7.2.1 is not there - the latest Folder is php7.1.12 - and editing this is not doing anything.



I have the following settings (in both files):



display_errors = On

[xdebug]
zend_extension="/Applications/MAMP/bin/php/php7.1.12/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.profiler_enable=0
xdebug.profiler_output_dir="/Applications/MAMP/tmp"









share|improve this question






















  • Why don't you edit the file you've found? Have you restarted your webserver after changing the configuration?
    – Nico Haase
    Nov 21 at 10:23










  • I edited the php7.2.1 and the php7.1.12 file. And restarted MAMP more times.
    – nuriye
    Nov 21 at 10:24










  • What I always find helpful with PHP extensions is to call the corresponding CLI like "php -v". If there are any errors, they will be reported on the shell (console) rather than being written to some logfile.
    – YetiCGN
    Nov 21 at 10:33










  • This is not about errors/log-files - mainly I was trying to get an readable output of var_dump() where I pass eg. an object or array.
    – nuriye
    Nov 21 at 10:53










  • @YetiCGN the shell version of PHP does not use the same configuration files, and not each application is able to run in the shell without changes
    – Nico Haase
    Nov 21 at 12:50














0












0








0







I have MAMP 4.5 on a Macbook High Sierra.
I just tried to enable xdebug, mainly to make var_dump() look more readable... and I was trying to get the orange-looking Errors.
I had this on another Computer before but can't get it working this time.



My active PHP Version is 7.2.1. (which php info tells me:



phpinfo tells me, /Applications/MAMP/bin/php/php7.2.1/conf/php.ini


)
I can find the php.ini file in /Applications/MAMP/bin/php/php7.2.1
but the other php.ini file I need to edit, which should be in /Applications/MAMP/conf/php7.2.1 is not there - the latest Folder is php7.1.12 - and editing this is not doing anything.



I have the following settings (in both files):



display_errors = On

[xdebug]
zend_extension="/Applications/MAMP/bin/php/php7.1.12/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.profiler_enable=0
xdebug.profiler_output_dir="/Applications/MAMP/tmp"









share|improve this question













I have MAMP 4.5 on a Macbook High Sierra.
I just tried to enable xdebug, mainly to make var_dump() look more readable... and I was trying to get the orange-looking Errors.
I had this on another Computer before but can't get it working this time.



My active PHP Version is 7.2.1. (which php info tells me:



phpinfo tells me, /Applications/MAMP/bin/php/php7.2.1/conf/php.ini


)
I can find the php.ini file in /Applications/MAMP/bin/php/php7.2.1
but the other php.ini file I need to edit, which should be in /Applications/MAMP/conf/php7.2.1 is not there - the latest Folder is php7.1.12 - and editing this is not doing anything.



I have the following settings (in both files):



display_errors = On

[xdebug]
zend_extension="/Applications/MAMP/bin/php/php7.1.12/lib/php/extensions/no-debug-non-zts-20160303/xdebug.so"
xdebug.remote_enable=1
xdebug.remote_host=localhost
xdebug.remote_port=9000
xdebug.remote_autostart=1
xdebug.profiler_enable=0
xdebug.profiler_output_dir="/Applications/MAMP/tmp"






php mamp xdebug






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 21 at 10:16









nuriye

83




83












  • Why don't you edit the file you've found? Have you restarted your webserver after changing the configuration?
    – Nico Haase
    Nov 21 at 10:23










  • I edited the php7.2.1 and the php7.1.12 file. And restarted MAMP more times.
    – nuriye
    Nov 21 at 10:24










  • What I always find helpful with PHP extensions is to call the corresponding CLI like "php -v". If there are any errors, they will be reported on the shell (console) rather than being written to some logfile.
    – YetiCGN
    Nov 21 at 10:33










  • This is not about errors/log-files - mainly I was trying to get an readable output of var_dump() where I pass eg. an object or array.
    – nuriye
    Nov 21 at 10:53










  • @YetiCGN the shell version of PHP does not use the same configuration files, and not each application is able to run in the shell without changes
    – Nico Haase
    Nov 21 at 12:50


















  • Why don't you edit the file you've found? Have you restarted your webserver after changing the configuration?
    – Nico Haase
    Nov 21 at 10:23










  • I edited the php7.2.1 and the php7.1.12 file. And restarted MAMP more times.
    – nuriye
    Nov 21 at 10:24










  • What I always find helpful with PHP extensions is to call the corresponding CLI like "php -v". If there are any errors, they will be reported on the shell (console) rather than being written to some logfile.
    – YetiCGN
    Nov 21 at 10:33










  • This is not about errors/log-files - mainly I was trying to get an readable output of var_dump() where I pass eg. an object or array.
    – nuriye
    Nov 21 at 10:53










  • @YetiCGN the shell version of PHP does not use the same configuration files, and not each application is able to run in the shell without changes
    – Nico Haase
    Nov 21 at 12:50
















Why don't you edit the file you've found? Have you restarted your webserver after changing the configuration?
– Nico Haase
Nov 21 at 10:23




Why don't you edit the file you've found? Have you restarted your webserver after changing the configuration?
– Nico Haase
Nov 21 at 10:23












I edited the php7.2.1 and the php7.1.12 file. And restarted MAMP more times.
– nuriye
Nov 21 at 10:24




I edited the php7.2.1 and the php7.1.12 file. And restarted MAMP more times.
– nuriye
Nov 21 at 10:24












What I always find helpful with PHP extensions is to call the corresponding CLI like "php -v". If there are any errors, they will be reported on the shell (console) rather than being written to some logfile.
– YetiCGN
Nov 21 at 10:33




What I always find helpful with PHP extensions is to call the corresponding CLI like "php -v". If there are any errors, they will be reported on the shell (console) rather than being written to some logfile.
– YetiCGN
Nov 21 at 10:33












This is not about errors/log-files - mainly I was trying to get an readable output of var_dump() where I pass eg. an object or array.
– nuriye
Nov 21 at 10:53




This is not about errors/log-files - mainly I was trying to get an readable output of var_dump() where I pass eg. an object or array.
– nuriye
Nov 21 at 10:53












@YetiCGN the shell version of PHP does not use the same configuration files, and not each application is able to run in the shell without changes
– Nico Haase
Nov 21 at 12:50




@YetiCGN the shell version of PHP does not use the same configuration files, and not each application is able to run in the shell without changes
– Nico Haase
Nov 21 at 12:50

















active

oldest

votes











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53409797%2fmamp-enabling-xdebug-wont-work-cant-find-php-ini%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown






























active

oldest

votes













active

oldest

votes









active

oldest

votes






active

oldest

votes
















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.





Some of your past answers have not been well-received, and you're in danger of being blocked from answering.


Please pay close attention to the following guidance:


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53409797%2fmamp-enabling-xdebug-wont-work-cant-find-php-ini%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Feedback on college project

Futebolista

Albești (Vaslui)