diff --git a/src/daemon.rs b/src/daemon.rs index 384e7582..08a8cf59 100644 --- a/src/daemon.rs +++ b/src/daemon.rs @@ -117,7 +117,13 @@ impl Daemon

{ where Self: 'static, { - Ok(shell::run(self.raw, self.settings, None)?) + #[cfg(feature = "debug")] + let program = iced_devtools::attach(self.raw); + + #[cfg(not(feature = "debug"))] + let program = self.raw; + + Ok(shell::run(program, self.settings, None)?) } /// Sets the [`Settings`] that will be used to run the [`Daemon`].