Enable Xdebug in MS Visual Studio Code using WAMP server

Поділитися
Вставка
  • Опубліковано 20 вер 2024
  • Download xdebug here: xdebug.org/dow...
    Make sure that you choose your version of PHP
    Settings for php.ini file:
    [xdebug]
    zend_extension="|| location of wamp ||/zend_ext/php_xdebug-2.7.2-7.3-vc15-x86_64.dll"
    xdebug.remote_enable = 1
    xdebug.remote_autostart = 1
    xdebug.profiler_enable = off
    xdebug.profiler_enable_trigger = Off
    xdebug.profiler_output_name = cachegrind.out.%t.%p
    xdebug.profiler_output_dir ="c:/wamp/tmp"
    xdebug.show_local_vars=0
    After you download xdebug .dll file enable it under the PHP extensions in WAMP if available and then check if some of these settings appeared in php.ini.
    If you have any problems comment in the section below.
    Cheers. :)

КОМЕНТАРІ • 24

  • @terespl
    @terespl 2 роки тому +3

    I recommend you also add this line to the php.ini configuration:
    xdebug.start_with_request=trigger
    Then use extension for browser to start debuging. Or if you want the Xdebug to be always running change it to:
    xdebug.start_with_request=yes
    From now on you can connect and listen to Xdebug from VS Code.

    • @FranciscoRodrigues-xj2pg
      @FranciscoRodrigues-xj2pg 4 місяці тому

      Really this step was necessary in order to make xdebug works in my environment. Thanks!

  • @markohristovski9293
    @markohristovski9293 2 роки тому +1

    Thanks this helped me a lot!
    Cheers!

  • @sanakust
    @sanakust 3 роки тому +1

    Yes its working now. Thank you for help.

  • @NEETHUMOHAN38
    @NEETHUMOHAN38 4 роки тому

    Thank You..It helped a lot.I was struggling to debug it in Visual Studio Code.Now it seems fine.Thanks again

  • @princeas2749
    @princeas2749 2 роки тому +1

    Thank you so much ❤️🥰

  • @ivangauci807
    @ivangauci807 3 роки тому

    Work like a dream, thank you very much !

  • @ilyakaup4809
    @ilyakaup4809 4 роки тому +1

    Thanks a lot! It works

    • @fkangalov
      @fkangalov  4 роки тому +1

      I'm glad it helped. :)

  • @JimmyChane
    @JimmyChane 3 роки тому

    thanks, the xdebug.remote_autostart is what i need

  • @lizamali1619
    @lizamali1619 4 роки тому +1

    great. thank you! Do you have any qcachegrind usage example, please ?

    • @fkangalov
      @fkangalov  4 роки тому +1

      No sorry I haven't used that so far

    • @lizamali1619
      @lizamali1619 4 роки тому +1

      thank you anyway. try it, helps finding bottlenecks in the app

  • @ghury1
    @ghury1 3 місяці тому

    this approch doesn't work for codeigniter 4, in case someone tries to configure it

  • @henryhidalgosandoval1831
    @henryhidalgosandoval1831 4 роки тому +1

    HELLO FRIEND, I FOLLOWED ALL THE STEPS, BUT I HAVE THIS PROBLEM:
    This website cannot be accessed
    The connection has been re-established.
    Try to:
    Verify connection
    Verify the proxy and the firewall
    Run Windows Network Diagnostics
    ERR_CONNECTION_RESET, in the browser, please help me....

    • @fkangalov
      @fkangalov  4 роки тому

      Can you explain in more detail, I think that you are not able to access the site you are working on at all, doesn't seem to be related to xDebug. Check wamp/mamp/lamp is installed properly on you computer.

    • @henryhidalgosandoval1831
      @henryhidalgosandoval1831 4 роки тому

      @@fkangalov dear friend thanks for replying, i am using xamp, the procedure is the same.

    • @fkangalov
      @fkangalov  4 роки тому

      @@henryhidalgosandoval1831 can you access any php project?

    • @henryhidalgosandoval1831
      @henryhidalgosandoval1831 4 роки тому

      @@fkangalov Once inside the folder, what procedures do I have to carry out ...

    • @fkangalov
      @fkangalov  4 роки тому

      @@henryhidalgosandoval1831 which folder, can you specify a path

  • @fkangalov
    @fkangalov  4 роки тому

    If somebody has issues on Chrome it might help installing the extension "Debugger for Chrome". I had problems on my laptop and made it to work like that. Hope this helps.

  • @taustyle
    @taustyle 2 роки тому

    Напомнило старый анекдот
    знакомство в соцсети:
    - Hi! Where are you from?
    - Hi! I from Russia. And you?
    - I from France.
    - Pizz dish.
    - Chestnoe slovo.