MCPcopy Index your code
hub / github.com/RustPython/RustPython / breakpoint

Function breakpoint

crates/vm/src/stdlib/builtins.rs:663–671  ·  view source on GitHub ↗
(args: FuncArgs, vm: &VirtualMachine)

Source from the content-addressed store, hash-verified

661
662 #[pyfunction]
663 fn breakpoint(args: FuncArgs, vm: &VirtualMachine) -> PyResult {
664 match vm
665 .sys_module
666 .get_attr(vm.ctx.intern_str("breakpointhook"), vm)
667 {
668 Ok(hook) => hook.as_ref().call(args, vm),
669 Err(_) => Err(vm.new_runtime_error("lost sys.breakpointhook")),
670 }
671 }
672
673 #[pyfunction]
674 fn hex(number: ArgIndex) -> String {

Calls 5

intern_strMethod · 0.80
ErrClass · 0.50
get_attrMethod · 0.45
callMethod · 0.45
as_refMethod · 0.45