]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
dwatch(1): Add `-dev' option to aid debugging of profiles
authorDevin Teske <dteske@FreeBSD.org>
Sun, 22 Apr 2018 02:20:17 +0000 (02:20 +0000)
committerDevin Teske <dteske@FreeBSD.org>
Sun, 22 Apr 2018 02:20:17 +0000 (02:20 +0000)
commitbcce9a2b33a8e9187a63f435726a7a801e89f326
treee70d1f3b731bf0408328a7fa8ec283f394e44ba4
parentbd674818334166efa698c71952d913e8ab350405
dwatch(1): Add `-dev' option to aid debugging of profiles

The options `-d' (debug), `-e' (exit after compile), and `-v' (verbose)
when combined in any order (though best remembered as `-dev') will run
the conflated script through dtrace(1), test for error conditions, and
show the line that dtrace(1) failed at (with context).

If no errors are found, the output is the same as `-e[v]'.

When writing a new profile for dwatch(1), you can quickly test to
make sure it compiles by running `dwatch -devX profile_name' where
profiles live in /usr/libexec/dwatch or /usr/local/libexec/dwatch
(the latter being where profiles installed via ports should go).

Sponsored by: Smule, Inc.
cddl/usr.sbin/dwatch/dwatch