File size: 3,450 Bytes
b3fb4c5
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23a3b80
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
ff76124
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b4b99f0
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
23a3b80
 
b3fb4c5
 
23a3b80
b3fb4c5
23a3b80
 
 
 
 
 
b3fb4c5
 
 
 
23a3b80
 
 
b3fb4c5
12ba1bc
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
b3fb4c5
 
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
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
{
  "version": "0.2.0",
  "configurations": [
    {
      "name": "Attach",
      "port": 9229,
      "request": "attach",
      "skipFiles": [
        "<node_internals>/**"
      ],
      "type": "node"
    },
    {
      "name": "Attach by Process ID",
      "processId": "${command:PickProcess}",
      "request": "attach",
      "skipFiles": [
        "<node_internals>/**"
      ],
      "type": "node"
    },
    {
      "name": "Debug Stand Alone Crawl",
      "request": "launch",
      "runtimeArgs": [
        "--env-file=.secret.local",
      ],
      "env": {
        "GCLOUD_PROJECT": "reader-6b7dc",
        "LD_PRELOAD": "/usr/local/lib/libcurl-impersonate-chrome.dylib"
      },
      "cwd": "${workspaceFolder}",
      "program": "build/stand-alone/crawl.js",
      "skipFiles": [
        "<node_internals>/**"
      ],
      "type": "node",
      "outputCapture": "std",
      "preLaunchTask": "Backend:build:watch",
      "killBehavior": "forceful"
    },
    {
      "name": "Debug Stand Alone Crawl + Browser",
      "request": "launch",
      "runtimeArgs": [
        "--env-file=.secret.local",
      ],
      "env": {
        "GCLOUD_PROJECT": "reader-6b7dc",
        "DEBUG_BROWSER": "true",
        "LD_PRELOAD": "/usr/local/lib/libcurl-impersonate-chrome.dylib"
      },
      "cwd": "${workspaceFolder}",
      "program": "build/stand-alone/crawl.js",
      "skipFiles": [
        "<node_internals>/**"
      ],
      "type": "node",
      "outputCapture": "std",
      "preLaunchTask": "Backend:build:watch",
      "killBehavior": "forceful"
    },
    {
      "name": "Debug Stand Alone Crawl - EU",
      "request": "launch",
      "runtimeArgs": [
        "--env-file=.secret.local",
      ],
      "env": {
        "GCLOUD_PROJECT": "reader-6b7dc",
        "FIRESTORE_DATABASE": "reader-eu",
        "GCP_STORAGE_BUCKET": "reader-eu",
        "LD_PRELOAD": "/usr/local/lib/libcurl-impersonate-chrome.dylib"
      },
      "cwd": "${workspaceFolder}",
      "program": "build/stand-alone/crawl.js",
      "skipFiles": [
        "<node_internals>/**"
      ],
      "type": "node",
      "outputCapture": "std",
      "preLaunchTask": "Backend:build:watch",
      "killBehavior": "forceful"
    },
    {
      "name": "Debug Stand Alone Search",
      "request": "launch",
      "runtimeArgs": [
        "--env-file=.secret.local",
      ],
      "env": {
        "GCLOUD_PROJECT": "reader-6b7dc",
        "LD_PRELOAD": "/usr/local/lib/libcurl-impersonate-chrome.dylib"
      },
      "cwd": "${workspaceFolder}",
      "program": "build/stand-alone/search.js",
      "skipFiles": [
        "<node_internals>/**"
      ],
      "type": "node",
      "outputCapture": "std",
      "preLaunchTask": "Backend:build:watch",
      "killBehavior": "forceful"
    },
    {
      "name": "Debug Stand Alone SERP",
      "request": "launch",
      "runtimeArgs": [
        "--env-file=.secret.local",
      ],
      "env": {
        "GCLOUD_PROJECT": "reader-6b7dc",
        "PREFERRED_PROXY_COUNTRY": "hk",
        "OVERRIDE_GOOGLE_DOMAIN": "www.google.com.hk",
        "LD_PRELOAD": "/usr/local/lib/libcurl-impersonate-chrome.dylib"
      },
      "cwd": "${workspaceFolder}",
      "program": "build/stand-alone/serp.js",
      "skipFiles": [
        "<node_internals>/**"
      ],
      "type": "node",
      "outputCapture": "std",
      "preLaunchTask": "Backend:build:watch",
      "killBehavior": "forceful"
    },
  ]
}