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",
|
|
|
|
// Replace this with the output of `which textual`
|
|
|
|
// TODO: is there a way to get this from the environment??
|
|
|
|
// or to use textual as "module" but still run the correct app?
|
|
|
|
// I tried a lot of variations of this, but none worked.
|
2023-04-14 03:55:27 +03:00
|
|
|
"program": "${userHome}/.local/bin/textual",
|
2023-04-17 03:34:35 +03:00
|
|
|
"args": ["run", "--dev", "paint.py --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-04-16 23:03:50 +03:00
|
|
|
// "program": "paint.py",
|
|
|
|
// "args": ["LICENSE.txt"],
|
|
|
|
"program": "${userHome}/.local/bin/textual",
|
2023-04-17 03:34:35 +03:00
|
|
|
"args": ["run", "--dev", "paint.py --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-11 06:14:22 +03:00
|
|
|
}
|
|
|
|
]
|
|
|
|
}
|