0
Mihai Brehar
http://www.mihaibrehar.ro/blog/
If you write code,
you’re writing bugs —
it’s a simple fact of
life (Marco Tabini)
The 6 stages of debugging:
  1)That can’t happen

  2)That doesn’t happen on my machine

  3)That shouldn’t happen

  4)Wh...
Fatal error: Call to undefined method Dog::sfsd() in
/home/mihai/public_html/xdebug/class.Dog.php on line
15
echo $var;

die(„checkpoint1”);

print_r($array);

$var_dump($array);

error_log(„checkpoint2”);

debug_print_backtrace();
Xdebug
            http://xdebug.org/


                APD
http://www.php.net/manual/en/book.apd.php


               DBG...
Lansat acum ~6 ani
Autor: Derick Rethans
Ce oferă Xdebug?
●
    stack traces
●
    profiling
●
    code coverage analisys
●
    interactive debugging
●
    protect...
Fatal error: Call to undefined method Dog::sfsd() in
/home/mihai/public_html/xdebug/class.Dog.php on line
15
Stack trace
xdebug.collect_params=4
xdebug.dump.GET = *
xdebug.show_local_vars = 1
Overload var_dump
Profiler
xdebug.profiler_enable=1
xdebug.profiler_output_dir=/tmp
Integrarea cu Eclipse

Q: Does God control everything that

happens in my life?

A: He could, if he used the debugger, but...
Mulțumesc!
 întrebări?
              --
Mihai Brehar
  http://www.mihaibrehar.ro/blog/
Mihai Brehar - Xdebug
Mihai Brehar - Xdebug
Upcoming SlideShare
Loading in...5
×

Mihai Brehar - Xdebug

783

Published on

Prezentare Xdebug la PHP GeekMeet #2 Cluj, 25 aprilie 2009

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

  • Be the first to like this

No Downloads
Views
Total Views
783
On Slideshare
0
From Embeds
0
Number of Embeds
0
Actions
Shares
0
Downloads
6
Comments
0
Likes
0
Embeds 0
No embeds

No notes for slide

Transcript of "Mihai Brehar - Xdebug"

  1. 1. Mihai Brehar http://www.mihaibrehar.ro/blog/
  2. 2. If you write code, you’re writing bugs — it’s a simple fact of life (Marco Tabini)
  3. 3. The 6 stages of debugging: 1)That can’t happen 2)That doesn’t happen on my machine 3)That shouldn’t happen 4)Why does that happen? 5)Oh, I see 6)How did that ever work?
  4. 4. Fatal error: Call to undefined method Dog::sfsd() in /home/mihai/public_html/xdebug/class.Dog.php on line 15
  5. 5. echo $var; die(„checkpoint1”); print_r($array); $var_dump($array); error_log(„checkpoint2”); debug_print_backtrace();
  6. 6. Xdebug http://xdebug.org/ APD http://www.php.net/manual/en/book.apd.php DBG http://www.php-debugger.com/dbg/ Zend Studio http://www.zend.com/en/products/studio/
  7. 7. Lansat acum ~6 ani Autor: Derick Rethans
  8. 8. Ce oferă Xdebug? ● stack traces ● profiling ● code coverage analisys ● interactive debugging ● protectie pentru recursivitate infinita
  9. 9. Fatal error: Call to undefined method Dog::sfsd() in /home/mihai/public_html/xdebug/class.Dog.php on line 15
  10. 10. Stack trace
  11. 11. xdebug.collect_params=4
  12. 12. xdebug.dump.GET = *
  13. 13. xdebug.show_local_vars = 1
  14. 14. Overload var_dump
  15. 15. Profiler xdebug.profiler_enable=1 xdebug.profiler_output_dir=/tmp
  16. 16. Integrarea cu Eclipse Q: Does God control everything that happens in my life? A: He could, if he used the debugger, but it's tedious to step through all those variables.
  17. 17. Mulțumesc! întrebări? -- Mihai Brehar http://www.mihaibrehar.ro/blog/
  1. A particular slide catching your eye?

    Clipping is a handy way to collect important slides you want to go back to later.

×