Add 'debug info' switch in preference