File: launch.json

package info (click to toggle)
python-sigima 1.0.3-1
  • links: PTS, VCS
  • area: main
  • in suites: sid
  • size: 24,956 kB
  • sloc: python: 33,326; makefile: 3
file content (51 lines) | stat: -rw-r--r-- 1,661 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
{
    // 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 current file",
            "type": "debugpy",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "envFile": "${workspaceFolder}/.env",
            "justMyCode": false,
        },
        {
            "name": "Run current file (unattended)",
            "type": "debugpy",
            "request": "launch",
            "program": "${file}",
            "console": "integratedTerminal",
            "envFile": "${workspaceFolder}/.env",
            "pythonArgs": [
                "-W error::DeprecationWarning",
                "-W error::RuntimeWarning",
            ],
            "justMyCode": false,
            "args": [
                "--unattended",
            ],
            "env": {
                // "DEBUG": "1",  // ☣️ Debug mode will reset .ini settings
                // "QT_QPA_PLATFORM": "offscreen",
                "SIGIMA_DATA": "${workspaceFolder}/sigima/data/tests",
            }
        },
        {
            "name": "Profile current file",
            "type": "debugpy",
            "request": "launch",
            "module": "cProfile",
            "console": "integratedTerminal",
            "envFile": "${workspaceFolder}/.env",
            "args": [
                "-o",
                "${file}.prof",
                "${file}"
            ],
        },
    ]
}