I want to force the Erlang compiler to generate debug info for specific modules whenever I compile them, without having to add the debug_info
argument to the compilation command. I tried adding
-compile([debug_info]).
to the module file, but running c(my_module)
did not include the debug info in the beam file.
Is there a way to do this, or debug information can not be added from the module source file itself?