jvmti_rs/wrapper/facade/
breakpoint.rs1use crate::{errors::*, Transform, JVMTIFacadeEnv};
2use crate::sys::{jlocation, jmethodID};
3
4impl<'a> JVMTIFacadeEnv<'a> {
5 pub fn set_breakpoint<M>(&self, method: M, location: jlocation) -> Result<()>
6 where
7 M: Transform<'a, jmethodID> {
8 self.jvmti_rust().set_breakpoint(self.jni_rust(), method, location)
9 }
10
11 pub fn clear_breakpoint<M>(&self, method: M, location: jlocation) -> Result<()>
12 where
13 M: Transform<'a, jmethodID> {
14 self.jvmti_rust().clear_breakpoint(self.jni_rust(), method, location)
15 }
16}