# minboxdebug

> Small program error monitoring

Latest version **1.0.5** (published 2019-07-22) · ISC license · 0 weekly downloads

## Install

```sh
npm install minboxdebug
pnpm add minboxdebug
yarn add minboxdebug
bun add minboxdebug
```

## Health

**Score 15/100 (F)** — status: abandoned.

Positive: no vulnerabilities.

Warnings: low downloads; no types; no esm support.

Negative: abandoned; low maintenance score.

## Facts

| | |
|---|---|
| Version | 1.0.5 |
| Published | 2019-07-22 |
| First published | 2019-07-22 |
| Weekly downloads | 0 |
| License | ISC |
| TypeScript types | none |
| Module format | CommonJS |
| Dependencies | 0 |
| Unpacked size | 16 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Author | pangda |
| Maintainers | pangda |
| Keywords | debugger, mini program, program |

## Links

- npm: https://www.npmjs.com/package/minboxdebug
- npm.io page: https://npm.io/package/minboxdebug

## Alternatives

- [cli-color](https://npm.io/package/cli-color.md) — 3.4M weekly downloads
- [log](https://npm.io/package/log.md) — 1.3M weekly downloads
- [logstash-client](https://npm.io/package/logstash-client.md) — 4.5K weekly downloads
- [@nocobase/plugin-logger](https://npm.io/package/@nocobase/plugin-logger.md) — 2.0K weekly downloads
- [child-process-debug](https://npm.io/package/child-process-debug.md) — 695 weekly downloads

## Recent versions

- 1.0.5 (latest) — 2019-07-22

## README

# 小程序bug监控工具

	# 安装
	$ npm install minboxdebug --save


## 应用场景

	1、监听线上未知错误

	2、记录错误执行堆栈，更方便重现错误  



## 怎么使用minboxdebug

	1、引入资源

		在app.js中加入，记得放在App对象上面

		#### 固定参数

		import minboxdebug from 'minboxdebug';   // 引用xbossdebug

		minboxdebug.config.key = 'wx74xxxxxxxxx7f' // key为自定义唯一值，用于后端记录时区分应用

		minboxdebug.config.url = 'http://192.168.1.43:8087/log/save'; // 上报服务端地址

		#### 可选参数

		minboxdebug.setSystemInfo = true; // 获取系统信息

		minboxdebug.setUserInfo = true; // 获取用户信息

		minboxdebug.setLocation = true; // 获取用户位置信息


	2、测试是否正常使用
		App({
		  onLaunch: function () {
		    minboxdebug.notifyError('error')
		  }
		})

	3、控制台查看network，如果看到一个指向你配置url的请求，那就成功了。

---
_Source: https://npm.io/package/minboxdebug · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
