Skip to content

Commit 8cba747

Browse files
committed
fix tests
1 parent 98c6041 commit 8cba747

File tree

2 files changed

+10
-9
lines changed

2 files changed

+10
-9
lines changed

apps/debug_adapter/lib/debug_adapter/server.ex

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1038,9 +1038,10 @@ defmodule ElixirLS.DebugAdapter.Server do
10381038
nil ->
10391039
raise ServerError,
10401040
message: "invalidArgument",
1041-
format: "process not paused: {threadId}",
1041+
format: "Process with threadId {threadId} and pid {pid} is not paused",
10421042
variables: %{
1043-
"threadId" => inspect(thread_id)
1043+
"threadId" => inspect(thread_id),
1044+
"pid" => inspect(pid)
10441045
},
10451046
send_telemetry: false
10461047
end

apps/debug_adapter/test/debugger_test.exs

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -700,7 +700,7 @@ defmodule ElixirLS.DebugAdapter.ServerTest do
700700
7,
701701
"stackTrace",
702702
"invalidArgument",
703-
"threadId not found: {threadId}",
703+
"Unable to find process pid for DAP threadId {threadId}",
704704
%{"threadId" => "\"not existing\""},
705705
_,
706706
_
@@ -739,7 +739,7 @@ defmodule ElixirLS.DebugAdapter.ServerTest do
739739
10,
740740
"next",
741741
"invalidArgument",
742-
"threadId not found: {threadId}",
742+
"Unable to find process pid for DAP threadId {threadId}",
743743
%{"threadId" => "\"not existing\""},
744744
_,
745745
_
@@ -752,7 +752,7 @@ defmodule ElixirLS.DebugAdapter.ServerTest do
752752
11,
753753
"stepIn",
754754
"invalidArgument",
755-
"threadId not found: {threadId}",
755+
"Unable to find process pid for DAP threadId {threadId}",
756756
%{"threadId" => "\"not existing\""},
757757
_,
758758
_
@@ -765,7 +765,7 @@ defmodule ElixirLS.DebugAdapter.ServerTest do
765765
12,
766766
"stepOut",
767767
"invalidArgument",
768-
"threadId not found: {threadId}",
768+
"Unable to find process pid for DAP threadId {threadId}",
769769
%{"threadId" => "\"not existing\""},
770770
_,
771771
_
@@ -778,7 +778,7 @@ defmodule ElixirLS.DebugAdapter.ServerTest do
778778
13,
779779
"continue",
780780
"invalidArgument",
781-
"threadId not found: {threadId}",
781+
"Unable to find process pid for DAP threadId {threadId}",
782782
%{"threadId" => "\"not existing\""},
783783
_,
784784
_
@@ -808,8 +808,8 @@ defmodule ElixirLS.DebugAdapter.ServerTest do
808808
7,
809809
"stackTrace",
810810
"invalidArgument",
811-
"process not paused: {threadId}",
812-
%{"threadId" => ^thread_id_str},
811+
"Process with threadId {threadId} and pid {pid} is not paused",
812+
%{"threadId" => ^thread_id_str, "pid" => _},
813813
_,
814814
_
815815
)

0 commit comments

Comments
 (0)