Forum Discussion

vaxace's avatar
vaxace
Binge Watcher
16 years ago

Determining published versus developer mode

Is there a reliable way to determine, from within BrightScript, whether the application is running in developer mode?

2 Replies

  • renojim's avatar
    renojim
    Community Streaming Expert
    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
  • vaxace's avatar
    vaxace
    Binge Watcher
    Hmm. Interesting take.

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

    D.