All Projects → tnfe → mdebug

tnfe / mdebug

Licence: MIT license
基于React开发的新一代web调试工具,支持React组件调试,类似于Chrome Devtools。A Lightweight, Easy To Extend Web Debugging Tool Build With React

Programming Languages

javascript
184084 projects - #8 most used programming language
CSS
56736 projects
HTML
75241 projects

Projects that are alternatives of or similar to mdebug

InAppDevTools
Android library with a collection of tools for debugging, inspecting and reporting from within your own app
Stars: ✭ 26 (-89.03%)
Mutual labels:  inspector, devtools
devtools-highlighter
DevTools extension that finds and highlights elements in the page
Stars: ✭ 29 (-87.76%)
Mutual labels:  inspector, devtools
Fiddler-FPlug
Fiddler Plug,Provide Host Mapping、File Mapping、Header Replace、Https to Http、ServerIP、Disable Cache、vConsole、Console Log、JS Inject
Stars: ✭ 30 (-87.34%)
Mutual labels:  devtools, vconsole
Nim
Streamline Your Node.js Debugging Workflow with Chromium (Chrome, Edge, More) DevTools.
Stars: ✭ 168 (-29.11%)
Mutual labels:  inspector, devtools
Ply
CSS inspection aided by visual regression pruning
Stars: ✭ 370 (+56.12%)
Mutual labels:  inspector, devtools
Smart-Inspector
Fluent re-take on Unity Inspector UX. Packed with QoL improvements.
Stars: ✭ 680 (+186.92%)
Mutual labels:  inspector, tabs
prosemirror-dev-toolkit
Injectable developer tools for ProseMirror rich-text editors implemented in Svelte and TypeScript.
Stars: ✭ 44 (-81.43%)
Mutual labels:  inspector, devtools
Rawkit
🦊 Immediately Open Chrome DevTools when debugging Node.js apps
Stars: ✭ 306 (+29.11%)
Mutual labels:  inspector, devtools
React Inspect Props
React properties inspector with the power of Redux DevTools
Stars: ✭ 31 (-86.92%)
Mutual labels:  inspector, devtools
Portal
A clojure tool to navigate through your data.
Stars: ✭ 239 (+0.84%)
Mutual labels:  inspector, devtools
flipper-plugin-relay-devtools
Flipper plugin for Relay devtools
Stars: ✭ 26 (-89.03%)
Mutual labels:  devtools
Vue-music-
🎧Vue全家桶打造的QQ音乐
Stars: ✭ 51 (-78.48%)
Mutual labels:  vconsole
cosyTabs
SIMBL plug-in for Safari. Now with macOS Sierra/Safari 10 support. Small tabs like they used to be back in the day.
Stars: ✭ 44 (-81.43%)
Mutual labels:  tabs
ngx-tabset
A very simple library to let you create some tabs
Stars: ✭ 19 (-91.98%)
Mutual labels:  tabs
react-native-segment-control
Swipeable SegmentedControl component for React Native apps
Stars: ✭ 21 (-91.14%)
Mutual labels:  tabs
reason-cookie
A simple way to use cookies in Reason (OCaml) on the frontend. 🍪
Stars: ✭ 18 (-92.41%)
Mutual labels:  cookie
privera
Use the tools you know. Respect users' privacy. Forget cookie consents. Comply with GDPR, ePrivacy, COPPA, CalOPPA, PECR, PIPEDA, CASL; you name it.
Stars: ✭ 23 (-90.3%)
Mutual labels:  cookie
exlcode
EXLcode - VS Code-based Online IDE
Stars: ✭ 42 (-82.28%)
Mutual labels:  devtools
react-render-tracker
React render tracker – a tool to discover performance issues related to unintentional re-renders and unmounts
Stars: ✭ 1,954 (+724.47%)
Mutual labels:  devtools
nanoinit
A small, proper, init process for docker containers.
Stars: ✭ 43 (-81.86%)
Mutual labels:  devtools

English | 简体中文

基于React开发的移动web调试工具 更新日志

简单易用

功能全面

易扩展

高性能

使用cdn方式,一键接入 类Chrome devtools, 内嵌React开发者工具,支持日志,网络,元素,代理,存储,性能等, 具有更好的网络捕获能力和丰富的日志展现形式 暴露内部丰富的事件, 可以和react组件无缝进行集成 支持大数据量展示, 不卡顿
NPM Version PRs Node Version

一、快速体验

https://ihtml5.github.io/mdebug

image

二、Examples

  • Vanilla

Edit crimson-sun-py8x7

三、安装

Install using npm

npm install mdebug --save

四、使用

1. ES6

  import mdebug from 'mdebug';
  mdebug.init();

2.CDN

(function() {
    var scp = document.createElement('script');
    // 加载最新的mdebug版本
    scp.src = 'https://unpkg.com/mdebug@latest/dist/index.js';
    scp.async = true;
    scp.charset = 'utf-8';
    // 加载成功并初始化
    scp.onload = function() {
        mdebug.init();
    };
    // 加载状态切换回调
    scp.onreadystate = function() {};
    // 加载失败回调 
    scp.onerror = function() {};
    document.getElementsByTagName('head')[0].appendChild(scp);
})();

五、API

1. init

mdebug.init({
    containerId: '' // mdebug挂载容器id, 如果传空, 内部会自动生成一个不重复的id,
    plugins: [], // 传入mdebug插件
    hideToolbar: [], // 传入需要隐藏的tab id
});

2. addPlugin

mdebug.addPlugin({
    id: '', // tab id
    name: '', // tab对应的中文title,
    enName: '', // tab对应的英文title
    component: () => {}, // tab对应的react组件
});

3. removePlugin

// 支持移除的panel对应的id
/*
System => system;
Elements => elements;
Console => console
Application => application
NetWork => network
Performance => performance
Settings => settings
*/
mdebug.removePlugin([]);

4. exportLog

/*
@returned {
  type: '' // 日志类型
  source: [], // 原始日志
}
@params type
// type等于log, 返回所有的console日志
// type等于net, 返回所有的net日志
*/
mdebug.exportLog(type);

5. on

mdebug.on(eventName, callback);

6. emit

mdebug.emit(eventName, data);

六、事件列表

事件名称 数据 触发时机
ready object mdebug加载完毕
addTab object 增加面板
removeTab array 移除面板
changeTab object 面板切换

七、开发

  1. npm i
  2. npm start // 启动开发
  3. npm run build //打包
  4. npm run test // 单元测试

八、相关文章

  1. 移动端前端开发调试
  2. Chrome 开发者工具

九、相关项目

  1. eruda
  2. vConsole
  3. react-json-tree
  4. 基于React的移动端调试解决方案
  5. a useful debugger for mobile
  6. autoDevTools
  7. react-inspector
  8. web-console
  9. ChromeDevTools

十、License

The MIT License (MIT). Please see License File for more information.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].