File tree Expand file tree Collapse file tree 2 files changed +6
-2
lines changed
debugger/web/hook_components Expand file tree Collapse file tree 2 files changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -114,10 +114,10 @@ defmodule LiveDebugger.App.Debugger.Web.HookComponents.DeadViewMode do
114114
115115 defp handle_info (
116116 % SuccessorFound { new_lv_process: new_lv_process , old_socket_id: old_socket_id } ,
117- % { private: % { old_socket_id: old_socket_id } } = socket
117+ % { private: % { old_socket_id: old_socket_id } , assigns: % { live_action: action } } = socket
118118 ) do
119119 socket
120- |> redirect ( to: RoutesHelper . debugger_node_inspector ( new_lv_process . pid ) )
120+ |> redirect ( to: RoutesHelper . debugger ( new_lv_process . pid , action ) )
121121 |> halt ( )
122122 end
123123
Original file line number Diff line number Diff line change @@ -16,6 +16,10 @@ defmodule LiveDebugger.App.Web.Helpers.Routes do
1616 ~p" /"
1717 end
1818
19+ @ spec debugger ( pid :: pid ( ) | String . t ( ) , live_action :: atom ( ) ) :: String . t ( )
20+ def debugger ( pid , :node_inspector ) , do: debugger_node_inspector ( pid )
21+ def debugger ( pid , :global_traces ) , do: debugger_global_traces ( pid )
22+
1923 @ spec debugger_node_inspector (
2024 pid :: pid ( ) | String . t ( ) ,
2125 cid :: CommonTypes . cid ( ) | String . t ( ) | nil
You can’t perform that action at this time.
0 commit comments