Ejabberd with modified ejabberd_c2s loads only in debug mode

Running ejabberd 16.03 on Erlang OTP 18 installed from .deb , I've a modified ejabberd_c2s.erl .It works fine when I attach a debugger using "ejabberdctl debug" and start the GUI debugger with "im()." and setting module to "ejabberd_c2s".Else without the debugger it picks up a diff "ejabberd_c2s" and fails o load my changes.Tried fresh installs.No avail.
Thnks.

Maybe when debugging, it

Maybe when debugging, it picks the source file and compiles, but when not debugging, it picks the beam file, which is still the old one?

Syndicate content