Debugging with Xdebug and PHPStorm

Поделиться
HTML-код
  • Опубликовано: 27 окт 2024
  • The following video describes how to debug PHP applications using PHP Xdebug extension and PHPStorm.
    The video describes this on Windows Xampp installation, but the basic idea is the same for Mac or Linux.
    Debugging on Mac or linux.
    bit.ly/2SVpb6n
    =========================================================
    -----------------AUDIO GEAR I HAVE-------------------
    My Main Microphone - amzn.to/3eVCQ8v
    Microphone Scissor Arm Stand - amzn.to/39mkGLQ
    Microphone Shock Mount with Pop Filter - amzn.to/3jz7R5v
    Audio Interface - amzn.to/30IoJhz
    Microphone Pop Filter Mask Shield - amzn.to/3eXoQee
    -----------------CHEAP AUDIO SETUP-----------------
    Microphone + Shock mount + Scissor Arm - amzn.to/2D10Zxe
    =========================================================
    Follow on social media:
    / thecodeholic
    / thecodeholic
    github.com/the...

Комментарии • 36

  • @md.imanali9998
    @md.imanali9998 5 лет назад +7

    This is straightforward and very useful tutorial. Thanks for making this.

  • @brianchin3251
    @brianchin3251 3 года назад +5

    After 8hrs you were the one to finally help me.Thank you 3000 man!

  • @ZAMREN-u7o
    @ZAMREN-u7o 11 месяцев назад

    Very helpful. Thank you.

  • @gamurock817
    @gamurock817 Год назад

    Thank you for this tutorial sir! 😁

  • @StanleySisneros
    @StanleySisneros 4 года назад +2

    Thank you for posting this video. I appreciate your effort it helped me figure out what I was doing wrong.

  • @ibrahimzeroual
    @ibrahimzeroual 4 года назад +4

    thank you bro

  • @abdulkadirabus2333
    @abdulkadirabus2333 3 года назад +5

    [Xdebug]
    zend_extension="php_xdebug.dll"
    xdebug.remote_enable=1
    xdebug.remote_port=9000

  • @PoodlePlugins
    @PoodlePlugins 3 года назад

    Thanks for this. I can't set up a local development for a specific site so I'm going to put xdebug on the staging server instead. This will allow me to do that

  • @temoeuashvili4165
    @temoeuashvili4165 3 года назад

    It is working, Thank you!

  • @eloquent2200
    @eloquent2200 Год назад

    Thank you!

  • @hussainhalai956
    @hussainhalai956 9 месяцев назад

    I don't know why they downvote this video
    THIS WORKS 100% in 2024

  • @Mupetz
    @Mupetz 4 месяца назад

    dear sir, i had try, configure it, and run it with chrome & Firefox Developer, but when i click refresh button on the browser, the PhpStorm doesn't blinking or capture connections.. i wonder where are my faults.. thank's

  • @kristiyanivanov7414
    @kristiyanivanov7414 3 года назад

    thanks codeholic!

  • @gedwu8
    @gedwu8 2 года назад

    For me it doesnt work. All settings same, I am just using wamp64. I enable debugging, refresh page and nothing happens. What could be the problem?

  • @AlexAlex-hd7ij
    @AlexAlex-hd7ij 4 года назад +2

    I do not see that you have installed xdebug.dll

  • @mohamedgaber5533
    @mohamedgaber5533 4 года назад +1

    but why we didn't use phpstorm built in server instead of apache ?

    • @TheCodeholic
      @TheCodeholic  4 года назад

      PHP Builtin server does not process PHP files. It serves static files only.

  • @sofyjohn9876
    @sofyjohn9876 4 года назад +1

    from where language and settings?

  • @ByAsiLn
    @ByAsiLn Год назад

    I'm wondering which xdebug version you are using.

    • @TheCodeholic
      @TheCodeholic  Год назад

      That video is very old. It uses xdebug veraion 2

  • @AvWoN
    @AvWoN 4 года назад +1

    Im guessing my PhpStorm should point at the same php install as XAMPP is using, correct?

    • @TheCodeholic
      @TheCodeholic  4 года назад +1

      It's not mandatory, but yes it will be good. For better autocompletion and less errors from PHPStorm

  • @maicoyamba2964
    @maicoyamba2964 5 лет назад +1

    Good day Sir, i cannot see debug panel on the lower portion. pls help. thank you

  • @CGPepper
    @CGPepper Год назад

    Failed loading Zend extension 'php_xdebug.dll'

  • @haiuonglam9704
    @haiuonglam9704 5 лет назад +1

    i wonder why you need to install debug extension for chrome? can you make it sense?

    • @TheCodeholic
      @TheCodeholic  5 лет назад +1

      The extension is the easiest way to start and stop debugging. It also gives you possibility to use other debugger such as zend debug.

    • @haiuonglam9704
      @haiuonglam9704 5 лет назад

      @@TheCodeholic oh i see, not sure but maybe new browser versions dont require to confirm start and stop debugging with third party tool. I've used X-debug with PHP storm (use xampp for windows) for over 2 years and realize that all i need is config something in php.ini file

    • @TheCodeholic
      @TheCodeholic  5 лет назад

      In my opinion That's because you configured your php.ini file to automatically start debugging when it sees breakpoints, if you do not want debugging any more you will have to disable config in php.ini or remove breakpoints. But the extension gives you possibility to start and end debugging when you want. Just make sure you change your config in php.ini so that it does not automatically start debugging.

  • @WH-prod
    @WH-prod 4 года назад +1

    Hey there, my show some error,cold you help me?
    Cannot accept external Xdebug connection: Cannot evaluate expression 'isset($_SERVER['PHP_IDE_CONFIG'])'

    • @TheCodeholic
      @TheCodeholic  4 года назад

      Did you google this error? What does google tell you?

    • @WH-prod
      @WH-prod 4 года назад +1

      @@TheCodeholic so, the problem was in my Windows. I formated my pc, and in the first configuration worked very well

  • @michelgaudry
    @michelgaudry 5 лет назад

    appilcations -> applications

  • @manojmariadass7428
    @manojmariadass7428 11 месяцев назад

    [Xdebug]
    zend_extension="php_xdebug.dll"
    xdebug.remote_enable=1
    xdebug.remote_port=9000