Roku Developer Program

Join our online forum to talk to Roku developers and fellow channel creators. Ask questions, share tips with the community, and find helpful resources.
cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
vaxace
Binge Watcher

Determining published versus developer mode

Is there a reliable way to determine, from within BrightScript, whether the application is running in developer mode?
0 Kudos
2 REPLIES 2
renojim
Community Streaming Expert

Re: Determining published versus developer mode

Interesting question. You could use the registry for this, but you have to initialize a value with a published channel first. Then when you try to read that value in developer mode, it won't exist. I have several small private published apps for a similar purpose so I can set a debugging level value in the registry that my published channel reads and then sends information to my local server if the channel is running on one of my boxes (not that anyone else could possibly set the debugging level in "my" registry). Of course this kind of thing is only for my own boxes, but there's no way anyone else could run my app in developer mode (i.e., if it's not my box, it can't be developer mode).

-JT
Roku Community Streaming Expert

Help others find this answer and click "Accept as Solution."
If you appreciate my answer, maybe give me a Kudo.

I am not a Roku employee.
0 Kudos
vaxace
Binge Watcher

Re: Determining published versus developer mode

Hmm. Interesting take.

I was hoping for something along the lines of "am I running from a zip or a pkg?"

D.
0 Kudos