Calling internal functions - foo::bar() ?

Luke Gorrie <>
Wed Mar 2 17:42:56 CET 2005


Kostis Sagonas <> writes:

> currently there are very nice alternatives:
> 
> 	erlc +export_all File
> or
> 	c(File, [export_all]).

even on my development machine it would be more like this:

  "Touch" the file (e.g. insert blank line, save, undo, save.)
  'make debug'
  Reload the right module
  ... do what I want ...
  "Touch" the file again
  'make'
  Reload the right module

And more complicated if the code is running on a target machine or the
source file I have is hacked/broken.

In practice I've found this way too inconvenient even when it comes to
adding +debug_info to run the debugger and I do that /way/ less than
poking at internal functions.

Thankfully the +debug_info problem is solved once-and-for-all with a
line in ~/.bashrc:

    export ERL_COMPILER_OPTIONS='[debug_info]'

too dangerous to do the export_all equivalent though :-)





More information about the erlang-questions mailing list