https://github.com/vladimir-kotikov/cdb
VSCode extension to launch debug sessions directly from terminal
https://github.com/vladimir-kotikov/cdb
vscode vscode-debugging vscode-extension vscode-python
Last synced: 28 days ago
JSON representation
VSCode extension to launch debug sessions directly from terminal
- Host: GitHub
- URL: https://github.com/vladimir-kotikov/cdb
- Owner: vladimir-kotikov
- License: mpl-2.0
- Created: 2025-01-05T14:54:48.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-02-13T17:53:52.000Z (over 1 year ago)
- Last Synced: 2025-02-13T18:39:57.713Z (over 1 year ago)
- Topics: vscode, vscode-debugging, vscode-extension, vscode-python
- Language: TypeScript
- Homepage:
- Size: 240 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# cdb - Code DeBugger
This is the extension to launch debug sessions in VSCode directly from terminal.
## Rationale
There's some demand for an option to launch debug sessions in VSCode from terminal
rather than setting up specific debug configurations even for simple, one-off
debugging tasks.
This extension provides own shell command - 'cdb' - that aims to substitute the
missing but so much desired '--debug' option for the 'code' command.
## Usage
After installing the extension, there's a new command available in command
palette - "CDB: Install shell command" which does exactly that. The 'cdb' is
installed into '/usr/local/bin' directory - the same directory where 'code'
command is installed.
After installing you can start debuggig by running `cdb `,
e.g. `cdb python -m my_module arg1 arg2`. At the moment only Python debugging is
supported, e.g.:
- `cdb /my/python/distro/python -m foo.bar --baz` - starts debugging of a python module
- `cdb python some/script.py --arg` - starts debugging of a python script/file
- `cdb some/script.py` - same as above but shorter
More details on supported arguments and options can be found running `cdb` without arguments.