textual run --debug #3792
davetapley
started this conversation in
Ideas
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
I use debugpy quite a lot.
A pattern I use is to give my apps a
--debugswitch and:Then in VSCode I can launch this to attach:
{ "version": "0.2.0", "configurations": [ { "name": "Python: Attach", "type": "python", "request": "attach", "justMyCode": false, "connect": { "host": "localhost", "port": 5678 }, } ] }I find it easier than launching directly from VSCode because I can just run the command I want from the terminal (with
--debug) instead of having to go editlaunch.jsonevery time.But sometimes I want to use
textual runandtextual consoleto build an MRE or test something out,and (AFAIK) I can't get the benefit of
consolelogging and breakpoints.Accordingly, would you accept a PR to:
debugpyis installed, and if it is:--debugoption totextual runwhich would do that ⬆️ ?Or, I welcome other ideas! 🙏🏻
Beta Was this translation helpful? Give feedback.
All reactions