diff options
author | Xavi Artigas <xavierartigas@yahoo.es> | 2018-06-14 02:40:40 -0700 |
---|---|---|
committer | apache <apache@e5-web1.enlightenment.org> | 2018-06-14 02:40:40 -0700 |
commit | 0f2940cecf172bd54e49e7a64a6b2fd3369a18f6 (patch) | |
tree | 7c66b8d3b06912de6e44f1aacbd7ef8c1dbcae9d /pages | |
parent | b40064144552064932614386691cc15bdaeb6028 (diff) |
Wiki page efl-debug.md changed with summary [Updated EINA_LOG_ABORT usage] by Xavi Artigas
Diffstat (limited to 'pages')
-rw-r--r-- | pages/contrib/efl-debug.md.txt | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/pages/contrib/efl-debug.md.txt b/pages/contrib/efl-debug.md.txt index cbd35f887..7af040857 100644 --- a/pages/contrib/efl-debug.md.txt +++ b/pages/contrib/efl-debug.md.txt | |||
@@ -127,13 +127,17 @@ EINA_LOG_LEVEL=3 EINA_LOG_LEVELS_GLOB=eina_*:0 myapp | |||
127 | 127 | ||
128 | This will prevent ``eina_log`` from outputting internal ``eina`` code, thus allowing you to see your own domain messages more easily. | 128 | This will prevent ``eina_log`` from outputting internal ``eina`` code, thus allowing you to see your own domain messages more easily. |
129 | 129 | ||
130 | You may also want to enforce crashes when errors occur: ``EINA_ERROR_ABORT` will do this: | 130 | You may also want to enforce crashes when errors occur: `EINA_LOG_ABORT` will do this: |
131 | 131 | ||
132 | ```bash | 132 | ```bash |
133 | EINA_ERROR_ABORT=1 gdb myapp | 133 | EINA_LOG_ABORT=1 gdb myapp |
134 | ``` | 134 | ``` |
135 | 135 | ||
136 | This will now cause the program to abort when it encounters an error of the set level or above, allowing you to poke around with GDB and see why this is happening. | 136 | This will now cause the program to abort when it encounters a CRITICAL, allowing you to poke around with `gdb` and see why this is happening. To abort on other error levels use `EINA_LOG_ABORT_LEVEL`. For instance, to abort on all WARNINGS and above (this is, ERRORS and CRITICALS) use: |
137 | |||
138 | ```bash | ||
139 | EINA_LOG_ABORT=1 EINA_LOG_ABORT_LEVEL=2 gdb myapp | ||
140 | ``` | ||
137 | 141 | ||
138 | ## Debugging Tools ## | 142 | ## Debugging Tools ## |
139 | 143 | ||