pub struct DebugOptions {
pub allow_attaching_debugger: bool,
pub inspector_enabled: bool,
pub inspect_wait: bool,
pub deprecated_debug: bool,
pub break_first_line: bool,
pub break_node_first_line: bool,
pub inspect_publish_uid_string: String,
pub inspect_publish_uid: InspectPublishUid,
pub host_port: HostPort,
pub inspect_port_explicit: bool,
}Fields§
§allow_attaching_debugger: bool§inspector_enabled: bool§inspect_wait: bool§deprecated_debug: bool§break_first_line: bool§break_node_first_line: bool§inspect_publish_uid_string: String§inspect_publish_uid: InspectPublishUid§host_port: HostPort§inspect_port_explicit: boolTrue when --inspect-port was explicitly passed. Used to make
process.debugPort reflect the requested port even when the
inspector itself was not enabled, matching Node’s behavior.
Implementations§
Source§impl DebugOptions
impl DebugOptions
pub fn enable_break_first_line(&mut self)
pub fn disable_wait_or_break_first_line(&mut self)
pub fn wait_for_connect(&self) -> bool
pub fn should_break_first_line(&self) -> bool
pub fn check_options(&mut self, errors: &mut Vec<String>)
Trait Implementations§
Source§impl Clone for DebugOptions
impl Clone for DebugOptions
Source§impl Debug for DebugOptions
impl Debug for DebugOptions
Auto Trait Implementations§
impl Freeze for DebugOptions
impl RefUnwindSafe for DebugOptions
impl Send for DebugOptions
impl Sync for DebugOptions
impl Unpin for DebugOptions
impl UnsafeUnpin for DebugOptions
impl UnwindSafe for DebugOptions
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more