mirror of
https://github.com/codeguy/php-the-right-way.git
synced 2025-08-22 13:13:05 +02:00
Fix line wrapping consistency - round 1
Comply with the 'wrap at 120 chars' style rule stated in the contributing.md document
This commit is contained in:
@@ -8,15 +8,15 @@ anchor: xdebug
|
||||
|
||||
One of the most useful tools in software development is a proper debugger. It allows you to trace the execution of your
|
||||
code and monitor the contents of the stack. XDebug, PHP's debugger, can be utilized by various IDEs to provide
|
||||
Breakpoints and stack inspection. It can also allow tools like PHPUnit and KCacheGrind to perform code coverage analysis
|
||||
and code profiling.
|
||||
Breakpoints and stack inspection. It can also allow tools like PHPUnit and KCacheGrind to perform code coverage
|
||||
analysis and code profiling.
|
||||
|
||||
If you find yourself in a bind, willing to resort to var_dump/print_r, and you still can't find the solution - maybe you
|
||||
need to use the debugger.
|
||||
If you find yourself in a bind, willing to resort to var_dump/print_r, and you still can't find the solution - maybe
|
||||
you need to use the debugger.
|
||||
|
||||
[Installing XDebug][xdebug-install] can be tricky, but one of its most important features is "Remote Debugging" - if you
|
||||
develop code locally and then test it inside a VM or on another server, Remote Debugging is the feature that you will
|
||||
want to enable right away.
|
||||
[Installing XDebug][xdebug-install] can be tricky, but one of its most important features is "Remote Debugging" - if
|
||||
you develop code locally and then test it inside a VM or on another server, Remote Debugging is the feature that you
|
||||
will want to enable right away.
|
||||
|
||||
Traditionally, you will modify your Apache VHost or .htaccess file with these values:
|
||||
|
||||
@@ -33,8 +33,8 @@ listen on. Then it's just a matter of putting your IDE into "listen for connecti
|
||||
Your IDE will now intercept the current state as the script executes, allowing you to set breakpoints and probe the
|
||||
values in memory.
|
||||
|
||||
Graphical debuggers make it very easy to step through code, inspect variables, and eval code against the live runtime.
|
||||
Many IDE's have built-in or plugin-based support for graphical debugging with xdebug. MacGDBp is a free, open-source,
|
||||
Graphical debuggers make it very easy to step through code, inspect variables, and eval code against the live runtime.
|
||||
Many IDE's have built-in or plugin-based support for graphical debugging with xdebug. MacGDBp is a free, open-source,
|
||||
stand-alone xdebug GUI for Mac.
|
||||
|
||||
* [Learn more about XDebug][xdebug-docs]
|
||||
|
Reference in New Issue
Block a user