Simplified doc-site generation
[AGL/documentation.git] / docs / 4_APIs_and_Services / 4.3_Application_Framework_Binder / 6_Annexes / 5_Debuggin_binder_and_bindings.md
1 ---
2 edit_link: ''
3 title: Debugging binder and bindings
4 origin_url: >-
5   https://git.automotivelinux.org/src/app-framework-binder/plain/docs/afb-daemon-debugging.md?h=master
6 ---
7
8 <!-- WARNING: This file is generated by fetch_docs.js using /home/boron/Documents/AGL/docs-webtemplate/site/_data/tocs/apis_services/master/app-framework-binder-developer-guides-api-services-book.yml -->
9
10 # Debugging binder and bindings
11
12 When compiled with the symbol AGL_DEVEL defined, the ***binder***
13 understands the 2 configuration variables:
14
15  - AFB_DEBUG_BREAK: to emit interrupts
16  - AFB_DEBUG_WAIT: to wait interrupts
17
18 To use these variables, assign it the list of break or wait points
19 to reach.
20
21 Example:
22
23 ```bash
24 $ AFB_DEBUG_BREAK=main-entry AFB_DEBUG_WAIT=start-load,start-exec afb-daemon ....
25 ```
26
27 This tells to ***afb-daemon*** to break at the point **main-entry** and to
28 wait at the points **start-load** and **start-exec**.
29
30 The items of the list can be separated using comma, space, tab or new-line.
31
32 The break/wait points are, in the order of their occurrence:
33
34 - main-entry: before decode arguments
35 - main-args: before daemon setup
36 - main-start: before starting jobs
37 - start-entry: before initialisation of sessions and hooks
38 - start-load: before load and pre-init of bindings
39 - start-start: before init of bindings
40 - start-http: before start of http server
41 - start-call: before execution of requests of the command line (option --call)
42 - start-exec: before execution of child preocees
43
44 Note also that a call to 'personality' is inserted just after
45 the point start-start.