launch.json 1.66 KB
Newer Older
1
2
3
4
5
6
{
  // 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": [
Markus Scheidgen's avatar
Markus Scheidgen committed
7

8
    {
Markus Scheidgen's avatar
Markus Scheidgen committed
9
      "type": "chrome",
10
      "request": "launch",
Markus Scheidgen's avatar
Markus Scheidgen committed
11
12
13
      "name": "Launch Chrome against localhost",
      "url": "http://localhost:3000",
      "webRoot": "${workspaceFolder}/gui"
14
    },
Markus Scheidgen's avatar
Markus Scheidgen committed
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
    {
      "name": "Python: API Flask (0.11.x or later)",
      "type": "python",
      "request": "launch",
      "module": "flask",
      "env": {
          "FLASK_APP": "nomad/api.py"
      },
      "args": [
          "run",
          "--port", "8000",
          "--no-debugger",
          "--no-reload"
      ]
    },
30
31
32
33
34
35
36
37
38
39
    {
      "name": "Python: worker nomad.processing",
      "type": "python",
      "request": "launch",
      "cwd": "${workspaceFolder}",
      "program": "${workspaceFolder}/.pyenv/bin/celery",
      "args": [
        "worker", "-l" , "debug",  "-A", "nomad.processing"
      ]
    },
40
    {
41
      "name": "Python: some test",
42
43
44
45
46
      "type": "python",
      "request": "launch",
      "cwd": "${workspaceFolder}",
      "program": "${workspaceFolder}/.pyenv/bin/pytest",
      "args": [
47
        "-sv", "tests/test_api.py::test_raw_file"
Markus Scheidgen's avatar
Markus Scheidgen committed
48
49
      ]
    },
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
    {
      "name": "Python: Current File",
      "type": "python",
      "request": "launch",
      "program": "${file}"
    },
    {
      "name": "Python: Attach",
      "type": "python",
      "request": "attach",
      "localRoot": "${workspaceFolder}",
      "remoteRoot": "${workspaceFolder}",
      "port": 3000,
      "secret": "my_secret",
      "host": "localhost"
    }
  ]
}