Module mod_development

Support functions for development.

Copyright © 2009-2020 Marc Worrell

Behaviours: gen_server.

Authors: Marc Worrell (marc@worrell.nl).

Description

Support functions for development.

Function Index

code_change/3Convert process state when code is changed.
debug_stream/3Stream specific debug information to an area on the current page.
handle_call/3Trap unknown calls.
handle_cast/2
handle_info/2Handling all non call/cast messages.
init/1Initiates the server.
make/1
observe_admin_menu/3
observe_debug_stream/2Stream all debug information of a certain kind to the target id on the user agent.
observe_filewatcher/2Catch filewatcher file change events, reloads css or the open pages.
observe_request_context/3
page_debug_stream/3Process started and linked to the current page, subscribes to debug notifications.
page_debug_stream_loop/3
pid_observe_development_make/3
pid_observe_development_reload/3
reload/1
start_link/1Starts the server.
terminate/2This function is called by a gen_server when it is about to terminate.

Function Details

code_change/3

code_change(OldVsn, State, Extra) -> {ok, NewState}

Convert process state when code is changed

debug_stream/3

debug_stream(TargetId, What, Context) -> any()

Stream specific debug information to an area on the current page.

handle_call/3

handle_call(Message::Request, From, State) -> {reply, Reply, State} | {reply, Reply, State, Timeout} | {noreply, State} | {noreply, State, Timeout} | {stop, Reason, Reply, State} | {stop, Reason, State}

Trap unknown calls

handle_cast/2

handle_cast(Message::Msg, State) -> {noreply, State} | {noreply, State, Timeout} | {stop, Reason, State}

handle_info/2

handle_info(Info, State) -> {noreply, State} | {noreply, State, Timeout} | {stop, Reason, State}

Handling all non call/cast messages

init/1

init(Args) -> {ok, State} | {ok, State, Timeout} | ignore | {stop, Reason}

Initiates the server.

make/1

make(Context) -> any()

observe_admin_menu/3

observe_admin_menu(Admin_menu, Acc, Context) -> any()

observe_debug_stream/2

observe_debug_stream(Debug_stream, Context) -> any()

Stream all debug information of a certain kind to the target id on the user agent.

observe_filewatcher/2

observe_filewatcher(Filewatcher, Context) -> any()

Catch filewatcher file change events, reloads css or the open pages.

observe_request_context/3

observe_request_context(Request_context, Context, X3) -> any()

page_debug_stream/3

page_debug_stream(TargetId, What, Context) -> any()

Process started and linked to the current page, subscribes to debug notifications

page_debug_stream_loop/3

page_debug_stream_loop(TargetId, What, Context) -> any()

pid_observe_development_make/3

pid_observe_development_make(Pid, X2, Context) -> any()

pid_observe_development_reload/3

pid_observe_development_reload(Pid, X2, Context) -> any()

reload/1

reload(Context) -> any()

start_link/1

start_link(Args) -> {ok, Pid} | ignore | {error, Error}

Starts the server

terminate/2

terminate(Reason, State) -> void()

This function is called by a gen_server when it is about to terminate. It should be the opposite of Module:init/1 and do any necessary cleaning up. When it returns, the gen_server terminates with Reason. The return value is ignored.


Generated by EDoc