Examples of BreakpointInfo


Examples of com.dci.intellij.dbn.database.common.debug.BreakpointInfo

    public DebuggerRuntimeInfo synchronizeSession(Connection connection) throws SQLException {
        return executeCall(connection, new DebuggerRuntimeInfo(), "synchronize-session");
    }

    public BreakpointInfo addBreakpoint(String programOwner, String programName, String programType, int line, Connection connection) throws SQLException {
        return executeCall(connection, new BreakpointInfo(), "add-breakpoint", programOwner, programName, programType, line + 1);
    }
View Full Code Here

Examples of com.dci.intellij.dbn.database.common.debug.BreakpointInfo

    public DebuggerRuntimeInfo stepOut(Connection connection) throws SQLException {
        return executeCall(connection, new DebuggerRuntimeInfo(), "step-out");
    }

    public DebuggerRuntimeInfo runToPosition(String programOwner, String programName, String programType, int line, Connection connection) throws SQLException {
        BreakpointInfo breakpointInfo = addBreakpoint(programOwner, programName, programType, line, connection);
        DebuggerRuntimeInfo runtimeInfo = stepOut(connection);
        removeBreakpoint(breakpointInfo.getBreakpointId(), connection);
        return runtimeInfo;
    }
View Full Code Here

Examples of com.dci.intellij.dbn.database.common.debug.BreakpointInfo

                                    Icons.DEBUG_INVALID_BREAKPOINT,
                                    "INVALID: " + error);
                        }

                    } else {
                        BreakpointInfo breakpointInfo = debuggerInterface.addBreakpoint(
                                object.getSchema().getName(),
                                object.getName(),
                                object.getObjectType().getName().toUpperCase(),
                                breakpoint.getLine(),
                                debugConnection);

                        String error = breakpointInfo.getError();
                        if (error != null) {
                            session.updateBreakpointPresentation( breakpoint,
                                    Icons.DEBUG_INVALID_BREAKPOINT,
                                    "INVALID: " + error);
                        } else {
                            breakpoint.putUserData(BREAKPOINT_ID_KEY, breakpointInfo.getBreakpointId());

                            if (!breakpoint.isEnabled()) {
                                BreakpointOperationInfo breakpointOperationInfo = debuggerInterface.disableBreakpoint(breakpointInfo.getBreakpointId(), debugConnection);
                                error = breakpointOperationInfo.getError();
                                if (error != null) {
                                    session.updateBreakpointPresentation( breakpoint,
                                            Icons.DEBUG_INVALID_BREAKPOINT,
                                            "INVALID: " + error);
View Full Code Here

Examples of com.google.collide.client.code.debugging.DebuggerApiTypes.BreakpointInfo

    if (result == null) {
      return null;
    }

    final JsonArray<Location> locations = parseBreakpointLocations(result);
    final BreakpointInfo breakpointInfo = parseBreakpointInfo(request);
    final String breakpointId = result.getStringField("breakpointId");

    return new OnBreakpointResolvedResponse() {

      @Override
View Full Code Here

Examples of com.google.collide.client.code.debugging.DebuggerApiTypes.BreakpointInfo

  private static BreakpointInfo parseBreakpointInfo(final Jso json) {
    if (json == null) {
      return null;
    }

    return new BreakpointInfo() {

      @Override
      public String getUrl() {
        return json.getStringField("url");
      }
View Full Code Here

Examples of org.tod.meta.BreakpointInfo

       
        IClassInfo classInfo = event.getOperationBehavior().getDeclaringType();
        String jvmName = classInfo.getJvmName();
        String fullyQualifiedClassName = jvmName.substring(1, jvmName.length() - 1);
        int line = TypeUtils.calculateLineNumber(event.getOperationBehavior(), event.getOperationBytecodeIndex());
        BreakpointInfo breakpoint = this.getTODSession().getJVMHandler().getBreakpoint(fullyQualifiedClassName, line);
        System.out.println("Breakpoint at " + fullyQualifiedClassName + ":" + line + "?");
        return breakpoint != null;
    }
View Full Code Here

Examples of org.tod.meta.BreakpointInfo

     */
    public void clear() {
        Iterator<BreakpointInfo> resolved = this.resolvedBreakpoints.iterator();
        while (resolved.hasNext()) {
            try {
                BreakpointInfo bpi = resolved.next();
                BreakpointRequest bpr = this.infoToRequest.get(bpi);
                if (bpr != null) {
                    bpr.disable();
                }
            } catch (VMDisconnectedException e) {
View Full Code Here

Examples of org.tod.meta.BreakpointInfo

     * Attempt to resolve all currently unresolved breakpoints.
     */
    public void attemptResolveAll() {
        Iterator<BreakpointInfo> breakpoints = this.unresolvedBreakpoints.iterator();
        while (breakpoints.hasNext()) {
            BreakpointInfo bpi = breakpoints.next();
            boolean resolved = attemptResolve(bpi);

            if (resolved) {
                // Remove this breakpoint from the unresolved queue.
                this.resolvedBreakpoints.add(bpi);
View Full Code Here

Examples of org.tod.meta.BreakpointInfo

       
        try {
            Iterator<BreakpointInfo> iterator = this.unresolvedBreakpoints.iterator();
            String fullyQualifiedClassName = ref.name();
            while (iterator.hasNext()) {
                BreakpointInfo bpi = iterator.next();
                if (bpi.getClassInfo().getDotName().equals(fullyQualifiedClassName)) {
                    List<Location> locations;
                    try {
                        locations = ref.locationsOfLine(bpi.getLineNumber());
                        // Set a breakpoint at the first location.
                        if (locations.size() >= 1) {
                            EventRequestManager mgr = vm.eventRequestManager();
                            BreakpointRequest req = mgr.createBreakpointRequest(locations.get(0));
                            req.setSuspendPolicy(EventRequest.SUSPEND_EVENT_THREAD);
                            if (bpi.getCountFilter() != -1) {
                                req.addCountFilter(bpi.getCountFilter());
                            }
                            // TODO: bpi.setThread(...)
                            bpi.setMethodInfo(this.session.getClassInformationProvider().getMethodInfo(req.location().method()));
                            req.enable();
                            this.infoToRequest.put(bpi, req);
                            // This breakpoint has been satisfied. Remove it from
                            // the unsatisfied list.
                            this.resolvedBreakpoints.add(bpi);
View Full Code Here

Examples of org.tod.meta.BreakpointInfo

    public void breakpointEvent(BreakpointEvent e) {
        Iterator<DebugEventListener> listeners = this.session.getEventListeners();
        while (listeners.hasNext()) {
            DebugEventListener listener = listeners.next();
            BreakpointRequest bpr = (BreakpointRequest) e.request();
            BreakpointInfo info = new BreakpointInfo();
            info.setClassInfo(this.session.getClassInformationProvider().getClassInfo(e.location().declaringType()));
            info.setMethodInfo(this.session.getClassInformationProvider().getMethodInfo(e.location().method()));
            info.setLineNumber(e.location().lineNumber());
            ThreadInfo threadInfo = this.session.getThreadTracker().getByReference(e.thread());
            this.session.getThreadTracker().setActiveThread(threadInfo);
            info.setThread(threadInfo);
            listener.breakpointReached(info);
            // TODO
            // Is this a "step into" event, or a real breakpoint?
            //if (this.expectingStepInto) {
            //listener.steppedInto((StateInfo)info);
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.