dbg_opt()

Vance Shipley vances@REDACTED
Sun Dec 31 06:47:33 CET 2000


Is it possible to turn on debugging after a process is 
started?

If you pass the Options on startup to a generic behaviour
it will create debug output:

gen_fsm:start_link({local, testing}, foo, [], 
		[{debug, [{log_to_file, "test.log"]}])

test.log:
*DBG* testing got event 1 in state state2
*DBG* testing switched to state state1
*DBG* testing got event 2 in state state1
*DBG* testing switched to state state2


But if I don't specify any options at start up can I later
turn debugging on?  It seems I can not. :(

	-Vance

-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.erl
Type: application/octet-stream
Size: 672 bytes
Desc: not available
URL: <http://erlang.org/pipermail/erlang-questions/attachments/20001231/a066531e/attachment.obj>


More information about the erlang-questions mailing list