add switcher to debug;add setPrefix method;update test.html