---
title: "Discussion on \"BlocObserver: Debug and Observe your Bloc Easily\" | Hashnode"
description: "Discussion on \"BlocObserver: Debug and Observe your Bloc Easily\". Learn how to observe a bloc by simply overriding `onChange`, `onTransition`, `onEvent`,  `onError` methods."
url: "https://hashnode.com/posts/blocobserver-debug-and-observe-your-bloc-easily/6253c5d575dccb6f34320c68"
---

[Feed](https://hashnode.com/feed) /

Discussion

# [BlocObserver: Debug and Observe your Bloc Easily](https://dhruvnakum.xyz/blocobserver-debug-and-observe-your-bloc-easily?utm_source=hashnode&utm_medium=feed)

Learn how to observe a bloc by simply overriding \`onChange\`, \`onTransition\`, \`onEvent\`, \`onError\` methods.

Apr 11, 2022 · 5 min read · dhruvnakum.xyz  
Updated Nov 27, 2022  
Read the article

-   [#flutter](https://hashnode.com/tag/flutter)
-   [#dart](https://hashnode.com/tag/dart)
-   [#debugging](https://hashnode.com/tag/debugging)
-   [#programming-blogs](https://hashnode.com/tag/programming-blogs)
-   [#programming](https://hashnode.com/tag/programming)

## Written by

[Dhruv Nakum](https://hashnode.com/@Dhruv-Nakum)

@Dhruv-Nakum · India

  
[View profile](https://hashnode.com/@Dhruv-Nakum)

Developer 👨‍💻

I'm a mobile/web developer 👨‍💻 who loves to build projects and share valuable tips for programmers Follow me for Flutter, React/Next.js, and other awesome tech-related stuff 😉

## Responses 2

Markdown supported · ⌘↵ to post

[Ovidiu Usvat](https://hashnode.com/@ovidiuusvat)

[Feb 6, 2023](https://hashnode.com/posts/blocobserver-debug-and-observe-your-bloc-easily/6253c5d575dccb6f34320c68/comment/63e0b239bf2ce4a649f5fa5b)

You should update the way you set up the global observer. Now `runZoned` is obsolate. Instead you should use `Bloc.observer = MyGlobalObserver()`

[Omar J](https://hashnode.com/@OmJ7)

[Apr 11, 2022](https://hashnode.com/posts/blocobserver-debug-and-observe-your-bloc-easily/6253c5d575dccb6f34320c68/comment/6254239e6386ed96b050a83c)

thank u so much for all your efforts 😊

[Dhruv Nakum](https://hashnode.com/@Dhruv-Nakum)

[Apr 11, 2022](https://hashnode.com/posts/blocobserver-debug-and-observe-your-bloc-easily/6253c5d575dccb6f34320c68/comment/6254239e6386ed96b050a83c#reply-62543e036386ed96b050ab31)

Thank you Omar, Glad you liked it 🙂
