@TraceMethod(action = "toggle", display = "Toggle breakpoint")
	public void toggle_breakpoint(
			@Param(schema = "BreakpointSpec", name = "breakpoint") RmiTraceObject obj) {
		VirtualMachine vm = connector.getJdi().getCurrentVM();
		Object ctxt = getObjectFromPath(obj.getPath());
		if (ctxt instanceof Field field) {
			ModificationWatchpointRequest brkReq = vm.eventRequestManager()
					.createModificationWatchpointRequest(field);
			brkReq.enable();
		}
		if (ctxt instanceof EventRequest req) {
			if (req.isEnabled()) {
				req.disable();
			}
			else {
				req.enable();
			}
		}
		cmds.putBreakpoints();
	}
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