1、vConsole (体积 286k);
安装: npm install vconsole
;
引入:import VConsole from 'vconsole';
初始化配置:new VConsole({ theme: 'dark' });
2、eruda(体积 454k)
安装: npm install eruda
;
引入:import eruda from 'eruda';
初始化:eruda.init();
缺点:network中不显示websocket 请求和样式表。
3. mdebug(体积1.1M)
安装:npm install mdebug
引入:import mdebug from 'mdebug';
初始化:mdebug.init();
使用优先级: vconsole > eruda > mdebug