dtd-tech / dtd-build

Drupal Traning Day Build Tools
GNU General Public License v2.0
2 stars 0 forks source link

Atom IDE with xdebug #3

Open Lawri-van-Buel opened 8 years ago

Lawri-van-Buel commented 8 years ago

Validation report of the php-debug extension for atom as a drupal debugging tool.

Atom 1.0 with:

Server with:

xdebug settings: screenshot from 2015-09-18 13 34 33

Results in: Index.php with 1 breakpoint set screenshot from 2015-09-18 13 37 12

Index.php Selecting a breakpoin. screenshot from 2015-09-18 13 38 56

Toggeling Debug Mode. screenshot from 2015-09-18 13 40 42

Debug Mode screenshot from 2015-09-18 13 41 39

Debug with firefox and xdebug addon screenshot from 2015-09-18 13 43 49

Same debug but from Atom's point of view screenshot from 2015-09-18 13 45 34

Report.

Atom with php-debug is a valid quick debug tool. when connected to the xdebug extension of php it enables all of the basics you need for a quick debug. There are some known bugs in the connection, (mainly a memory leak) that does limit its use to only a quick debug and not a full debug session as atom has to be restarted after some use because it exhausts the available memory (bug is known and present on the github of php-debug)

Also setting a breakpoint is a tad more difficult when compared to most full IDE's

Lawri-van-Buel commented 8 years ago

Xdebug Settings in text. xdebug xdebug support enabled Version 2.3.3 IDE Key PHPSTORM

Supported protocols Revision DBGp - Common DeBuGger Protocol $Revision: 1.145 $

Directive Local Value Master Value xdebug.auto_trace On On xdebug.cli_color 1 1 xdebug.collect_assignments On On xdebug.collect_includes On On xdebug.collect_params 1 1 xdebug.collect_return On On xdebug.collect_vars Off Off xdebug.coverage_enable On On xdebug.default_enable On On xdebug.idekey PHPSTORM PHPSTORM xdebug.overload_var_dump On On xdebug.profiler_aggregate Off Off xdebug.profiler_append Off Off xdebug.profiler_enable Off Off xdebug.profiler_enable_trigger On On xdebug.profiler_enable_trigger_value no value no value xdebug.profiler_output_dir /tmp /tmp xdebug.profiler_output_name cachegrind.out.%p cachegrind.out.%p xdebug.remote_autostart On On xdebug.remote_connect_back Off Off xdebug.remote_cookie_expire_time 3600 3600 xdebug.remote_enable On On xdebug.remote_handler dbgp dbgp xdebug.remote_host 127.0.0.1 127.0.0.1 xdebug.remote_log /tmp/php.55-xdebug.log /tmp/php.55-xdebug.log xdebug.remote_mode req req xdebug.remote_port 9000 9000 xdebug.scream Off Off xdebug.trace_enable_trigger On On xdebug.trace_enable_trigger_value no value no value xdebug.trace_format 0 0 xdebug.trace_options 0 0 xdebug.trace_output_dir /tmp /tmp xdebug.trace_output_name trace.%c trace.%c

SqyD commented 8 years ago

I have included a 32bit version for Atom in the Desktop build. We'll still need to figure out if/how we can script the plugins into it.