Skip to content

Instantly share code, notes, and snippets.

@dhaley
Created October 3, 2013 16:17
Show Gist options
  • Save dhaley/6812552 to your computer and use it in GitHub Desktop.
Save dhaley/6812552 to your computer and use it in GitHub Desktop.
xdebug from emacs at $list = drush_commandfile_list();
[-] Locals
|- $accumulated_result(undef)
|- $all_available_hooks[0]
|- $args[0]
|- $available_rollbacks[0]
|- $callback_list(undef)
|-[-] $command[30]
| |- description Show drush version.
| |- bootstrap 0
| |-[-] options[12]
| | |- pipe Print just the version number, and nothing else.
| | |-[-] format[2]
| | | |- description Select output format. Available: json, string, var_export, yaml. Default is key-value.
| | | `- example-value json
| | |-[-] fields[4]
| | | |- description Fields to output.
| | | |- example-value field1,field2
| | | |- value required
| | | `- list true
| | |-[-] list-separator[2]
| | | |- description Specify how elements in a list should be separated. In lists of lists, this applies to the elements in the inner lists.
| | | `- hidden true
| | |-[-] line-separator[2]
| | | |- description In nested lists of lists, specify how the outer lists ("lines") should be separated.
| | | `- hidden true
| | |-[-] field-labels[3]
| | | |- description Add field labels before first line of data. Default is on; --field-labels=0 to disable.
| | | |- default 1
| | | `- key include-field-labels
| | |-[-] format=json[2]
| | | |- description Javascript Object Notation.
| | | `- hidden true
| | |-[-] format=php[2]
| | | |- description A serialized php string.
| | | `- hidden true
| | |-[-] format=print-r[2]
| | | |- description Output via php print_r function.
| | | `- hidden true
| | |-[-] format=string[2]
| | | |- description A simple string.
| | | `- hidden true
| | |-[-] format=var_export[2]
| | | |- description An array in executable php format.
| | | `- hidden true
| | `-[-] format=yaml[2]
| | |- description Yaml output format.
| | `- hidden true
| |-[-] outputformat[4]
| | |- default key-value
| | |- pipe-format string
| | |- label Drush Version
| | `- output-data-type format-single
| |- command version
| |- command-hook version
| |- invoke hooks true
| |- callback arguments[0]
| |- commandfile core
| |- path /Users/daha1836/src/drush/commands/core
| |-[-] engines[1]
| | `-[-] outputformat[13]
| | |- default key-value
| | |- pipe-format string
| | |- label Drush Version
| | |-[-] require-engine-capability[1]
| | | `- 0 format-single
| | |- description Output formatting options selection and use.
| | |- topic docs-output-formats
| | |- topic-file docs/output-formats.html
| | |- combine-help TRUE
| | |- option format
| | |-[-] options[5]
| | | |-[+] format[2]
| | | |-[+] fields[4]
| | | |-[+] list-separator[2]
| | | |-[+] line-separator[2]
| | | `-[+] field-labels[3]
| | |-[-] config-aliases[1]
| | | `- output-data-type require-engine-capability
| | |- add-options-to-command false
| | `-[-] usable[10]
| | |- 0 key-value
| | |- 1 csv-or-string
| | |- 2 json
| | |- 3 message
| | |- 4 nested-csv
| | |- 5 php
| | |- 6 print-r
| | |- 7 string
| | |- 8 var_export
| | `- 9 yaml
| |- callback drush_command
| |- primary function false
| |-[-] sections[3]
| | |- examples Examples
| | |- arguments Arguments
| | `- options Options
| |- arguments[0]
| |- required-arguments false
| |- sub-options[0]
| |- allow-additional-options false
| |- examples[0]
| |- aliases[0]
| |- core[0]
| |- scope site
| |- drupal dependencies[0]
| |- drush dependencies[0]
| |- handle-remote-commands false
| |- strict-option-handling false
| |- bootstrap_errors[0]
| |- topics[0]
| |- hidden false
| `- argument-description[0]
|- $commandfile(undef)
|- $completed[0]
|- $default_command_hook(undef)
|- $dt_args(undef)
|- $filename(undef)
|- $func drush_version_init
|- $hook version
|- $list(undef)
|- $message(undef)
|- $primary_func(undef)
|- $rb_func(undef)
|- $result(undef)
|- $return(undef)
|- $rollback false
|- $var_hook version_pre_validate
`-[-] $variations[5]
|- 0 version_pre_validate
|- 1 version_validate
|- 2 pre_version
|- 3 version
`- 4 post_version
[-] Superglobals
|- $_COOKIE[0]
|-[-] $_ENV[21]
| |- TERM dumb
| |- GIT_PAGER
| |- E ~/.emacs.d
| |- DSLM_BASE ~/data/code/dslm_base
| |- _ /Applications/MAMP/bin/php/php5.3.20/bin/php
| |- OLDPWD /Users/daha1836/src/drush
| |- DISPLAY /tmp/launch-9g1wWI/org.macosforge.xquartz:0
| |- LOGNAME daha1836
| |- HOME /Users/daha1836
| |- SHLVL 0
| |- PATH /usr/bin:/bin:/usr/sbin:/sbin:/usr/local/bin:/opt/X11/bin:/usr/local/MacGPG2/bin:/usr/texbin:~/src/drush:/Applications/MAMP/bin/php/php5.3.20/bin:/Applications/MAMP/Library/bin:/usr/local/Cellar/openssl/1.0.1e/bin:/usr/local/sbin:/usr/X11/bin:/Users/daha1836/bin:/Users/daha1836/.cabal/bin:/usr/local/share/npm/bin:/Users/daha1836/.emacs.d/site-lisp/osx-dictionary
| |- Apple_Ubiquity_Message /tmp/launch-EQ6zYF/Apple_Ubiquity_Message
| |- __CF_USER_TEXT_ENCODING 0xF1FDF73:0:0
| |- SSH_AUTH_SOCK /tmp/launch-rOGZc7/Listeners
| |- COMMAND_MODE unix2003
| |- USER daha1836
| |- Apple_PubSub_Socket_Render /tmp/launch-wb9Brw/Render
| |- TMPDIR /var/folders/1w/gxywt3_x1hn919zq1jf0s41r7jzqvl/T/
| |- SHELL /bin/zsh
| |- PWD /Users/daha1836/src/drush
| `- XDEBUG_CONFIG idekey=my-php-53
|- $_FILES[0]
|- $_GET[0]
|- $_POST[0]
|- $_REQUEST[0]
|-[+] $_SERVER[29]
`-[+] $GLOBALS[16]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment