Intro to Debugging PHP with Xdebug

6,435 views

Published on

How to install Xdebug and an overview of its basic features, including how to configure Xdebug in php.ini to work with NetBeans IDE.

Published in: Technology
0 Comments
2 Likes
Statistics
Notes
  • Be the first to comment

No Downloads
Views
Total views
6,435
On SlideShare
0
From Embeds
0
Number of Embeds
38
Actions
Shares
0
Downloads
0
Comments
0
Likes
2
Embeds 0
No embeds

No notes for slide




  • Get a stack trace with every error, warning or notice.



  • trace_format = human or computer readable
    collect_return = return values of each function
    show_mem_delta = diff in mem usage between function calls
  • Time, Memory Usage, Spaced execution trace
  • Many types of profiling: Code, Database, System (CPU/Disk), Network
    Do a base profile before profiling for improvements


  • Graph view breaks it down
  • Similar to Disk Inventory X, where size of box proportionate to time
    Isn’t a refactoring talk, but profiling your code should be part of development
  • Coverage of unit test coverage with PHPUnit


  • Gogo NetBeans


  • ×