Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Show ... when Dbgi has no module name #1188

Merged
merged 1 commit into from
Aug 3, 2018
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Show ... when Dbgi has no module name
Happens for instrumented modules from IEx.break/4.
  • Loading branch information
KronicDeth committed Aug 3, 2018
commit 72d845dde49f066ea3f07226869e4df486bd659e
Original file line number Diff line number Diff line change
Expand Up @@ -171,7 +171,7 @@ class Panel(private val formsTree: Tree, project: Project): JPanel(GridLayout(1,
}

private fun moduleContext(debugInfo: AbstractCodeCompileOptions, inner: () -> String): String =
"defmodule ${debugInfo.inspectedModule!!} do \n" +
"defmodule ${debugInfo.inspectedModule ?: "..."} do \n" +
" # ... \n" +
" ${adjustNewLines(inner(), "\n ")}\n" +
" # ...\n" +
Expand Down