Magento 2 PHPSTORM Xdebug Configuration setup










1














How to setup and use Xdebug in Magento 2 which is very necessary tool for Magento 2.










share|improve this question























  • please check this link : magenest.com/en/debug-magento-2-code-xdebug-phpstorm-1
    – vikrant zilpe
    yesterday















1














How to setup and use Xdebug in Magento 2 which is very necessary tool for Magento 2.










share|improve this question























  • please check this link : magenest.com/en/debug-magento-2-code-xdebug-phpstorm-1
    – vikrant zilpe
    yesterday













1












1








1







How to setup and use Xdebug in Magento 2 which is very necessary tool for Magento 2.










share|improve this question















How to setup and use Xdebug in Magento 2 which is very necessary tool for Magento 2.







magento2 debugging xdebug






share|improve this question















share|improve this question













share|improve this question




share|improve this question








edited 23 hours ago









Zaheerabbas

1,01921431




1,01921431










asked yesterday









Manish Goswami

502314




502314











  • please check this link : magenest.com/en/debug-magento-2-code-xdebug-phpstorm-1
    – vikrant zilpe
    yesterday
















  • please check this link : magenest.com/en/debug-magento-2-code-xdebug-phpstorm-1
    – vikrant zilpe
    yesterday















please check this link : magenest.com/en/debug-magento-2-code-xdebug-phpstorm-1
– vikrant zilpe
yesterday




please check this link : magenest.com/en/debug-magento-2-code-xdebug-phpstorm-1
– vikrant zilpe
yesterday










1 Answer
1






active

oldest

votes


















1














I have setup Xdebug for PHPSTORM in Linux system these are the steps.



Step 1 :-



sudo apt-get install php-xdebug


Xdebug installation is up to you and after that please insure Xdebug is installed .



enter image description here



Step 2 :-



Now we need to add some setting in our php.ini file so first you need to check from where your configuration is being loaded.



enter image description here



Go to configuration loaded file.



/etc/php/7.1/apache2/php.ini


Add this setting last at you php.ini file



zend_extension="/usr/lib/php/20151012/xdebug.so"
xdebug.remote_enable = 1
xdebug.remote_host = "127.0.0.1"
xdebug.remote_port = 9000
xdebug.remote_autostart = 0
xdebug.profiler_enable = 0
xdebug.remote_handler = "dbgp"
xdebug.remote_mode = req
xdebug.remote_connect_back = 1
xdebug.remote_log="/var/log/xdebug/xdebug.log"
xdebug.idekey=PHPSTORM


This is screen-cast of your file will be look like this.



enter image description here



Step 3:- PHPSTORM



Start Your PHPSTORM GO To File >> Settings



enter image description here



Make sure your xdebug.remote_port = 9000 and in your PHPSTORM setting Debug Port == 9000 must be the same.


Step :- 4 [ Setting are completed ! ]



Now Go to your PHPSTORM in Menu >> Run >> Start Listing For Php Debug Connection



Start this setting before launching your project url in your browser.


Screen- Cast



enter image description here



Now open you browser and start your project and add session key to your url so that phpstorm inform to start debugging.



http://localhost/magento223?XDEBUG_SESSION_START=18200
?XDEBUG_SESSION_START=18200 == This is phpstorm session key.


That's all to configure Xdebug in PHPSTORM do let me know if you face any issues.






share|improve this answer






















    Your Answer








    StackExchange.ready(function()
    var channelOptions =
    tags: "".split(" "),
    id: "479"
    ;
    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: false,
    noModals: true,
    showLowRepImageUploadWarning: true,
    reputationToPostImages: null,
    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%2fmagento.stackexchange.com%2fquestions%2f255761%2fmagento-2-phpstorm-xdebug-configuration-setup%23new-answer', 'question_page');

    );

    Post as a guest















    Required, but never shown

























    1 Answer
    1






    active

    oldest

    votes








    1 Answer
    1






    active

    oldest

    votes









    active

    oldest

    votes






    active

    oldest

    votes









    1














    I have setup Xdebug for PHPSTORM in Linux system these are the steps.



    Step 1 :-



    sudo apt-get install php-xdebug


    Xdebug installation is up to you and after that please insure Xdebug is installed .



    enter image description here



    Step 2 :-



    Now we need to add some setting in our php.ini file so first you need to check from where your configuration is being loaded.



    enter image description here



    Go to configuration loaded file.



    /etc/php/7.1/apache2/php.ini


    Add this setting last at you php.ini file



    zend_extension="/usr/lib/php/20151012/xdebug.so"
    xdebug.remote_enable = 1
    xdebug.remote_host = "127.0.0.1"
    xdebug.remote_port = 9000
    xdebug.remote_autostart = 0
    xdebug.profiler_enable = 0
    xdebug.remote_handler = "dbgp"
    xdebug.remote_mode = req
    xdebug.remote_connect_back = 1
    xdebug.remote_log="/var/log/xdebug/xdebug.log"
    xdebug.idekey=PHPSTORM


    This is screen-cast of your file will be look like this.



    enter image description here



    Step 3:- PHPSTORM



    Start Your PHPSTORM GO To File >> Settings



    enter image description here



    Make sure your xdebug.remote_port = 9000 and in your PHPSTORM setting Debug Port == 9000 must be the same.


    Step :- 4 [ Setting are completed ! ]



    Now Go to your PHPSTORM in Menu >> Run >> Start Listing For Php Debug Connection



    Start this setting before launching your project url in your browser.


    Screen- Cast



    enter image description here



    Now open you browser and start your project and add session key to your url so that phpstorm inform to start debugging.



    http://localhost/magento223?XDEBUG_SESSION_START=18200
    ?XDEBUG_SESSION_START=18200 == This is phpstorm session key.


    That's all to configure Xdebug in PHPSTORM do let me know if you face any issues.






    share|improve this answer



























      1














      I have setup Xdebug for PHPSTORM in Linux system these are the steps.



      Step 1 :-



      sudo apt-get install php-xdebug


      Xdebug installation is up to you and after that please insure Xdebug is installed .



      enter image description here



      Step 2 :-



      Now we need to add some setting in our php.ini file so first you need to check from where your configuration is being loaded.



      enter image description here



      Go to configuration loaded file.



      /etc/php/7.1/apache2/php.ini


      Add this setting last at you php.ini file



      zend_extension="/usr/lib/php/20151012/xdebug.so"
      xdebug.remote_enable = 1
      xdebug.remote_host = "127.0.0.1"
      xdebug.remote_port = 9000
      xdebug.remote_autostart = 0
      xdebug.profiler_enable = 0
      xdebug.remote_handler = "dbgp"
      xdebug.remote_mode = req
      xdebug.remote_connect_back = 1
      xdebug.remote_log="/var/log/xdebug/xdebug.log"
      xdebug.idekey=PHPSTORM


      This is screen-cast of your file will be look like this.



      enter image description here



      Step 3:- PHPSTORM



      Start Your PHPSTORM GO To File >> Settings



      enter image description here



      Make sure your xdebug.remote_port = 9000 and in your PHPSTORM setting Debug Port == 9000 must be the same.


      Step :- 4 [ Setting are completed ! ]



      Now Go to your PHPSTORM in Menu >> Run >> Start Listing For Php Debug Connection



      Start this setting before launching your project url in your browser.


      Screen- Cast



      enter image description here



      Now open you browser and start your project and add session key to your url so that phpstorm inform to start debugging.



      http://localhost/magento223?XDEBUG_SESSION_START=18200
      ?XDEBUG_SESSION_START=18200 == This is phpstorm session key.


      That's all to configure Xdebug in PHPSTORM do let me know if you face any issues.






      share|improve this answer

























        1












        1








        1






        I have setup Xdebug for PHPSTORM in Linux system these are the steps.



        Step 1 :-



        sudo apt-get install php-xdebug


        Xdebug installation is up to you and after that please insure Xdebug is installed .



        enter image description here



        Step 2 :-



        Now we need to add some setting in our php.ini file so first you need to check from where your configuration is being loaded.



        enter image description here



        Go to configuration loaded file.



        /etc/php/7.1/apache2/php.ini


        Add this setting last at you php.ini file



        zend_extension="/usr/lib/php/20151012/xdebug.so"
        xdebug.remote_enable = 1
        xdebug.remote_host = "127.0.0.1"
        xdebug.remote_port = 9000
        xdebug.remote_autostart = 0
        xdebug.profiler_enable = 0
        xdebug.remote_handler = "dbgp"
        xdebug.remote_mode = req
        xdebug.remote_connect_back = 1
        xdebug.remote_log="/var/log/xdebug/xdebug.log"
        xdebug.idekey=PHPSTORM


        This is screen-cast of your file will be look like this.



        enter image description here



        Step 3:- PHPSTORM



        Start Your PHPSTORM GO To File >> Settings



        enter image description here



        Make sure your xdebug.remote_port = 9000 and in your PHPSTORM setting Debug Port == 9000 must be the same.


        Step :- 4 [ Setting are completed ! ]



        Now Go to your PHPSTORM in Menu >> Run >> Start Listing For Php Debug Connection



        Start this setting before launching your project url in your browser.


        Screen- Cast



        enter image description here



        Now open you browser and start your project and add session key to your url so that phpstorm inform to start debugging.



        http://localhost/magento223?XDEBUG_SESSION_START=18200
        ?XDEBUG_SESSION_START=18200 == This is phpstorm session key.


        That's all to configure Xdebug in PHPSTORM do let me know if you face any issues.






        share|improve this answer














        I have setup Xdebug for PHPSTORM in Linux system these are the steps.



        Step 1 :-



        sudo apt-get install php-xdebug


        Xdebug installation is up to you and after that please insure Xdebug is installed .



        enter image description here



        Step 2 :-



        Now we need to add some setting in our php.ini file so first you need to check from where your configuration is being loaded.



        enter image description here



        Go to configuration loaded file.



        /etc/php/7.1/apache2/php.ini


        Add this setting last at you php.ini file



        zend_extension="/usr/lib/php/20151012/xdebug.so"
        xdebug.remote_enable = 1
        xdebug.remote_host = "127.0.0.1"
        xdebug.remote_port = 9000
        xdebug.remote_autostart = 0
        xdebug.profiler_enable = 0
        xdebug.remote_handler = "dbgp"
        xdebug.remote_mode = req
        xdebug.remote_connect_back = 1
        xdebug.remote_log="/var/log/xdebug/xdebug.log"
        xdebug.idekey=PHPSTORM


        This is screen-cast of your file will be look like this.



        enter image description here



        Step 3:- PHPSTORM



        Start Your PHPSTORM GO To File >> Settings



        enter image description here



        Make sure your xdebug.remote_port = 9000 and in your PHPSTORM setting Debug Port == 9000 must be the same.


        Step :- 4 [ Setting are completed ! ]



        Now Go to your PHPSTORM in Menu >> Run >> Start Listing For Php Debug Connection



        Start this setting before launching your project url in your browser.


        Screen- Cast



        enter image description here



        Now open you browser and start your project and add session key to your url so that phpstorm inform to start debugging.



        http://localhost/magento223?XDEBUG_SESSION_START=18200
        ?XDEBUG_SESSION_START=18200 == This is phpstorm session key.


        That's all to configure Xdebug in PHPSTORM do let me know if you face any issues.







        share|improve this answer














        share|improve this answer



        share|improve this answer








        edited yesterday

























        answered yesterday









        Manish Goswami

        502314




        502314



























            draft saved

            draft discarded
















































            Thanks for contributing an answer to Magento Stack Exchange!


            • 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%2fmagento.stackexchange.com%2fquestions%2f255761%2fmagento-2-phpstorm-xdebug-configuration-setup%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

            Top Tejano songwriter Luis Silva dead of heart attack at 64

            ReactJS Fetched API data displays live - need Data displayed static

            政党