Skip to content

Commit d5e9963

Browse files
committed
add note about connecting remotely to debugger
Addresses elixir-lsp/vscode-elixir-ls#13 Addresses JakeBecker/vscode-elixir-ls#97 Addresses elixir-lsp/vscode-elixir-ls#47
1 parent c19664e commit d5e9963

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

README.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -236,6 +236,18 @@ If a breakpoint is set on the line with `some_function()`, the last bound value
236236

237237
Additionally, while all bound variables are accessible in the expression evaluator, it doesn't support accessing module attributes since those are determined at compile-time.
238238

239+
### Connecting to debugger
240+
241+
It may be useful to connect to a running debugger node via OTP distribution. This enables inspecting the running application and remotely triggering debugged functions. In order to do so set `ELS_ELIXIR_OPTS` in launch configuration and pass appropriate node name/sname and cookie.
242+
243+
```json
244+
{
245+
"env": {
246+
"ELS_ELIXIR_OPTS": "--name mynode@localhost --cookie secret"
247+
}
248+
}
249+
```
250+
239251
## Automatic builds and error reporting
240252

241253
The ElixirLS provides automatic builds and error reporting. By default, builds are triggered automatically when files are saved, but you can also enable "autosave" in your IDE to trigger builds as you type. If you prefer to disable automatic builds, you can set the `elixirLS.autoBuild` configuration option to `false`.

0 commit comments

Comments
 (0)