We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 53f66f4 commit 87b3585Copy full SHA for 87b3585
apps/debug_adapter/lib/debug_adapter/server.ex
@@ -2942,10 +2942,19 @@ defmodule ElixirLS.DebugAdapter.Server do
2942
rescue
2943
ArgumentError ->
2944
# remote process
2945
- process_name_from_snapshot(Map.fetch!(snapshot_by_pid, pid))
+ case Map.get(snapshot_by_pid, pid) do
2946
+ nil -> nil
2947
+ snapshot -> process_name_from_snapshot(snapshot)
2948
+ end
2949
else
- nil -> nil
- process_info -> process_name_from_info(process_info)
2950
+ nil ->
2951
2952
2953
2954
2955
+
2956
+ process_info ->
2957
+ process_name_from_info(process_info)
2958
end
2959
2960
0 commit comments