@TraceMethod(action = "toggle", display = "Toggle event")
	public void toggle_event(@Param(schema = "Event", name = "event") RmiTraceObject obj) {
		Object ctxt = getObjectFromPath(obj.getPath());
		if (ctxt instanceof EventRequest req) {
			if (req.isEnabled()) {
				req.disable();
			}
			else {
				req.enable();
			}
			cmds.putEvents();
		}
	}
NB: For the VirtualMachine, the step methods add requests for break-on-step for all threads.
These requests will remain pending until the VM is resumed.
Ghidra/Debug/Debugger-jpda/src/main/java/ghidra/dbg/jdi/rmi/jpda/JdiMethods.java