dbb9bdd0b4d38e98963f8e15a62e5c39792dc1a5
[AGL/documentation.git] / docs / 3_Developer_Guides / 2_Application_Framework_Binder / Annexes / 5_Debugging_binder_and_bindings.md
1 ---
2 title: Debugging binder and bindings
3 ---
4
5 When compiled with the symbol AGL_DEVEL defined, the ***binder***
6 understands the 2 configuration variables:
7
8  - AFB_DEBUG_BREAK: to emit interrupts
9  - AFB_DEBUG_WAIT: to wait interrupts
10
11 To use these variables, assign it the list of break or wait points
12 to reach.
13
14 Example:
15
16 ```bash
17 $ AFB_DEBUG_BREAK=main-entry AFB_DEBUG_WAIT=start-load,start-exec afb-daemon ....
18 ```
19
20 This tells to ***afb-daemon*** to break at the point **main-entry** and to
21 wait at the points **start-load** and **start-exec**.
22
23 The items of the list can be separated using comma, space, tab or new-line.
24
25 The break/wait points are, in the order of their occurrence:
26
27 - main-entry: before decode arguments
28 - main-args: before daemon setup
29 - main-start: before starting jobs
30 - start-entry: before initialisation of sessions and hooks
31 - start-load: before load and pre-init of bindings
32 - start-start: before init of bindings
33 - start-http: before start of http server
34 - start-call: before execution of requests of the command line (option --call)
35 - start-exec: before execution of child preocees
36
37 Note also that a call to 'personality' is inserted just after
38 the point start-start.