# Feature request: self-awareness of developer mode

**URL:** https://discourse.nodered.org/t/feature-request-self-awareness-of-developer-mode/93147
**Category:** FlowFuse
**Created:** [14 November 2024 14:55 UTC](https://discourse.nodered.org/t/feature-request-self-awareness-of-developer-mode/93147 "2024-11-14T14:55:19Z")
**Posts on this page:** 2
**Page:** 1

<div class="post-metadata">

### Author: ![butteronadonut](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/butteronadonut/32/41374_2.png) [@butteronadonut](https://discourse.nodered.org/u/butteronadonut)
#### Post date: [14 November 2024 14:55 UTC](https://discourse.nodered.org/t/feature-request-self-awareness-of-developer-mode/93147/1 "2024-11-14T14:55:19Z")

</div>

_already started via support request, but re-doiing here too_

I'd like my flows to be self-aware of whether it's in Developer Mode or not, specifically so the tests we run can log whether this is the case.

Is there a way to determine this? I'd like to think I could pull a boolean of this from an environmental variable or something, but I can't find anything on this online.

This comes from me wanting to have better awareness of which devices are running in developer mode, as accessed by our production database, not the flowfuse UI. In each 'test' that our NR flows perform, it would be nice to be able to have a flag for whether it is in developer mode or not. We could then do alerting on this and analytics on how many of our tests were done in developer mode and over what time frame, etc. The flowfuse UI only gives a current snapshot, not historical.

This could also allow me to make sure certain flows stop at a certain point if in developer mode, further guarding from running production processes in developer mode accidentally

---

<div class="post-metadata">

### Author: ![knolleary](https://sea2.discourse-cdn.com/flex026/user_avatar/discourse.nodered.org/knolleary/32/3_2.png) [@knolleary](https://discourse.nodered.org/u/knolleary)
#### Post date: [14 November 2024 15:56 UTC](https://discourse.nodered.org/t/feature-request-self-awareness-of-developer-mode/93147/2 "2024-11-14T15:56:07Z")

</div>

Hi @butteronadonut

Thanks for the feedback. There isn't currently a way to do this easily.

A challenge with using env vars is that it requires a restart of Node-RED in order pick any changes. We don't currently restart Node-RED when coming in/out of developer mode - so that would be a disruptive change to how it currently works.

I've raised [Awareness of Developer Mode within Node-RED · Issue #326 · FlowFuse/device-agent · GitHub](https://github.com/FlowFuse/device-agent/issues/326) to capture the request.

Nick
