I’m trying to use ElixirLs Debugger on VSCode but once I drop a breakpoint inside a function and when I call it instead the debugger stop on the breakpoint I got:
:elixir_ls_expression_timeout
on my Debug console.
Anyone else passed through that?
1 Like
Are you setting an expression and could that expression be taking longer than 1 second? Currently there’s a hard-coded timeout of 1 second for expressions.
2 Likes
Hey @axelson thanks for helping!
No, there’s not an expression that could be taking longer than 1 second.
I did a simple project from scratch and it happens again.
As you can see here: Dropbox - elixirlsdebuggererror.gif - Simplify your life
1 Like
hey @mingyar.furtado , are you able to solve the
:elixir_ls_expression_timeout
issue , I am also facing the same issue.
2 Likes
Unfortunately not @Earth-43 .
But, what I’m using on my daily basis to debug is:
IO.inspect()
and IO.inspecting(binding())
I hope that helps you as it helps me!
1 Like
Just put up PR’s to make this configurable (and increases the default timeout to 10 seconds):
elixir-lsp:master
← axelson:configurable-debugging-expression-timeout
opened 05:25PM - 20 Oct 21 UTC
Rather than a hard-coded timeout of 1_000 ms for watch expressions, add
`debugE… xpressionTimeoutMs` to the launch.json configuration options. In
the next version of vscode-elixir-ls `debugExpressionTimeoutMs` will be
supported in the launch.json autocomplete, but if you are running a
version of ElixirLS that supports it before then you can add the key
manually.
Example mix test launch.json entry that uses this to set a timeout of 30
seconds:
```
{
"type": "mix_task",
"name": "mix test",
"request": "launch",
"debugExpressionTimeoutMs": 30000,
"task": "test",
"taskArgs": [
"--trace"
],
"startApps": true,
"projectDir": "${workspaceRoot}",
"requireFiles": [
"test/**/test_helper.exs",
"test/**/*_test.exs"
]
}
```
Fixes #525
elixir-lsp:master
← axelson:configurable-watch-expression-timeout
opened 05:27PM - 20 Oct 21 UTC
Read in ElixirLS in https://github.com/elixir-lsp/elixir-ls/pull/613
So this will be improved in the next release of ElixirLS
2 Likes