3 ms·
In theory you could inline assembly "int 3" or the like, but I'm not really aware of anyone doing things like this directly.
by steveklabnik 8y ago
In theory you could inline assembly "int 3" or the like, but I'm not really aware of anyone doing things like this directly.
- simias 8y agoWell 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.