Skip to main content

dev_mode_from

Function dev_mode_from 

Source
pub fn dev_mode_from(text: Option<&str>, dev_build: bool) -> bool
Expand description

Dev mode (app:devmode, docs/specs/SPEC_DEV_MODE_SETTING_2026_10_28.md) from the text of settings.json (None: no such file): the key when it is a boolean, otherwise dev_build, whether this is a task dev or debug build. The host checks this before it opens DevTools.