The shorter the code, the better!

We have released the Fundebug-vue plug-in, which simplifies the code for the VUE framework to access Fundebug.

How does Vue access Fundebug

1. Installfundebug-javascriptwithfundebug-vue

npm install fundebug-javascript fundebug-vue
Copy the code

2. The configuration

import * as fundebug from "fundebug-javascript";
import fundebugVue from "fundebug-vue";
fundebug.apikey = "YOUR-APIKEY";
fundebugVue(fundebug, Vue);
Copy the code

Obtaining the ApiKey requires a free account registration and project creation.

aboutfundebug-vue

Fundebug -vue is very simple, just configure vue errorHandler, the source code is only 40 lines, but it can simplify the vue framework to access fundebug code. Using fundebug-vue saves 38 lines of code compared to configuring errorHandler directly!

Also, since Fundebug needs to support a variety of front-end frameworks, developing separate plug-ins for each framework makes maintenance easier and reduces the size of the FunDEBUg-javascript plug-in. We will continue to release other front-end frameworks such as React and Angular plug-ins.

reference

  • Fundebug documentation: Monitor vue.js