Skip to content

Commit 3e71900

Browse files
committed
fix debugger crash when only 1 frame returned
1 parent 2fd52cc commit 3e71900

File tree

1 file changed

+2
-1
lines changed
  • apps/debug_adapter/lib/debug_adapter

1 file changed

+2
-1
lines changed

apps/debug_adapter/lib/debug_adapter/server.ex

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -258,8 +258,9 @@ defmodule ElixirLS.DebugAdapter.Server do
258258

259259
[first_frame | stacktrace]
260260

261-
[] ->
261+
_ ->
262262
# no stacktrace if we are running in non interpreted mode
263+
# or only 1 frame with module: :undefined, function: {:undefined, :undefined}, args: :undefined
263264
# build frames from Process.info stacktrace
264265
# drop first entry as we get it from env
265266
[_ | stacktrace_rest] = prune_stacktrace(stacktrace)

0 commit comments

Comments
 (0)