Skip to content

React-Native 调试工具,支持Console终端、Network导出cURL,可视化Response,Retry cURL。

License

Notifications You must be signed in to change notification settings

itenl/react-native-vdebug

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

react-native-vdebug

NPM Version NPM Downloads install size

React-Native 调试工具

支持情况

  • Command 自定义上下文
  • 复制 cURL 至粘贴板
  • 重新请求 URL
  • 可视化 Response
  • Log 等级分类
  • 关键字过滤 Log / Network
  • Command 历史记录
  • 导出所有 Log / Network (ing...)

Install

Install NodeJS and suggest >= 8.11.0

Usage

npm install 'react-native-vdebug'

import VDebug, { initTrace, setExternalContext } from 'react-native-vdebug';

// Before component Render, perform Proxy Console/Network (Optional)
initTrace()

// Context object when the command is executed (Optional)
setExternalContext('your context')

return <VDebug 
  // Expansion panel (Optional)
  panels={[
    title:'your title',
    component: your component
  ]} 
  // Info panel (Optional)
  info={{ obj: 'your object' }} 
/>

Snapshot





初始版本 / ✶ MIT ✶

About

React-Native 调试工具,支持Console终端、Network导出cURL,可视化Response,Retry cURL。

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published