aboutsummaryrefslogtreecommitdiffstats
path: root/doc/debugging.txt
blob: ba1943344b644294bb7fb6208925c702d003969b (plain) (blame)
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
To enable debugging use the configure option --enable-debug.

LOGGING
=======

At execution time, you must enable the log service. To enable the
log service, set the environment variable: EPHY_LOG_MODULES

EPHY_LOG_MODULES variable has the form:

    <moduleName>[:<moduleName>]*

moduleName is a filename.
ex: export EPHY_LOG_MODULES=ephy-window.c:ephy-autocompletion.c
The special log module "all" enables all log modules.

Use the LOG macro to put debug messages in the code.

WARNINGS
========

At execution time, you must enable the service. To enable you to debug
warnings, set the environment variable: EPHY_DEBUG_BREAK

Possibe value for EPHY_DEBUG_BREAK variable:

    stack       Prints a stack trace.

    suspend     Use this to stop execution when a warning occurs.
            You can then attach a debugger to the process.

    trap        Use this while running epiphany in a debugger.
            This makes execution stop and gives back control to
            the debugger.


PROFILING
=========

At execution time, you must enable the profiling service. To enable the
profiling service, set the environment variable: EPHY_PROFILING_MODULES

EPHY_PROFILE_MODULES variable has the form:

    <moduleName>[:<moduleName>]*

moduleName is a filename.
ex: export EPHY_PROFILE_MODULES=ephy-window.c:ephy-autocompletion.c
The special profiling module "all" enables all profiling modules.

Use START_PROFILER STOP_PROFILER macros to profile pieces of code.