Package com.dci.intellij.dbn.database

Examples of com.dci.intellij.dbn.database.DatabaseDebuggerInterface


    @Override
    public void reset() {
        getMetadataInterface().reset();
        getDDLInterface().reset();
        DatabaseDebuggerInterface debuggerInterface = getDebuggerInterface();
        if (debuggerInterface != null) debuggerInterface.reset();
    }
View Full Code Here


                try {
                    targetConnection = connectionHandler.getPoolConnection(executionInput.getExecutionSchema());
                    targetConnection.setAutoCommit(false);
                    debugConnection = connectionHandler.getPoolConnection();

                    DatabaseDebuggerInterface debuggerInterface = getDebuggerInterface();
                    progressIndicator.setText("Initializing debugger target session");
                    DebuggerSessionInfo sessionInfo = debuggerInterface.initializeSession(targetConnection);
                    debuggerInterface.enableDebugging(targetConnection);
                    debuggerInterface.attachSession(sessionInfo.getSessionId(), debugConnection);

                    synchronizeSession();
                    executeMethod();
                } catch (SQLException e) {
                    getSession().stop();
View Full Code Here

    private void synchronizeSession() {
        final Project project = getSession().getProject();
        new BackgroundTask(project, "Initialize debug environment", true) {

            public void execute(@NotNull ProgressIndicator progressIndicator) {
                DatabaseDebuggerInterface debuggerInterface = getDebuggerInterface();
                if (getStatus().PROCESS_IS_TERMINATING) getSession().stop();
                try {
                    progressIndicator.setText("Synchronizing debug session");
                    runtimeInfo = debuggerInterface.synchronizeSession(debugConnection);

                    if (getStatus().TARGET_EXECUTION_TERMINATED) {
                        getSession().stop();
                    } else {
                        getStatus().CAN_SET_BREAKPOINTS = true;
                        progressIndicator.setText("Registering breakpoints");
                        registerBreakpoints();
                        runtimeInfo = debuggerInterface.stepOver(debugConnection);

                        progressIndicator.setText("Suspending session");
                        suspendSession();
                    }
                } catch (SQLException e) {
View Full Code Here

                    unregisterBreakpoints();
                    rollOutDebugger();
                    getStatus().CAN_SET_BREAKPOINTS = false;

                    if (debugConnection != null) {
                        DatabaseDebuggerInterface debuggerInterface = getDebuggerInterface();
                        runtimeInfo = debuggerInterface.stopExecution(debugConnection);
                        debuggerInterface.detachSession(debugConnection);

                        connectionHandler.freePoolConnection(debugConnection);
                        debugConnection = null;
                    }
                    getStatus().PROCESS_IS_TERMINATED = true;
View Full Code Here

    @Override
    public void startStepOver() {
        new DebugOperationThread("step over") {
            public void executeOperation() throws SQLException {
                DatabaseDebuggerInterface debuggerInterface = getDebuggerInterface();
                runtimeInfo = debuggerInterface.stepOver(debugConnection);
                suspendSession();
            }
        }.start();
    }
View Full Code Here

    @Override
    public void startStepInto() {
        new DebugOperationThread("step into") {
            public void executeOperation() throws SQLException {
                DatabaseDebuggerInterface debuggerInterface = getDebuggerInterface();
                runtimeInfo = debuggerInterface.stepInto(debugConnection);
                suspendSession();
            }
        }.start();
    }
View Full Code Here

    @Override
    public void startStepOut() {
        new DebugOperationThread("step out") {
            public void executeOperation() throws SQLException {
                DatabaseDebuggerInterface debuggerInterface = getDebuggerInterface();
                runtimeInfo = debuggerInterface.stepOut(debugConnection);
                suspendSession();
            }
        }.start();
    }
View Full Code Here

    @Override
    public void resume() {
        new DebugOperationThread("resume execution") {
            public void executeOperation() throws SQLException {
                DatabaseDebuggerInterface debuggerInterface = getDebuggerInterface();
                runtimeInfo = debuggerInterface.resumeExecution(debugConnection);
                suspendSession();
            }
        }.start();
    }
View Full Code Here

    public void runToPosition(@NotNull final XSourcePosition position) {
        new DebugOperationThread("run to position") {
            public void executeOperation() throws SQLException {
                DBSchemaObject object = DBProgramDebugUtil.getObject(position);
                if (object != null) {
                    DatabaseDebuggerInterface debuggerInterface = getDebuggerInterface();
                    runtimeInfo = debuggerInterface.runToPosition(
                            object.getSchema().getName(),
                            object.getName(),
                            object.getObjectType().getName().toUpperCase(),
                            position.getLine(),
                            debugConnection);
View Full Code Here

    @Override
    public void startPausing() {
        // NOT SUPPORTED!!!
        new DebugOperationThread("run to position") {
            public void executeOperation() throws SQLException {
                DatabaseDebuggerInterface debuggerInterface = getDebuggerInterface();
                runtimeInfo = debuggerInterface.synchronizeSession(debugConnection);
                suspendSession();
            }
        }.start();
    }
View Full Code Here

TOP

Related Classes of com.dci.intellij.dbn.database.DatabaseDebuggerInterface

Copyright © 2018 www.massapicom. 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.