mirror of
https://github.com/vlang/v.git
synced 2023-08-10 21:13:21 +03:00
v: add an -assert aborts/backtraces option to ease debugging
This commit is contained in:
@@ -205,3 +205,13 @@ see also `v help build`.
|
||||
Write all C flags into `file.txt`, one flag per line.
|
||||
If `file.txt` is `-`, then write the flags to stdout, one flag per line.
|
||||
|
||||
-assert aborts
|
||||
Call abort() after an assertion failure. Debuggers usually
|
||||
install signal handlers for SIGABRT, so your program will stop and you
|
||||
will get a backtrace. If you are running your program outside of a
|
||||
debugger, you will most likely get a core dump file.
|
||||
|
||||
-assert backtraces
|
||||
Call print_backtrace() after an assertion failure. Note that
|
||||
backtraces are not implemented yet on all combinations of
|
||||
platform/compiler.
|
||||
|
||||
Reference in New Issue
Block a user