{"id":27329449,"url":"https://github.com/csirmaz/lua-torch-interactive","last_synced_at":"2025-09-14T23:56:54.751Z","repository":{"id":72744456,"uuid":"92624701","full_name":"csirmaz/Lua-Torch-Interactive","owner":"csirmaz","description":"A Lua package that stops the execution of a script and creates an interactive prompt to inspect and change variables (Lua)","archived":false,"fork":false,"pushed_at":"2017-05-28T01:56:53.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-12T12:43:46.364Z","etag":null,"topics":["interactive","lua","luajit","prompt","torch"],"latest_commit_sha":null,"homepage":"","language":"Lua","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/csirmaz.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2017-05-27T21:19:48.000Z","updated_at":"2021-07-27T23:55:30.000Z","dependencies_parsed_at":"2023-09-18T02:31:20.661Z","dependency_job_id":null,"html_url":"https://github.com/csirmaz/Lua-Torch-Interactive","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/csirmaz/Lua-Torch-Interactive","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csirmaz%2FLua-Torch-Interactive","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csirmaz%2FLua-Torch-Interactive/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csirmaz%2FLua-Torch-Interactive/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csirmaz%2FLua-Torch-Interactive/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/csirmaz","download_url":"https://codeload.github.com/csirmaz/Lua-Torch-Interactive/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/csirmaz%2FLua-Torch-Interactive/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":275185369,"owners_count":25419918,"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","status":"online","status_checked_at":"2025-09-14T02:00:10.474Z","response_time":75,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["interactive","lua","luajit","prompt","torch"],"created_at":"2025-04-12T12:33:32.342Z","updated_at":"2025-09-14T23:56:54.742Z","avatar_url":"https://github.com/csirmaz.png","language":"Lua","readme":"# Lua-Torch-Interactive\n\n`dbg` is Lua package that stops the execution of a script and uses the Lua debug prompt to\nallow interactively inspecting and changing variables.\n\n## Triggering the prompt\n\nUse `dbg.enter()` in the program to drop the user into the prompt.\n\nAlternatively, use `dbg.enter_if_file(triggerfile)` to drop the user into the prompt if\n`triggerfile` exists. If not given, the argument defaults to `dbg.trigger_file`, which is a\nfilename in `/tmp/` derived from the current PID.\n\n## Inside the debug prompt\n\nBefore displaying the prompt, `dbg` collects and lists the available local variables from the\ncurrent scope and the parent scopes, and assigns unique names to them.\nThe variable names may be prefixed by the name\nof the current level or function, or '*' may be added to them to disambiguate them.\n\nIn the prompt, use:\n\n- `dbg.print('variablename')` or `dbg.p('variablename')` to print the value of a\nlocal variable.\n\n- `dbg.get('variablename')` or `dbg.g('variablename')` to return the value of a\nlocal variable (useful if it is a table, to modify a value in it).\n\n- `dbg.set('variablename', value)` or `dbg.s('variablename', value)` to change the\nvalue of a local variable.\n\n- `dbg.varinfo()` to repeat the list of local variables.\n\n- Type `cont` or press `^D` to allow the script to continue.\n\n- Type `^C,^D` or run `os.exit()` to abort.\n\n## Demo\n\nRun `th test.lua` for a demo (using torch).\n\n## License\n\ndbg.lua is copyright (c) 2017 Elod Csirmaz, released under the MIT license.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsirmaz%2Flua-torch-interactive","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcsirmaz%2Flua-torch-interactive","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcsirmaz%2Flua-torch-interactive/lists"}