on xenial help sign in
added info in CODING file
commit3fead925d5fa4cf1c3e734086621d47fccd8369a authorMichael Zanetti <michael.zanetti@canonical.com> dateWed 6 Jul 2016, 18:10 (10 years ago) parentef98de7
1 file changed+24
CODING+24
CODING+24
@@ -201,3 +201,27 @@ $ PYTHONPATH=../tests/autopilot autopilot3 run unity8.some.very.long.test.name
201201or run them all with
202202
203203$ PYTHONPATH=../tests/autopilot autopilot3 run unity8
204+
205+Debugging techniques
206+====================
207+
208+Unity8 heavily uses Qt and with that Qt debugging techniques mostly apply in the
209+same fashion. There are, however, some additional unity8-specific notes:
210+
211+* Enable/disable Qt scenegraph visualizer on the fly:
212+
213+ $ qdbus com.canonical.Unity8.Debugging /com/canonical/Unity8/Debugging SetSceneGraphVisualizer <mode>
214+
215+ This is equivalent to exporting QSG_VISUALIZE=<mode> before running unity8, except it does it on the
216+ fly.
217+
218+* Toggle slow animations on the fly:
219+
220+ $ qdbus com.canonical.Unity8.Debugging /com/canonical/Unity8/Debugging SetSlowAnimations <true|false>
221+
222+* Change logging filter rules on the fly:
223+
224+ $ qdbus com.canonical.Unity8.Debugging /com/canonical/Unity8/Debugging SetLoggingFilterRules <filter>
225+
226+ This is equivalent to exporting QT_LOGGING_RULES or defining them in QT_LOGGING_CONF, except it does
227+ it on the fly.