Skip to main content

trap

Function trap 

Source
pub fn trap()
Expand description

Raises a debugger breakpoint on supported build targets.

Builds with core_intrinsics use the compiler breakpoint intrinsic, while x86_64 builds use int3 as a fallback. Other targets perform no operation without intrinsic support.