Replies: 1 comment
-
With a little argument and jinja magic you can do this now: [tasks.test]
cmd = "{{'debugpy --listen 5678 --wait-for-client' if debugpy=='-d' or debugpy=='--debug' else 'python'}} main.py"
args = [{arg = "debugpy", default = ""}] This example allows you to add Tip, you can play with minijinja templates (the task command) in https://mitsuhiko.github.io/minijinja-playground/ |
Beta Was this translation helpful? Give feedback.
0 replies
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.
-
Hi! Perhaps I am missing something obvious, but is there a way to use debugpy for tasks definded in pixi.toml? It is quite convenient to define common project tasks there, and it would be convenient to debug them without having to copy-paste them somewhere else (I am using vscode)
Beta Was this translation helpful? Give feedback.
All reactions