]> git.mxchange.org Git - flightgear.git/commit
Added --trace-read=<property> and --trace-write=<property> options.
authordavid <david>
Wed, 12 Dec 2001 03:49:48 +0000 (03:49 +0000)
committerdavid <david>
Wed, 12 Dec 2001 03:49:48 +0000 (03:49 +0000)
commit18b1b4f7af07f6646c44fe578f86058df3833b71
tree65729611083dcc976787373587a36760c381a1e9
parent2f66d0129872f625c0128fd3b8d7d86df786b68b
Added --trace-read=<property> and --trace-write=<property> options.
These will log trace messages whenever a specific property value is
read or written through the property manager.  They do not cause
FlightGear to poll bound values, so if a class variable that is bound
is changed directly, no trace message will be displayed.

These options are also useful in conjunction with a debugger.
--trace-read will cause the private SimGear SGPropertyNode::trace_read
method to be invoked, and --trace-write will cause the private SimGear
SGPropertyNode::trace_write method to be invoked; in a debugger
session, a user can set breakpoints on these methods then get a
backtrace to see what specific points in the code are reading or
writing properties.
src/Main/options.cxx