Call to i:im() in application debugger failed in mongooseim

半世苍凉 提交于 2019-12-14 03:14:38

问题


It seems invoking im(). after invoking ./bin/mongooseim debug shell fails with message "call to i:im/0 in application debugger fails". However, when I do it typical Erlang shell, it opens up the window correctly. Any idea why ?


回答1:


There is several reasons starting debugger graphical interface could fails:

  • you are debugging a remote server and the server cannot display its UI on your local computer through SSH.
  • You are missing access to some Erlang components in the context of ejabberd.

As an example, I tried on my local computer and it worked fine:

$ ./ejabberdctl debug
...
Erlang/OTP 17 [erts-6.4] [source] [64-bit] [smp:4:4] [async-threads:10] [hipe] [kernel-poll:true]

Eshell V6.4  (abort with ^G)
(ejabberd@localhost)1> i:im().
<0.464.0>

It even worked with ejabberd binary installer after adding the debugger component for Erlang R17B-5 in INSTALLER_DIR/lib/. The component you need to add to binary installer to use the graphical debugger are: debugger and wx. Just copied those two dir and it worked.



来源:https://stackoverflow.com/questions/31643730/call-to-iim-in-application-debugger-failed-in-mongooseim

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!