本文整理汇总了Java中com.sun.jdi.request.EventRequestManager.deleteEventRequest方法的典型用法代码示例。如果您正苦于以下问题:Java EventRequestManager.deleteEventRequest方法的具体用法?Java EventRequestManager.deleteEventRequest怎么用?Java EventRequestManager.deleteEventRequest使用的例子?那么, 这里精选的方法代码示例或许可以为您提供帮助。您也可以进一步了解该方法所在类com.sun.jdi.request.EventRequestManager
的用法示例。
在下文中一共展示了EventRequestManager.deleteEventRequest方法的5个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: deleteBreakpoint
import com.sun.jdi.request.EventRequestManager; //导入方法依赖的package包/类
@Override
public void deleteBreakpoint(Location location) throws DebuggerException {
final String className = debuggerUtil.findFqnByPosition(location);
final int lineNumber = location.getLineNumber();
EventRequestManager requestManager = getEventManager();
List<BreakpointRequest> snapshot = new ArrayList<>(requestManager.breakpointRequests());
for (BreakpointRequest breakpointRequest : snapshot) {
com.sun.jdi.Location jdiLocation = breakpointRequest.location();
if (jdiLocation.declaringType().name().equals(className)
&& jdiLocation.lineNumber() == lineNumber) {
requestManager.deleteEventRequest(breakpointRequest);
LOG.debug("Delete breakpoint: {}", location);
}
}
List<Breakpoint> defferedByClass = deferredBreakpoints.get(className);
if (defferedByClass != null) {
defferedByClass.removeIf(
breakpoint -> {
Location l = breakpoint.getLocation();
return l.getLineNumber() == location.getLineNumber()
&& l.getTarget().equals(location.getTarget());
});
}
}
示例2: removeRequest
import com.sun.jdi.request.EventRequestManager; //导入方法依赖的package包/类
protected void removeRequest()
{
final EventRequestManager manager = owner.getEventRequestManager();
if (manager != null && request != null)
{
try
{
owner.removeJDIEventListener(this, request);
manager.deleteEventRequest(request);
request = null;
}
catch (final RuntimeException e)
{
JiveDebugPlugin.log(e);
}
}
}
示例3: removeRequest
import com.sun.jdi.request.EventRequestManager; //导入方法依赖的package包/类
protected void removeRequest()
{
final EventRequestManager manager = getEventRequestManager();
if (manager != null && stepRequest != null)
{
try
{
removeJDIEventListener(this, stepRequest);
manager.deleteEventRequest(stepRequest);
stepRequest = null;
}
catch (final RuntimeException e)
{
logError(e);
}
}
}
示例4: deleteEventRequestSafely
import com.sun.jdi.request.EventRequestManager; //导入方法依赖的package包/类
/**
* Remove the event request from the vm. If the vm has terminated, do nothing.
* @param eventManager
* The event request manager.
* @param request
* The target event request.
*/
public static void deleteEventRequestSafely(EventRequestManager eventManager, EventRequest request) {
try {
eventManager.deleteEventRequest(request);
} catch (VMDisconnectedException ex) {
// ignore.
}
}
示例5: deleteEventRequest
import com.sun.jdi.request.EventRequestManager; //导入方法依赖的package包/类
private void deleteEventRequest(EventRequestManager manager,
MethodEntryRequest request) {
manager.deleteEventRequest(request);
}