Guest User

Untitled

a guest
Apr 21st, 2018
109
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.29 KB | None | 0 0
  1. pecl install xdebug
  2.  
  3. sudo apt-get install php5-xdebug
  4.  
  5. brew tap josegonzalez/php
  6. brew search xdebug
  7. php53-xdebug
  8.  
  9. [xdebug]
  10.  
  11. ; Extensions
  12. extension=xdebug.so
  13. ; zend_extension="/YOUR_PATH/php/extensions/no-debug-non-zts-20090626/xdebug.so"
  14. ; zend_extension="/Applications/MAMP/bin/php/php5.3.20/lib/php/extensions/no-debug-non-zts-20090626/xdebug.so" ; MAMP
  15.  
  16. ; Data
  17. xdebug.show_exception_trace=1 ; bool: Show a stack trace whenever an exception is raised.
  18. xdebug.collect_vars = 1 ; bool: Gather information about which variables are used in a certain scope.
  19. xdebug.show_local_vars=1 ; int: Generate stack dumps in error situations.
  20. xdebug.collect_assignments=1 ; bool: Controls whether Xdebug should add variable assignments to function traces.
  21. xdebug.collect_params=4 ; int1-4: Collect the parameters passed to functions when a function call is recorded.
  22. xdebug.collect_return=1 ; bool: Write the return value of function calls to the trace files.
  23. xdebug.var_display_max_children=256 ; int: Amount of array children and object's properties are shown.
  24. xdebug.var_display_max_data=1024 ; int: Max string length that is shown when variables are displayed.
  25. xdebug.var_display_max_depth=3 ; int: How many nested levels of array/object elements are displayed.
  26. xdebug.show_mem_delta=0 ; int: Show the difference in memory usage between function calls.
  27.  
  28. ; Trace
  29. xdebug.auto_trace=0 ; bool: The tracing of function calls will be enabled just before the script is run.
  30. xdebug.trace_output_dir="/var/log/xdebug" ; string: Directory where the tracing files will be written to.
  31. xdebug.trace_output_name="%H%R-%s-%t" ; string: Name of the file that is used to dump traces into.
  32.  
  33. ; Profiler
  34. xdebug.profiler_enable=0 ; bool: Profiler which creates files read by KCacheGrind.
  35. xdebug.profiler_output_dir="/var/log/xdebug" ; string: Directory where the profiler output will be written to.
  36. xdebug.profiler_output_name="%H%R-%s-%t" ; string: Name of the file that is used to dump traces into.
  37. xdebug.profiler_append=0 ; bool: Files will not be overwritten when a new request would map to the same file.
  38.  
  39. ; CLI
  40. xdebug.cli_color=1 ; bool: Color var_dumps and stack traces output when in CLI mode.
  41.  
  42. ; Remote debugging
  43. xdebug.remote_enable=off ; bool: Try to contact a debug client which is listening on the host and port.
  44. xdebug.remote_autostart=off ; bool: Start a remote debugging session even GET/POST/COOKIE variable is not present.
  45. xdebug.remote_handler=dbgp ; select: php3/gdb/dbgp: The DBGp protocol is the only supported protocol.
  46. xdebug.remote_host=localhost ; string: Host/ip where the debug client is running.
  47. xdebug.remote_port=9000 ; integer: The port to which Xdebug tries to connect on the remote host.
  48. xdebug.remote_mode=req ; select(req,jit): Selects when a debug connection is initiated.
  49. xdebug.idekey="xdebug-cli" ; string: IDE Key Xdebug which should pass on to the DBGp debugger handler.
  50. xdebug.remote_log="/var/log/xdebug.log" ; string: Filename to a file to which all remote debugger communications are logged.
  51.  
  52. error_reporting(E_ALL);
  53.  
  54. <?php
  55. ini_set("display_errors",1);
  56. error_reporting(E_ALL);
  57. //code goes here
  58. ?>
Add Comment
Please, Sign In to add comment