Skip to content

Commit 50f5642

Browse files
committed
Extended condition
1 parent 8ef1ed9 commit 50f5642

File tree

1 file changed

+4
-3
lines changed

1 file changed

+4
-3
lines changed

lib/live_debugger/services/module_discovery.ex

+4-3
Original file line numberDiff line numberDiff line change
@@ -30,8 +30,9 @@ defmodule LiveDebugger.Services.ModuleDiscovery do
3030
end
3131

3232
defp debugger?(module) do
33-
module
34-
|> Atom.to_string()
35-
|> String.starts_with?("Elixir.LiveDebugger.")
33+
stringified_module = Atom.to_string(module)
34+
35+
String.starts_with?(stringified_module, "LiveDebugger.") or
36+
String.starts_with?(stringified_module, "Elixir.LiveDebugger.")
3637
end
3738
end

0 commit comments

Comments
 (0)