Setup Xdebug WITH DOCKER and debug in VSCode

Поділитися
Вставка
  • Опубліковано 11 вер 2024

КОМЕНТАРІ • 35

  • @kenjohnsiosan9707
    @kenjohnsiosan9707 Рік тому +1

    This is very timely since Im exploring XDebug

  • @chistowick
    @chistowick 10 місяців тому +1

    Thank you! xdebug.client_host=host.docker.internal - it solved my problem with debugging unit test on Ubuntu through Docker

  • @user-ku8fh3px1z
    @user-ku8fh3px1z Рік тому +1

    I'm allmost crying by happy. Thank you

  • @vineethpeddi2056
    @vineethpeddi2056 Рік тому +1

    Even after struggling a lot in setting up the debugger I failed. But after watcing this video it worked. Thanks man!. For me, it worked after modifying php.ini file. After modifying, my php.ini file looks like this:
    [xdebug]
    xdebug.mode = debug
    xdebug.start_with_request=yes
    xdebug.discover_client_host = 1

  • @sediqamousavi7110
    @sediqamousavi7110 Рік тому

    I couldn't configure PHP debug, but you solved my problem; thanks a million!

  • @leonidasferreira
    @leonidasferreira 7 місяців тому

    Maaaaan!!!! Thanks a looooot!!! I almost wasted all my day tring to make this before until... find your video!🤩
    You are souls-saver of the desperate developers 🤣
    Get this like and +1 sub 😎👍

  • @HendraHdr-s3y
    @HendraHdr-s3y 11 місяців тому +1

    worked perfectly. Hatur nuhun gan!

  • @luciantarba6436
    @luciantarba6436 Рік тому +1

    Thank you! Very well done video, worked perfectly.

  • @MayteMozoReyes
    @MayteMozoReyes Місяць тому

    Excelent tutorial, thanks your sharing your knowledge

  • @Solo_Naki
    @Solo_Naki 6 місяців тому

    Really nice explained! Simple to follow and install xdebug

  • @ravimukti690
    @ravimukti690 Рік тому +1

    thanks a lot u save my life

  • @potaetoupotautoe7939
    @potaetoupotautoe7939 9 місяців тому

    thanks for the video. just a advice, if you're doing things, let us know the sources of where you found out about the things and the thought process.

  • @bova8818
    @bova8818 Рік тому

    you saved my life. Thanks bro!

  • @aiqr
    @aiqr Місяць тому

    thank you nice guide

  • @JeanPierRMonti
    @JeanPierRMonti Рік тому +1

    Thanks man!!!

  • @jasmeralia
    @jasmeralia 2 дні тому

    I've got everything set up, but it doesn't seem to be able to talk from the container to VSCode... I never see things come through in VSCode, although I can see in the xdebug info "[Step Debug] Time-out connecting to debugging client, waited: 200 ms. Tried: 192.168.1.220:9003 (through xdebug.client_host/xdebug.client_port)." Any suggestions would be quite welcome.

  • @coliwong6018
    @coliwong6018 Рік тому +1

    Hi ,"/var/www" is that your wsl local copy path or your project in the docker container path. Thanks

  • @AndrewErwin73
    @AndrewErwin73 Рік тому +1

    I followed the instructions, the only difference is that I am actually on Linux, but whenever I try to run xdebug I just get an error that says 9003 is already in use? Any advice?

  • @user-fq4wx7mv2g
    @user-fq4wx7mv2g 8 місяців тому

    Thank you alot

  • @lukinkoo
    @lukinkoo Рік тому +2

    For many people, &{workspaceFolder} does not work and they have to enter the complete path (like path/to/your/project). It is a known bug, the fix works only for some. This is true both for Windows and Linux.

    • @randomnaamofzo1246
      @randomnaamofzo1246 9 місяців тому

      True: if using something like wordpress. you'd need set it to /var/www/html/wp-content/themes/[yourthemename]

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

    Great content

  • @aaron___6014
    @aaron___6014 9 місяців тому

    Will this work for servers too when I make requests through the browser or through postman?

  • @javierquiroga6774
    @javierquiroga6774 6 місяців тому

    I am using php5.6 for a legacy code, needs xdebug but I see xdebug.start_with_request is not compatible with that php version. What can I use instead?

    • @TheCodeholic
      @TheCodeholic  6 місяців тому

      I think I have a video for old xdebug version as well.
      You can check it in my videos

  • @vik2444
    @vik2444 Рік тому

    Good video. But didn't help XD

  • @anna-plink
    @anna-plink Місяць тому

    God damn, this is so stupid. windows and vs code. Xdebug on linux & phpstorm is much simpler, I really hate that I am stuck on windows on this machine

  • @snowgirl5406
    @snowgirl5406 Рік тому

    it helps me a lot.thanks

  • @matheusrubens3844
    @matheusrubens3844 Рік тому

    Damn!
    I've spent hours trying to make xdebug work, but i couldn't. With these configs, xdebug started working:
    xdebug.mode = debug
    xdebug.start_with_request=yes
    xdebug.discover_client_host = 1