i(3erl)
i(3erl) π¦ β Debugger/Interpreter Interface π
Manual-name drop: this page is from the Erlang Module Definition manual, bestie. And it's literally all about the i module being your debugger/interpreter shortcut bestie. β¨
πΈ NAME πΈ
i β Debugger/Interpreter Interface.
π DESCRIPTION π
Okay so the i module provides short forms for some of the functions used by the graphical Debugger and some of the functions in module int, the Erlang interpreter. It's giving convenience era, fr fr. π
This module also provides facilities for displaying status information about interpreted processes and break points. status info slay β¨
It is possible to attach to interpreted processes by giving the corresponding process identity only. By default, an attachment window is displayed. Processes at other Erlang nodes can be attached manually or automatically. π¦
By preference, these functions can be included in module shell_default. By default, they are included in that module. π«Ά
β¨ EXPORTS β¨
π im() π
im() -> pid()
Starts a new graphical monitor. This is the Monitor window, the main window of Debugger. All the Debugger and interpreter functionality is accessed from the Monitor window. This window displays the status of all processes that have been or are executing interpreted modules. main character window energy π
π§ ii/1 + ini/1 π§
ii(AbsModules) -> ok
ii(AbsModule) -> {module, Module} | error
ini(AbsModules) -> ok
ini(AbsModule) -> {module, Module} | error
Types:
AbsModules = [AbsModule]
AbsModule = Module | File
Module = atom()
File = string()
Interprets the specified module(s). ii/1 interprets the module(s) only at the current node, see int:i/1. ini/1 interprets the module(s) at all known nodes, see int:ni/1. node-by-node tea β
π«§ iq/1 + inq/1 π«§
iq(AbsModule) -> ok
inq(AbsModule) -> ok
Types:
AbsModule = Module | File
Module = atom()
File = string()
Stops interpreting the specified module. iq/1 stops interpreting the module only at the current node. inq/1 stops interpreting the module at all known nodes. stop interpreting, but make it fashion π
π il() π
il() -> ok
Makes a printout of all interpreted modules. Modules are printed together with the full path name of the corresponding source code file. full path realness π
π¦ ip() π¦
ip() -> ok
Prints the current status of all interpreted processes. status check! β
πΈ ic() πΈ
ic() -> ok
Clears information about processes executing interpreted code by removing all information about terminated processes. cleanup era π§Ή
π« iaa(Flags) + iaa(Flags, Function) π«
iaa(Flags) -> true
iaa(Flags, Function) -> true
Types:
Flags = [init | break | exit]
Function = {Module,Name,Args}
Module = Name = atom()
Args = [term()]
Sets when and how to attach to a debugged process automatically, see int:auto_attach/2. Function defaults to the standard function used by Debugger. auto-attach vibes β‘
π§ ist(Flag) π§
ist(Flag) -> true
Types:
Flag = all | no_tail | false
Sets how to save call frames in the stack, see int:stack_trace/1. stack frames, but make it intentional π₯
π₯ ia(Pid) π₯
ia(Pid) -> ok | no_proc
Types:
Pid = pid()
Attaches to the debugged process Pid. An Attach Process window is opened for the process. attach window moment πͺ
π ia(X,Y,Z) π
ia(X,Y,Z) -> ok | no_proc
Types:
X = Y = Z = int()
Same as ia(Pid), where Pid is the result of calling the shell function pid(X,Y,Z). shell function shortcut slay π
π ia(Pid, Function) π
ia(Pid, Function) -> ok | no_proc
Types:
Pid = pid()
Function = {Module,Name}
Module = Name = atom()
Attaches to the debugged process Pid. The interpreter calls spawn(Module, Name, [Pid]) (and ignores the result). spawn it and forget it π
π¦ ia(X,Y,Z, Function) π¦
ia(X,Y,Z, Function) -> ok | no_proc
Types:
X = Y = Z = int()
Function = {Module,Name}
Module = Name = atom()
Same as ia(Pid, Function), where Pid is the result of calling the shell function pid(X,Y,Z). An attached process is expected to call the unofficial function int:attached(Pid) and to be able to handle messages from the interpreter. For an example, see dbg_wx_trace.erl. unofficial function alert, iykyk π¨
β ib(Module, Line) β
ib(Module, Line) -> ok | {error, break_exists}
Types:
Module = atom()
Line = int()
Creates a breakpoint at Line in Module. breakpoint creation station πβ¨
π ib(Module, Name, Arity) π
ib(Module, Name, Arity) -> ok | {error, function_not_found}
Types:
Module = Name = atom()
Arity = int()
Creates breakpoints at the first line of every clause of function Module:Name/Arity. every clause gets one π―
π ir() π
ir() -> ok
Deletes all breakpoints. bye-bye breakpoints π
π«Ά ir(Module) π«Ά
ir(Module) -> ok
Types:
Module = atom()
Deletes all breakpoints in Module. module breakpoint cleanup π§Ό
π ir(Module, Line) π
ir(Module, Line) -> ok
Types:
Module = atom()
Line = int()
Deletes the breakpoint at Line in Module. single breakpoint deletion realness ποΈ
π¦ ir(Module, Name, Arity) π¦
ir(Module, Name, Arity) -> ok | {error, function_not_found}
Types:
Module = Name = atom()
Arity = int()
Deletes the breakpoints at the first line of every clause of function Module:Name/Arity. function-clause cleanup era π§Ή
πΈ ibd(Module, Line) πΈ
ibd(Module, Line) -> ok
Types:
Module = atom()
Line = int()
Makes the breakpoint at Line in Module inactive. inactive breakpoint, not me π
π§ ibe(Module, Line) π§
ibe(Module, Line) -> ok
Types:
Module = atom()
Line = int()
Makes the breakpoint at Line in Module active. active again, periodt β
π₯ iba(Module, Line, Action) π₯
iba(Module, Line, Action) -> ok
Types:
Module = atom()
Line = int()
Action = enable | disable | delete
Sets the trigger action of the breakpoint at Line in Module to Action. trigger action slay π¬
π« ibc(Module, Line, Function) π«
ibc(Module, Line, Function) -> ok
Types:
Module = atom()
Line = int()
Function = {Module,Name}
Name = atom()
Sets the conditional test of the breakpoint at Line in Module to Function. conditional test era π§ͺ
The conditional test is performed by calling Module:Name(Bindings), where Bindings is the current variable bindings. The function must return true (break) or false (do not break). To retrieve the value of a variable Var, use int:get_binding(Var, Bindings). bindings tea, no cap π«
π ipb() π
ipb() -> ok
Prints all existing breakpoints. breakpoint printout moment π¨οΈ
π¦ ipb(Module) π¦
ipb(Module) -> ok
Types:
Module = atom()
Prints all existing breakpoints in Module. module-only breakpoint printout π¨οΈβ¨
β iv() β
iv() -> atom()
Returns the current version number of the interpreter. Same as the version number of the Debugger application. version number check, slay π’
π«Ά help() π«Ά
help() -> ok
Prints help text. help text to the rescue π
π SEE ALSO π
int(3erl) β that's the one, bestie. π«Ά
π«Ά Okay that's the whole manual, bestie! Source/version sign-off: Ericsson AB, debugger 5.3.1.2, i(3erl) β and the footer didn't print a date, so I'm not inventing one. π
π¦ where this page comes from
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4 Β· Apache-2.0
- ubuntu noble: erlang-manpages 1:25.3.2.8+dfsg-1ubuntu4.8 Β· Apache-2.0
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms