2
edits
(Fixed broken dump properties command, rewrite for easier understanding) |
m (Fix destination of dump properties command (nasal can only write to FGHOME/export)) |
||
Line 85: | Line 85: | ||
To enter the command interactively, select Nasal Console from the Debug menu and enter the command: | To enter the command interactively, select Nasal Console from the Debug menu and enter the command: | ||
<code>io.write_properties(getprop("/sim/fg-home") ~ "/PropTree.xml", "/");</code> | <code>io.write_properties(getprop("/sim/fg-home") ~ "/Export/PropTree.xml", "/");</code> | ||
This will dump the entire property tree, in a file containing more than 50,000 lines | This will dump the entire property tree, in a file containing more than 50,000 lines | ||
Line 91: | Line 91: | ||
We can also dump only part of the property tree. For example, to dump everything in /instrumentation/kma20, we would use this: | We can also dump only part of the property tree. For example, to dump everything in /instrumentation/kma20, we would use this: | ||
<code>io.write_properties(getprop("/sim/fg-home") ~ "/PropTree.xml", "/instrumentation/kma20");</code> | <code>io.write_properties(getprop("/sim/fg-home") ~ "/Export/PropTree.xml", "/instrumentation/kma20");</code> | ||
In addition to debugging, there are other good reasons for doing a dump of portions of the property tree. | In addition to debugging, there are other good reasons for doing a dump of portions of the property tree. |
edits