{"id":17003851,"url":"https://github.com/cldwalker/debugger-completion","last_synced_at":"2025-03-22T16:30:46.053Z","repository":{"id":62556896,"uuid":"922300","full_name":"cldwalker/debugger-completion","owner":"cldwalker","description":"Mission: auto-complete debugger","archived":false,"fork":false,"pushed_at":"2012-06-08T21:44:24.000Z","size":111,"stargazers_count":43,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-03-20T10:44:14.102Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Ruby","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/cldwalker.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":null,"funding":null,"license":"LICENSE.txt","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2010-09-19T10:08:27.000Z","updated_at":"2020-10-29T17:10:35.000Z","dependencies_parsed_at":"2022-11-03T06:01:02.860Z","dependency_job_id":null,"html_url":"https://github.com/cldwalker/debugger-completion","commit_stats":null,"previous_names":[],"tags_count":5,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Fdebugger-completion","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Fdebugger-completion/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Fdebugger-completion/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/cldwalker%2Fdebugger-completion/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/cldwalker","download_url":"https://codeload.github.com/cldwalker/debugger-completion/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244986295,"owners_count":20542990,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":[],"created_at":"2024-10-14T04:32:55.876Z","updated_at":"2025-03-22T16:30:45.712Z","avatar_url":"https://github.com/cldwalker.png","language":"Ruby","funding_links":[],"categories":[],"sub_categories":[],"readme":"## Description\n\nProvides debugger with command and command arguments completion compliments of\n[bond](http://github.com/cldwalker/bond).\n\n## Install\n\nInstall the gem with:\n\n    gem install debugger-completion\n\n## Setup\n\nTo have debugger automatically use this gem:\n\n    echo \"eval require 'debugger/completion'\" \u003e\u003e ~/.rdebugrc\n\nOr to require in a script or application, place after your `require 'debugger'` line:\n\n    require 'debugger/completion'\n\nOr if you like to debug with one-liners:\n\n    require 'debugger/completion'; debugger\n\nOr if using rdebug:\n\n    rdebug -r debugger/completion FILE\n\nTo start manually in environments with bond completion already setup i.e. irb:\n\n    require 'debugger/completion'\n    Debugger::Completion.start\n\n## Usage\n\nLet's autocomplete instance and local variables of the current binding as well as debugger\ncommands:\n\n       186    end\n       187\n       188    def render\n       189      body = []\n       190      require 'debugger'; debugger\n    =\u003e 191      unless @rows.length ## 0\n       192        setup_field_lengths\n       193        body += render_header\n       194        body += render_rows\n       195        body += render_footer\n\n    (rdb:1) [TAB]\n    @fields            condition          finish             ps                 thread\n    @filter_classes    continue           frame              putl               tmate\n    @headers           delete             help               quit               trace\n    @options           disable            info               reload             undisplay\n    @rows              display            irb                restart            up\n    backtrace          down               list               save               var\n    body               edit               method             set                where\n    break              enable             next               show\n    catch              eval               p                  source\n    completion_toggle  exit               pp                 step\n\n    (rdb:1) ca[TAB]\n    (rdb:1) catch\n\n    (rdb:1) @fie[TAB]\n    (rdb:1) @fields\n\n    (rdb:1) bo[TAB]\n    (rdb:1) body\n\nAutocomplete methods of local and instance variables:\n\n    (rdb:1) @filter_classes.[TAB]\n    Display all 150 possibilities? (y or n)\n\n    (rdb:1) body.[TAB]\n    Display all 168 possibilities? (y or n)\n\n\nAutocomplete debugger command arguments:\n\n    # What info does debugger provide?\n    (rdb:1) info [TAB]\n    args                display             global_variables    locals              thread\n    breakpoints         file                instance_variables  program             threads\n    catch               files               line                stack               variables\n\n    (rdb: 1) info d[TAB]\n    (rdb: 1) info display\n\n    # What settings can I change?\n    (rdb:1) set [TAB]\n    annotate             autolist             forcestep            linetrace            width\n    args                 basename             fullpath             linetrace+\n    autoeval             callstyle            history              listsize\n    autoirb              debuggertesting      keep-frame-bindings  trace\n\n    (rdb:1) set d[TAB]\n    (rdb:1) set debuggertesting\n\nSince I have autoeval on, why not autocomplete as if I'm in irb?\n\n    # Execute command provided by this gem\n    (rdb:1) completion_toggle  # also aliased to ct\n\n    # irb-like completion has been enabled\n    (rdb:1) [TAB]\n    Display all 347 possibilities? (y or n)\n\n    (rdb:1) De[TAB]\n    (rdb:1) Debugger\n    (rdb:1) Debugger.[TAB]\n    Display all 137 possibilities? (y or n)\n\n    (rdb:1) require 'ab[TAB]\n    (rdb:1) require 'abbrev.rb'\n\nHuh? Argument autocompletion?\nSee [bond](http://github.com/cldwalker/bond) for all that you can autocomplete.\n\nCan I go back to basic debugger completion?\n\n    # Invoke completion_toggle again\n    (rdb:1)  completion_toggle\n\n    (rdb:1) [TAB]\n    @fields            condition          finish             ps                 thread\n    @filter_classes    continue           frame              putl               tmate\n    @headers           delete             help               quit               trace\n    @options           disable            info               reload             undisplay\n    @rows              display            irb                restart            up\n    backtrace          down               list               save               var\n    body               edit               method             set                where\n    break              enable             next               show\n    catch              eval               p                  source\n    completion_toggle  exit               pp                 step\n\nPlease, can I just quit quickly without a prompt?\n\n    (rdb:1) q [TAB]\n    (rdb:1) q unconditionally\n\n## Bugs/Issues\n\nPlease report them [on github](http://github.com/cldwalker/debugger-completion/issues).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcldwalker%2Fdebugger-completion","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcldwalker%2Fdebugger-completion","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcldwalker%2Fdebugger-completion/lists"}