<?xml version="1.0" encoding="UTF-8"?><rss xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:atom="http://www.w3.org/2005/Atom" version="2.0" xmlns:cc="http://cyber.law.harvard.edu/rss/creativeCommonsRssModule.html">
    <channel>
        <title><![CDATA[Stories by Shivangi on Medium]]></title>
        <description><![CDATA[Stories by Shivangi on Medium]]></description>
        <link>https://medium.com/@shivangi1101?source=rss-00475d60bf4c------2</link>
        <image>
            <url>https://cdn-images-1.medium.com/fit/c/150/150/1*P6ilw-btFRHpI5unPqQVPw.png</url>
            <title>Stories by Shivangi on Medium</title>
            <link>https://medium.com/@shivangi1101?source=rss-00475d60bf4c------2</link>
        </image>
        <generator>Medium</generator>
        <lastBuildDate>Sun, 06 Dec 2026 01:56:39 GMT</lastBuildDate>
        <atom:link href="https://medium.com/@shivangi1101/feed" rel="self" type="application/rss+xml"/>
        <webMaster><![CDATA[yourfriends@medium.com]]></webMaster>
        <atom:link href="http://medium.superfeedr.com/" rel="hub"/>
        <item>
            <title><![CDATA[BugBubble : In-App Debugger Tool for React Native]]></title>
            <link>https://engineering.lokalapps.com/bugbubble-in-app-debugger-tool-for-react-native-7350e2f59751?source=rss-00475d60bf4c------2</link>
            <guid isPermaLink="false">https://medium.com/p/7350e2f59751</guid>
            <category><![CDATA[software-engineering]]></category>
            <category><![CDATA[debugging]]></category>
            <category><![CDATA[javascript]]></category>
            <category><![CDATA[mobile-app-development]]></category>
            <category><![CDATA[react-native]]></category>
            <dc:creator><![CDATA[Shivangi]]></dc:creator>
            <pubDate>Tue, 16 Dec 2025 12:27:03 GMT</pubDate>
            <atom:updated>2025-12-16T12:27:03.004Z</atom:updated>
            <content:encoded><![CDATA[<h3>BugBubble : In-App Debugger Tool for React Native</h3><p><em>A unified inspector that consolidates Analytics, Network, WebSockets, and Console logs.</em></p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*fsdzmb1oJw9A3DBmX4ZH1w.png" /></figure><p>Debugging a React Native app can quickly turn into guesswork. You bounce between the simulator, dev tools, and terminal logs just to understand what went wrong.</p><p>Then comes a bug in a Release Build - where none of your usual tools are available - leaving you to debug in the dark.</p><p>BugBubble removes that friction by giving you in-app visibility where you need it most.</p><figure><img alt="BugBubble in action: Inspecting instantly within the app." src="https://cdn-images-1.medium.com/max/400/1*45A8IQe_9f1KNA02rEMEag.gif" /><figcaption>BugBubble in action: Inspecting instantly within the app.</figcaption></figure><h3>What is BugBubble?</h3><p><strong>BugBubble</strong> (<a href="https://www.npmjs.com/package/@lokal-dev/react-native-bugbubble">@lokal-dev/react-native-bugbubble</a>) is an in-app debugging tool for React Native applications. It&#39;s a floating button that opens a searchable debugger interface where you can monitor:</p><ul><li><strong>Network Requests : </strong>All HTTP/HTTPS requests with headers, bodies, and response times</li><li><strong>WebSocket Events</strong> : Real-time WebSocket connections, messages, and errors</li><li><strong>Console Logs</strong> : All console output (log, debug, info, warn, error)</li><li><strong>Analytics Events</strong> : Custom analytics events with properties</li></ul><p>BugBubble brings all of this monitoring directly into your app through a simple, in-app interface, automatically capturing network, web socket, and console logs, while analytics events are logged explicitly using a simple one-line API (examples below).</p><h3>Quick Start</h3><p>BugBubble is designed to be plug-and-play. You only need to do this:</p><p><strong>Step 1 — Install</strong></p><pre>npm install @lokal-dev/react-native-bugbubble<br># or <br>yarn add @lokal-dev/react-native-bugbubble<br># or<br>pnpm add @lokal-dev/react-native-bugbubble</pre><p><strong>Step 2 — Add it to your root component</strong></p><pre>import { BugBubble } from &#39;@lokal-dev/react-native-bugbubble&#39;;<br><br>export default function App() {<br>  return (<br>    &lt;&gt;<br>      &lt;YourAppContent /&gt;<br>      &lt;BugBubble /&gt;<br>    &lt;/&gt;<br>  );<br>}</pre><p><strong>Step 3 — Start debugging<br></strong>Run your app. A floating bubble will appear — tap it to open the debugger or drag it anywhere on the screen.</p><h3>Why We Built BugBubble?</h3><p>The React Native ecosystem already has powerful tools like React DevTools, Flipper, Avo, and various analytics and monitoring platforms. We use them too.</p><p>But while shipping real-world apps, we kept hitting the same friction.</p><p>To inspect <strong>network requests, console logs, web sockets and analytics in one place - especially in release builds - </strong>we had to install <strong>multiple libraries</strong>, wire them together manually, and add extra logic just to make them work outside development environment.</p><p>Worse, when the same setup was needed in another project, we had to repeat the <strong>exact same work</strong> all over again - installing dependencies, consolidating logs, and re-validating everything. It was time-consuming, error-prone, and easy to get out of sync.</p><p>What we really wanted was something simpler: <strong>a single, in-app inspector</strong> that just works. That gap is why we built BugBubble - a solution that works seamlessly with both Expo and React Native CLI.</p><p>Once we were clear about the problem, a few design decisions became non-negotiable.</p><h3>Design Decisions Behind BugBubble</h3><h4>Zero Transitive Dependencies</h4><p>BugBubble is written in pure TypeScript/JavaScript and depends only on React Native. We intentionally avoided adding transitive dependencies to keep the tool lightweight, predictable, and free from dependency conflicts or bundle size bloat.</p><h4>Works in Release Builds</h4><p>BugBubble is designed to work in both debug and release builds from day one. This makes it easier to debug production-like issues and enables independent testing for QA and Product teams.</p><h4>Built for Teams, Not Just Developers</h4><p>When something breaks, the first question is always: <strong><em>“Is this frontend or backend?”</em></strong></p><p>BugBubble makes that answer obvious by showing exactly what request was sent and what response came back - including headers, body, and status code - with the option to share requests as cURL commands. This reduces back-and-forth and speeds up issue triage.</p><h4>Zero Configuration by Default</h4><p>If a debugging tool needs setup, it often doesn’t get used.</p><p>BugBubble is designed to be plug-and-play. Add the component, run the app, and it works. Configuration is available when you need it,<strong> but it’s never required to get started</strong>.</p><h3>Advanced Configuration</h3><p>You can control when the debugger is enabled and what logs it collects.</p><pre>&lt;BugBubble<br>  config={{<br>    trackingOptions: {<br>      // You can customise the below conditions based on your usecase<br>      enabled: Env !== &#39;production&#39;//determine when to enable the tracker<br>    },<br>  }}<br>/&gt;</pre><p>You can also customise max logs, initial position, and enabled tracking types.</p><pre>&lt;BugBubble<br>  config={{<br>    maxLogs: 500, // you can specify the max log count to store<br>    floatingButtonPosition: {<br>      top: 150,<br>      right: 30,<br>    },<br>    trackingOptions: {<br>      enabled: true,<br>      options: {<br>        network: true,<br>        websocket: true,<br>        console: true,<br>        analytics: false, // Turn off analytics if you don&#39;t need it<br>      },<br>    },<br>  }}<br>/&gt;</pre><h3>Key Features Explained</h3><h4>1. Automatic Interception</h4><p>Under the hood, network requests, web socket events, and console logs are captured automatically. Add BugBubble to an existing app and you’ll immediately start seeing logs - no code changes needed. Analytics events, on the other hand, are logged explicitly using BugBubble’s API, which is explained in the next section.</p><h4>2. Explicit Logging API</h4><p>Need more control? BugBubble gives you an explicit logging API, which is essential for manually logging custom events or non-standard network operations:</p><pre>import { BugBubbleLogger } from &#39;@lokal-dev/react-native-bugbubble&#39;;<br><br>// Log analytics events<br>BugBubbleLogger.logAnalytics(&#39;user_login&#39;, {<br>  userId: &#39;123&#39;,<br>  method: &#39;email&#39;,<br>  timestamp: Date.now(),<br>});<br><br>// Log network requests manually (if you need to)<br>BugBubbleLogger.logNetwork(<br>  &#39;POST&#39;,<br>  &#39;https://api.example.com/users&#39;,<br>  201,<br>  requestHeaders,<br>  responseHeaders,<br>  requestBody,<br>  responseBody,<br>  150 // duration in ms<br>);<br><br>// Log WebSocket events manually<br>BugBubbleLogger.logWebSocket(&#39;message&#39;, &#39;wss://api.example.com/ws&#39;, {<br>  type: &#39;ping&#39;,<br>  data: &#39;hello&#39;,<br>});<br><br>// Log console messages explicitly<br>BugBubbleLogger.logConsole(&#39;error&#39;, &#39;Failed to fetch data&#39;, error);</pre><h4>3. Selective Tracking</h4><p>When you disable a log type in the configuration (e.g., setting analytics: false):</p><ul><li>The corresponding tab disappears.</li><li>The interceptor doesn’t start, which saves resources.</li><li>No logs are collected for that type.</li></ul><h3>How It Works: Under the Hood</h3><p>BugBubble uses an interceptor pattern to capture everything.</p><figure><img alt="" src="https://cdn-images-1.medium.com/max/1024/1*l1UJW9pBMJFItfGceqSJlg.png" /></figure><ul><li><strong>Network Interception:</strong> The NetworkInterceptor wraps the global fetch API and XMLHttpRequest to catch all network traffic.</li><li><strong>WebSocket Interception:</strong> The WebSocketInterceptor wraps the native WebSocket class to catch all connection events and messages.</li><li><strong>Console Interception:</strong> The ConsoleInterceptor wraps all console methods (log, debug, info, warn, error) to capture output while still letting it reach the original console.</li></ul><h3>Conclusion</h3><p>With BugBubble, you get a faster, more contextual debugging workflow:</p><ul><li><strong>Zero-configuration setup</strong> : Works out of the box</li><li><strong>Real-time monitoring : </strong>See logs as they happen</li><li><strong>Comprehensive coverage : </strong>Network, WebSocket, Console, and Analytics</li></ul><h3>Try It Today</h3><p>Add &lt;BugBubble /&gt; to your app and start debugging with ease. No more <strong>&quot;works on my machine&quot;</strong> excuses! 💁</p><p><strong>Resources:</strong></p><ul><li><a href="https://www.npmjs.com/package/@lokal-dev/react-native-bugbubble">npm package</a></li><li><a href="https://github.com/lokal-app/react-native-bugbubble">GitHub repository</a></li><li><a href="https://github.com/lokal-app/react-native-bugbubble#readme">Full documentation</a></li></ul><p><em>We’re always looking to make the developer experience even better. If you have suggestions - whether it’s improvements to the UI of the tool, new tracking types to include, any additional config support to add, or ways to make logging smoother - we’d love to hear from you. Encountered any issues? Open an issue on GitHub.</em></p><p><em>Happy debugging! 🐛✨</em></p><img src="https://medium.com/_/stat?event=post.clientViewed&referrerSource=full_rss&postId=7350e2f59751" width="1" height="1" alt=""><hr><p><a href="https://engineering.lokalapps.com/bugbubble-in-app-debugger-tool-for-react-native-7350e2f59751">BugBubble : In-App Debugger Tool for React Native</a> was originally published in <a href="https://engineering.lokalapps.com/">Lokal — Developement &amp; Engineering Blog</a> on Medium, where people are continuing the conversation by highlighting and responding to this story.</p>]]></content:encoded>
        </item>
    </channel>
</rss>