File: i.3

package info (click to toggle)
erlang-manpages 1%3A12.b.3-1
  • links: PTS
  • area: main
  • in suites: lenny
  • size: 4,188 kB
  • ctags: 2
  • sloc: makefile: 68; perl: 30; sh: 15
file content (399 lines) | stat: -rw-r--r-- 6,739 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
.TH i 3 "debugger  3.1.1.3" "Ericsson AB" "ERLANG MODULE DEFINITION"
.SH MODULE
i \- Debugger/Interpreter Interface
.SH DESCRIPTION
.LP
The module \fIi\fR provides short forms for some of the functions used by the graphical Debugger and some of the functions in the \fIint\fR module, the Erlang interpreter\&. 
.LP
This module also provides facilities for displaying status information about interpreted processes and break points\&.
.LP
It is possible to attach to interpreted processes by giving the corresponding process identity only\&. By default, an attachment window pops up\&. Processes at other Erlang nodes can be attached manually or automatically\&.
.LP
By preference, these functions can be included in the module \fIshell_default\fR\&. By default, they are\&.

.SH EXPORTS
.LP
.B
im() -> pid()
.br
.RS
.LP
Starts a new graphical monitor\&. This is the Monitor window, the main window of the Debugger\&. All of the Debugger and interpreter functionality is accessed from the Monitor window\&. The Monitor window displays the status of all processes that have been/are executing interpreted modules\&.
.RE
.LP
.B
ii(AbsModules) -> ok
.br
.B
ii(AbsModule) -> {module, Module} | error
.br
.B
ini(AbsModules) -> ok
.br
.B
ini(AbsModule) -> {module, Module} | error
.br
.RS
.TP
Types
AbsModules = [AbsModule]
.br
AbsModule = Module | File
.br
Module = atom()
.br
File = string()
.br
.RE
.RS
.LP
Interprets the specified module(s)\&. \fIii/1\fR interprets the module(s) only at the current node, see int:i/1\&. \fIini/1\fR interprets the module(s) at all known nodes, see int:ni/1\&.
.RE
.LP
.B
iq(AbsModule) -> ok
.br
.B
inq(AbsModule) -> ok
.br
.RS
.TP
Types
AbsModule = Module | File
.br
Module = atom()
.br
File = string()
.br
.RE
.RS
.LP
Stops interpreting the specified module\&. \fIiq/1\fR stops interpreting the module only at the current node\&. \fIinq/1\fR stops interpreting the module at all known nodes\&.
.RE
.LP
.B
il() -> ok
.br
.RS
.LP
Makes a printout of all interpreted modules\&. Modules are printed together with the full path name of the corresponding source code file\&.
.RE
.LP
.B
ip() -> ok
.br
.RS
.LP
Makes a printout of the current status of all interpreted processes\&.
.RE
.LP
.B
ic() -> ok
.br
.RS
.LP
Clears information about processes executing interpreted code byt removing all information about terminated processes\&.
.RE
.LP
.B
iaa(Flags) -> true
.br
.B
iaa(Flags, Function) -> true
.br
.RS
.TP
Types
Flags = [init | break | exit]
.br
Function = {Module, Name, Args}
.br
Module = Name = atom()
.br
Args = [term()]
.br
.RE
.RS
.LP
Sets when and how to automatically attach to a debugged process, see int:auto_attach/2\&. \fIFunction\fR defaults to the standard function used by the Debugger\&.
.RE
.LP
.B
ist(Flag) -> true
.br
.RS
.TP
Types
Flag = all | no_tail | false
.br
.RE
.RS
.LP
Sets how to save call frames in the stack, see int:stack_trace/1\&. 
.RE
.LP
.B
ia(Pid) -> ok | no_proc
.br
.RS
.TP
Types
Pid = pid()
.br
.RE
.RS
.LP
Attaches to the debugged process \fIPid\fR\&. A Debugger Attach Process window is opened for the process\&.
.RE
.LP
.B
ia(X,Y,Z) -> ok | no_proc
.br
.RS
.TP
Types
X = Y = Z = int()
.br
.RE
.RS
.LP
Same as \fIia(Pid)\fR, where \fIPid\fR is the result of calling the shell function \fIpid(X, Y, Z)\fR\&.
.RE
.LP
.B
ia(Pid, Function) -> ok | no_proc
.br
.RS
.TP
Types
Pid = pid()
.br
Function = {Module, Name}
.br
Module = Name = atom()
.br
.RE
.RS
.LP
Attaches to the debugged process \fIPid\fR\&. The interpreter will call \fIspawn(Module, Name, [Pid])\fR (and ignore the result)\&.
.RE
.LP
.B
ia(X,Y,Z, Function) -> ok | no_proc
.br
.RS
.TP
Types
X = Y = Z = int()
.br
Function = {Module, Name}
.br
Module = Name = atom()
.br
.RE
.RS
.LP
Same as \fIia(Pid, Function)\fR, where \fIPid\fR is the result of calling the shell function \fIpid(X, Y, Z)\fR\&. An attached process is expected to call the unofficial \fIint:attached(Pid)\fR function and to be able to handle messages from the interpreter, see \fIdbg_ui_trace\&.erl\fR for an example\&.
.RE
.LP
.B
ib(Module, Line) -> ok | {error, break_exists}
.br
.RS
.TP
Types
Module = atom()
.br
Line = int()
.br
.RE
.RS
.LP
Creates a breakpoint at \fILine\fR in \fIModule\fR\&.
.RE
.LP
.B
ib(Module, Name, Arity) -> ok | {error, function_not_found} 
.br
.RS
.TP
Types
Module = Name = atom()
.br
Arity = int()
.br
.RE
.RS
.LP
Creates breakpoints at the first line of every clause of the \fIModule:Name/Arity\fR function\&.
.RE
.LP
.B
ir() -> ok
.br
.RS
.LP
Deletes all breakpoints\&.
.RE
.LP
.B
ir(Module) -> ok
.br
.RS
.TP
Types
Module = atom()
.br
.RE
.RS
.LP
Deletes all breakpoints in \fIModule\fR\&.
.RE
.LP
.B
ir(Module, Line) -> ok
.br
.RS
.TP
Types
Module = atom()
.br
Line = int()
.br
.RE
.RS
.LP
Deletes the breakpoint located at \fILine\fR in \fIModule\fR\&.
.RE
.LP
.B
ir(Module, Name, Arity) -> ok | {error, function_not_found} 
.br
.RS
.TP
Types
Module = Name = atom()
.br
Arity = int()
.br
.RE
.RS
.LP
Deletes the breakpoints at the first line of every clause of the \fIModule:Name/Arity\fR function\&.
.RE
.LP
.B
ibd(Module, Line) -> ok
.br
.RS
.TP
Types
Module = atom()
.br
Line = int()
.br
.RE
.RS
.LP
Makes the breakpoint at \fILine\fR in \fIModule\fR inactive\&.
.RE
.LP
.B
ibe(Module, Line) -> ok
.br
.RS
.TP
Types
Module = atom()
.br
Line = int()
.br
.RE
.RS
.LP
Makes the breakpoint at \fILine\fR in \fIModule\fR active\&. 
.RE
.LP
.B
iba(Module, Line, Action) -> ok
.br
.RS
.TP
Types
Module = atom()
.br
Line = int()
.br
Action = enable | disable | delete
.br
.RE
.RS
.LP
Sets the trigger action of the breakpoint at \fILine\fR in \fIModule\fR to \fIAction\fR\&.
.RE
.LP
.B
ibc(Module, Line, Function) -> ok
.br
.RS
.TP
Types
Module = atom()
.br
Line = int()
.br
Function = {Module, Name}
.br
Name = atom()
.br
.RE
.RS
.LP
Sets the conditional test of the breakpoint at \fILine\fR in \fIModule\fR to \fIFunction\fR\&.
.LP
The conditional test is performed by calling \fIModule:Name(Bindings)\fR, where \fIBindings\fR is the current variable bindings\&. The function must return \fItrue\fR (break) or \fIfalse\fR (do not break)\&. Use \fIint:get_binding(Var, Bindings)\fR to retrieve the value of a variable \fIVar\fR\&.
.RE
.LP
.B
ipb() -> ok
.br
.RS
.LP
Makes a printout of all existing breakpoints\&.
.RE
.LP
.B
ipb(Module) -> ok
.br
.RS
.TP
Types
Module = atom()
.br
.RE
.RS
.LP
Makes a printout of all existing breakpoints in \fIModule\fR\&.
.RE
.LP
.B
iv() -> atom()
.br
.RS
.LP
Returns the current version number of the interpreter\&. The same as the version number of the Debugger application\&. 
.RE
.LP
.B
help() -> ok
.br
.RS
.LP
Prints help text\&.
.RE
.SH USAGE
.LP
Refer to the Debugger User\&'s Guide for information about the Debugger\&.
.SH SEE ALSO
.LP
\fIint(3)\fR