Seems that iconv is not debuggable...
[error] failed to load NIF
_build/dev/lib/iconv/priv/lib/iconv: Library module name 'iconv' does not match calling module 'dbg_debugged'
=INFO REPORT==== 23-Jun-2017::22:49:17 ===
application: logger
exited: stopped
type: temporary
*DBG* 'Elixir.IntellijElixir.DebugServer' got {'DOWN',#Ref<0.0.4.173>,
process,<0.532.0>,
{#{'__exception__' => true,
'__struct__' => 'Elixir.Mix.Error',
message => <<"Could not start application iconv: :iconv_app.start(:normal, []) returned an error: :bad_lib">>,
mix => true},
[{'Elixir.Mix',raise,1,
[{file,"lib/mix.ex"},
{line,279}]},
{'Elixir.Enum',
'-each/2-lists^foreach/1-0-',
2,
[{file,"lib/enum.ex"},
{line,676}]},
{'Elixir.Enum',each,2,
[{file,"lib/enum.ex"},
{line,676}]},
{'Elixir.Mix.Tasks.App.Start',
start,2,
[{file,
"lib/mix/tasks/app.start.ex"},
{line,97}]},
{'Elixir.Mix.Tasks.App.Start',
run,1,
[{file,
"lib/mix/tasks/app.start.ex"},
{line,78}]},
{'Elixir.Mix.Task',run_task,
3,
[{file,"lib/mix/task.ex"},
{line,301}]},
{'Elixir.Mix.Tasks.Run',run,
5,
[{file,
"lib/mix/tasks/run.ex"},
{line,87}]},
{'Elixir.Mix.Tasks.Run',run,
1,
[{file,
"lib/mix/tasks/run.ex"},
{line,54}]},
{'Elixir.Mix.Task',run_task,
3,
[{file,"lib/mix/task.ex"},
{line,301}]}]}}
=ERROR REPORT==== 23-Jun-2017::22:49:17 ===
Error in process <0.532.0> with exit value:
{#{'__exception__' => true,
'__struct__' => 'Elixir.Mix.Error',
message => <<"Could not start application iconv: :iconv_app.start(:normal, []) returned an error: :bad_lib">>,
mix => true},
[{'Elixir.Mix',raise,1,[{file,"lib/mix.ex"},{line,279}]},
{'Elixir.Enum','-each/2-lists^foreach/1-0-',2,
[{file,"lib/enum.ex"},{line,676}]},
{'Elixir.Enum',each,2,[{file,"lib/enum.ex"},{line,676}]},
{'Elixir.Mix.Tasks.App.Start',start,2,
[{file,"lib/mix/tasks/app.start.ex"},
{line,97}]},
{'Elixir.Mix.Tasks.App.Start',run,1,
[{file,"lib/mix/tasks/app.start.ex"},
{line,78}]},
{'Elixir.Mix.Task',run_task,3,[{file,"lib/mix/task.ex"},{line,301}]},
{'Elixir.Mix.Tasks.Run',run,5,[{file,"lib/mix/tasks/run.ex"},{line,87}]},
{'Elixir.Mix.Tasks.Run',run,1,[{file,"lib/mix/tasks/run.ex"},{line,54}]},
{'Elixir.Mix.Task',run_task,3,[{file,"lib/mix/task.ex"},{line,301}]}]}
=ERROR REPORT==== 23-Jun-2017::22:49:17 ===
** Generic server 'Elixir.IntellijElixir.DebugServer' terminating
** Last message in was {'DOWN',#Ref<0.0.4.173>,process,<0.532.0>,
{#{'__exception__' => true,
'__struct__' => 'Elixir.Mix.Error',
message => <<"Could not start application iconv: :iconv_app.start(:normal, []) returned an error: :bad_lib">>,
mix => true},
[{'Elixir.Mix',raise,1,
[{file,"lib/mix.ex"},{line,279}]},
{'Elixir.Enum','-each/2-lists^foreach/1-0-',2,
[{file,"lib/enum.ex"},{line,676}]},
{'Elixir.Enum',each,2,
[{file,"lib/enum.ex"},{line,676}]},
{'Elixir.Mix.Tasks.App.Start',start,2,
[{file,"lib/mix/tasks/app.start.ex"},
{line,97}]},
{'Elixir.Mix.Tasks.App.Start',run,1,
[{file,"lib/mix/tasks/app.start.ex"},
{line,78}]},
{'Elixir.Mix.Task',run_task,3,
[{file,"lib/mix/task.ex"},{line,301}]},
{'Elixir.Mix.Tasks.Run',run,5,
[{file,"lib/mix/tasks/run.ex"},{line,87}]},
{'Elixir.Mix.Tasks.Run',run,1,
[{file,"lib/mix/tasks/run.ex"},{line,54}]},
{'Elixir.Mix.Task',run_task,3,
[{file,"lib/mix/task.ex"},{line,301}]}]}}
** When Server state == #{ref => #Ref<0.0.4.173>,
socket => #Port<0.13957>,
task => {<<"phoenix.server">>,[]}}
** Reason for termination ==
** {#{'__exception__' => true,
'__struct__' => 'Elixir.Mix.Error',
message => <<"Could not start application iconv: :iconv_app.start(:normal, []) returned an error: :bad_lib">>,
mix => true},
[{'Elixir.Mix',raise,1,[{file,"lib/mix.ex"},{line,279}]},
{'Elixir.Enum','-each/2-lists^foreach/1-0-',2,
[{file,"lib/enum.ex"},{line,676}]},
{'Elixir.Enum',each,2,[{file,"lib/enum.ex"},{line,676}]},
{'Elixir.Mix.Tasks.App.Start',start,2,
[{file,"lib/mix/tasks/app.start.ex"},
{line,97}]},
{'Elixir.Mix.Tasks.App.Start',run,1,
[{file,"lib/mix/tasks/app.start.ex"},
{line,78}]},
{'Elixir.Mix.Task',run_task,3,[{file,"lib/mix/task.ex"},{line,301}]},
{'Elixir.Mix.Tasks.Run',run,5,[{file,"lib/mix/tasks/run.ex"},{line,87}]},
{'Elixir.Mix.Tasks.Run',run,1,[{file,"lib/mix/tasks/run.ex"},{line,54}]},
{'Elixir.Mix.Task',run_task,3,[{file,"lib/mix/task.ex"},{line,301}]}]}
** (EXIT from #PID<0.70.0>) an exception was raised:
** (Mix.Error) Could not start application iconv: :iconv_app.start(:normal, []) returned an error: :bad_lib
(mix) lib/mix.ex:279: Mix.raise/1
(elixir) lib/enum.ex:676: Enum."-each/2-lists^foreach/1-0-"/2
(elixir) lib/enum.ex:676: Enum.each/2
(mix) lib/mix/tasks/app.start.ex:97: Mix.Tasks.App.Start.start/2
(mix) lib/mix/tasks/app.start.ex:78: Mix.Tasks.App.Start.run/1
(mix) lib/mix/task.ex:301: Mix.Task.run_task/3
(mix) lib/mix/tasks/run.ex:87: Mix.Tasks.Run.run/5
(mix) lib/mix/tasks/run.ex:54: Mix.Tasks.Run.run/1
(mix) lib/mix/task.ex:301: Mix.Task.run_task/3