1
- /*
1
+ /*
2
2
3
3
Copy this file into '.vscode/launch.json' or merge its contents into your existing
4
4
configurations.
5
5
6
6
*/
7
7
8
8
{
9
- "configurations" : [
10
- {
11
- "name" : " Debug Runtime" ,
12
- "type" : " lldb" ,
13
- "request" : " launch" ,
14
- "cargo" : {
15
- "args" : [
16
- " build" ,
17
- " --bin=edge-runtime" ,
18
- " --features=cli/tracing"
19
- ],
20
- "filter" : {
21
- "kind" : " bin"
22
- }
23
- },
24
- "cwd" : " ${workspaceFolder}" ,
25
- "sourceLanguages" : [
26
- " rust"
27
- ],
28
- "args" : [
29
- " -v" ,
30
- " start" ,
31
- " --main-service" ,
32
- " ./examples/main" ,
33
- " --event-worker" ,
34
- " ./examples/event-manager"
35
-
36
- // To enable the inspector capability, uncomment the line below.
37
- // "--inspect-brk"
38
-
39
- // If you want to listen to the inspect session on a different port, uncomment the
40
- // line below instead.
41
- // "--inspect-brk=127.0.0.1:<PORT>"
9
+ "configurations" : [
10
+ {
11
+ "name" : " Debug Runtime" ,
12
+ "type" : " lldb" ,
13
+ "request" : " launch" ,
14
+ "cargo" : {
15
+ "args" : [
16
+ " build" ,
17
+ " --bin=edge-runtime" ,
18
+ " --features=cli/tracing"
19
+ ],
20
+ "filter" : {
21
+ "kind" : " bin"
22
+ }
23
+ },
24
+ "cwd" : " ${workspaceFolder}" ,
25
+ "sourceLanguages" : [
26
+ " rust"
27
+ ],
28
+ "args" : [
29
+ " -v" ,
30
+ " start" ,
31
+ " --main-service" ,
32
+ " ./examples/main" ,
33
+ " --event-worker" ,
34
+ " ./examples/event-manager"
35
+ // To enable the inspector capability, uncomment the line below.
36
+ // "--inspect-brk"
42
37
43
- // If you want to allow an inspector session to be created on the main worker,
44
- // uncomment the line below.
45
- //
46
- // This flag must be used in combination with the flag above.
47
- // "--inspect-main"
48
- ],
49
- "env" : {
50
- "RUST_BACKTRACE" : " full" ,
51
- "EDGE_RUNTIME_PORT" : " 9998"
38
+ // If you want to listen to the inspect session on a different port, uncomment the
39
+ // line below instead.
40
+ // "--inspect-brk=127.0.0.1:<PORT>"
52
41
53
- // If you want to get a detailed log, uncomment below.
54
- // Value of environment variable below is described in detail in the links below:
55
- // https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives
56
- // "RUST_LOG": "trace"
57
- }
58
- },
59
- {
60
- "name" : " Attach V8 Inspector" ,
61
- "type" : " node" ,
62
- "address" : " 127.0.0.1" ,
63
- "request" : " attach" ,
64
- "localRoot" : " /" ,
65
- "remoteRoot" : " /" ,
66
- "timeout" : 1000000 ,
42
+ // If you want to allow an inspector session to be created on the main worker,
43
+ // uncomment the line below.
44
+ //
45
+ // This flag must be used in combination with the flag above.
46
+ // "--inspect-main"
47
+ ],
48
+ "env" : {
49
+ "RUST_BACKTRACE" : " full" ,
50
+ "EDGE_RUNTIME_PORT" : " 9998"
51
+ // If you want to get a detailed log, uncomment below.
52
+ // Value of environment variable below is described in detail in the links below:
53
+ // https://docs.rs/tracing-subscriber/latest/tracing_subscriber/filter/struct.EnvFilter.html#directives
54
+ // "RUST_LOG": "trace"
55
+ }
56
+ },
57
+ {
58
+ "name" : " Attach V8 Inspector" ,
59
+ "type" : " node" ,
60
+ "address" : " 127.0.0.1" ,
61
+ "request" : " attach" ,
62
+ "localRoot" : " /" ,
63
+ "remoteRoot" : " /" ,
64
+ "timeout" : 1000000 ,
67
65
68
- // Properties below are optional.
69
- "restart" : true ,
66
+ // Properties below are optional.
67
+ "restart" : true ,
70
68
71
- // Inspector is accepting sessions on 9229 by default. If you changed the listening port
72
- // via the inspector flag above, this value must also be changed.
73
- "port" : 9229
74
- }
75
- ]
76
- }
69
+ // Inspector is accepting sessions on 9229 by default. If you changed the listening port
70
+ // via the inspector flag above, this value must also be changed.
71
+ "port" : 9229
72
+ }
73
+ ]
74
+ }
0 commit comments