Re:Rust 1.32 released
by steveklabnik on Thursday January 17, 2019 @03:20PM
(#18934228)
In theory you could inline assembly "int 3" or the like, but I'm not really aware of anyone doing things like this directly.
[ Parent
| on HN ]
Well for "regular" code if you want a breakpoint it makes more sense to use the debugger anyway. If you generate machine code however (for a JIT for instance) it's definitely a useful trick since adding debugger support for generated code, while possible, is often pretty tricky and non-portable.