2023-04-11 06:14:22 +03:00
|
|
|
{
|
|
|
|
// Use IntelliSense to learn about possible attributes.
|
|
|
|
// Hover to view descriptions of existing attributes.
|
|
|
|
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
|
|
|
|
"version": "0.2.0",
|
|
|
|
"configurations": [
|
|
|
|
{
|
|
|
|
"name": "Run Textual App",
|
|
|
|
"type": "python",
|
|
|
|
"request": "launch",
|
2023-06-12 01:55:43 +03:00
|
|
|
// TODO: is there a way to get this from the environment, i.e. to use
|
|
|
|
// the binary that `which textual` would return,
|
2023-04-11 06:14:22 +03:00
|
|
|
// or to use textual as "module" but still run the correct app?
|
2023-06-12 01:55:43 +03:00
|
|
|
// At least with a virtual environment, I can point to a location
|
|
|
|
// that should exist if you follow the readme instructions.
|
|
|
|
// Although the docs for "program" say "Absolute path to the program."
|
|
|
|
"program": ".venv/bin/textual",
|
2023-06-11 04:20:17 +03:00
|
|
|
"args": ["run", "--dev", "src.textual_paint.paint --clear-screen --inspect-layout"],
|
2023-04-11 06:14:22 +03:00
|
|
|
"console": "integratedTerminal",
|
2023-04-16 03:54:35 +03:00
|
|
|
"justMyCode": false
|
2023-04-11 23:22:00 +03:00
|
|
|
},
|
|
|
|
{
|
|
|
|
"name": "Open A File in App",
|
|
|
|
"type": "python",
|
|
|
|
"request": "launch",
|
2023-06-11 04:20:17 +03:00
|
|
|
// "program": "src.textual_paint.paint",
|
2023-04-16 23:03:50 +03:00
|
|
|
// "args": ["LICENSE.txt"],
|
2023-06-12 01:55:43 +03:00
|
|
|
"program": ".venv/bin/textual",
|
2023-06-11 04:20:17 +03:00
|
|
|
"args": ["run", "--dev", "src.textual_paint.paint --clear-screen --inspect-layout LICENSE.txt"],
|
2023-04-11 23:22:00 +03:00
|
|
|
"console": "integratedTerminal",
|
2023-04-16 03:54:35 +03:00
|
|
|
"justMyCode": false
|
2023-04-19 19:00:34 +03:00
|
|
|
},
|
2023-05-22 06:26:33 +03:00
|
|
|
{
|
|
|
|
"name": "Recode Samples",
|
|
|
|
"type": "python",
|
|
|
|
"request": "launch",
|
2023-06-11 04:20:17 +03:00
|
|
|
"program": "src.textual_paint.paint",
|
2023-05-22 06:26:33 +03:00
|
|
|
"args": ["--recode-samples"],
|
|
|
|
"console": "integratedTerminal",
|
|
|
|
"justMyCode": false
|
|
|
|
},
|
2023-04-19 19:00:34 +03:00
|
|
|
{
|
|
|
|
"name": "Debug --restart-on-changes file matching",
|
|
|
|
"type": "python",
|
|
|
|
"request": "launch",
|
2023-06-12 01:55:43 +03:00
|
|
|
"program": ".venv/bin/textual",
|
2023-06-11 04:20:17 +03:00
|
|
|
"args": ["run", "--dev", "src.textual_paint.paint --clear-screen --restart-on-changes"],
|
2023-04-19 19:00:34 +03:00
|
|
|
"console": "integratedTerminal",
|
|
|
|
"justMyCode": false
|
2023-04-11 06:14:22 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|