You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+22-1Lines changed: 22 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -109,7 +109,10 @@ In order to debug modules in `.exs` files (such as tests), they must be specifie
109
109
"name": "mix test",
110
110
"request": "launch",
111
111
"task": "test",
112
-
"taskArgs": ["--trace"],
112
+
"taskArgs": [
113
+
"--trace"
114
+
],
115
+
"startApps": true,
113
116
"projectDir": "${workspaceRoot}",
114
117
"requireFiles": [
115
118
"test/**/test_helper.exs",
@@ -127,6 +130,7 @@ In order to debug a single test or a single test file it is currently necessary
127
130
"request": "launch",
128
131
"task": "test",
129
132
"taskArgs": ["tests/some_test.exs:123"],
133
+
"startApps": true,
130
134
"projectDir": "${workspaceRoot}",
131
135
"requireFiles": [
132
136
"test/**/test_helper.exs",
@@ -135,6 +139,23 @@ In order to debug a single test or a single test file it is currently necessary
135
139
}
136
140
```
137
141
142
+
### Phoenix apps
143
+
144
+
Use the following launch config to debug phoenix apps
145
+
146
+
```
147
+
{
148
+
"type": "mix_task",
149
+
"name": "phx.server",
150
+
"request": "launch",
151
+
"task": "phx.server",
152
+
"projectDir": "${workspaceRoot}"
153
+
}
154
+
```
155
+
156
+
Please make sure that `startApps` is not set to `true` as it prevents phoenix from starting correctly. On the other hand phoenix tests expects that the apps are already started so in that case set it to `true`.
157
+
158
+
138
159
Please note that due to `:int` limitation NIF modules cannot be interpreted and need to be excluded via `excludeModules` option. This option can be also used to disable interpreting for some modules when it is not desirable e.g. when performance is not satisfactory.
0 commit comments