Fundebug-javascript is a client-side library designed for real-time error monitoring of JavaScript applications, enabling developers to quickly detect and diagnose issues impacting user experience. The current stable version is 2.8.8, last published in March 2023. While its core functionality has been stable, updates have historically addressed browser compatibility, added new features like performance metrics, and improved TypeScript support. Key differentiators include automatic capture of various frontend errors (JavaScript execution, resource loading, HTTP requests), support for Source Map restoration, recording of user behavior (clicks, HTTP requests, page navigation, console logs), and a 'screen recording' feature to visually re-create error scenarios, aiding rapid debugging and issue reproduction. It's primarily used for web and frontend applications, with companion libraries for specific frameworks like Vue.js and environments like WeChat Mini Programs.
npm install fundebug-javascriptVerified import paths — ran on the pinned version, not inferred.
This quickstart demonstrates how to initialize Fundebug with an API key and custom metadata, simulate both uncaught and caught errors, and highlight optional data collection settings.
Replace direct property assignments with calls to `fundebug.init({ apikey: 'YOUR_APIKEY', ...otherOptions })`.Use environment variables for the API key (e.g., `process.env.FUNDEBUG_API_KEY`) and ensure they are securely managed by your build process or server configuration.
Carefully review Fundebug's configuration options and data collection policies. Ensure that options collecting sensitive data (e.g., `monitorHttpBody`) are only enabled when necessary and in compliance with privacy regulations (GDPR, CCPA) and your organization's policies.
Ensure consistent module usage (either all ESM or all CJS) across your project. If you must mix, use dynamic `import()` in CJS for ESM modules, or use `import * as` for CJS modules in an ESM context, and ensure your bundler (Webpack, Rollup, Vite) is configured for dual-mode support if applicable.
Ensure you are using the correct import statement for your module system (e.g., `import * as fundebug from 'fundebug-javascript';` for ESM) and that the script is loaded before any calls to `fundebug` functions. For older browsers, ensure the CDN script tag is placed appropriately.
Upgrade `fundebug-javascript` to version 2.0.0 or higher. Verify your import statement: `import * as fundebug from 'fundebug-javascript';` is recommended. If using a CDN, ensure you're referencing a modern version of the script.
Call `fundebug.init({ apikey: 'YOUR_APIKEY' })` with a valid API key obtained from your Fundebug account. Ensure the key is a string and that there are no typos.No dependency data recorded yet.