Skip to content

Commit 87b3585

Browse files
committed
Remove incomplete remote pid test
1 parent 53f66f4 commit 87b3585

File tree

1 file changed

+12
-3
lines changed
  • apps/debug_adapter/lib/debug_adapter

1 file changed

+12
-3
lines changed

apps/debug_adapter/lib/debug_adapter/server.ex

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2942,10 +2942,19 @@ defmodule ElixirLS.DebugAdapter.Server do
29422942
rescue
29432943
ArgumentError ->
29442944
# remote process
2945-
process_name_from_snapshot(Map.fetch!(snapshot_by_pid, pid))
2945+
case Map.get(snapshot_by_pid, pid) do
2946+
nil -> nil
2947+
snapshot -> process_name_from_snapshot(snapshot)
2948+
end
29462949
else
2947-
nil -> nil
2948-
process_info -> process_name_from_info(process_info)
2950+
nil ->
2951+
case Map.get(snapshot_by_pid, pid) do
2952+
nil -> nil
2953+
snapshot -> process_name_from_snapshot(snapshot)
2954+
end
2955+
2956+
process_info ->
2957+
process_name_from_info(process_info)
29492958
end
29502959
end
29512960

0 commit comments

Comments
 (0)