Examples of Breakpoint


Examples of org.exist.debugger.model.Breakpoint

      // jetty.port.jetty
      DebuggingSource source = debugger.init("http://127.0.0.1:" + System.getProperty("jetty.port") + "/exist/xquery/fibo.xql");

      assertNotNull("Debugging source can't be NULL.", source);
     
      Breakpoint breakpoint = source.newBreakpoint();
      breakpoint.setLineno(24);
      breakpoint.sync();
     
      source.run();
     
      List<Location> stack = source.getStackFrames();
      assertEquals(1, stack.size());
View Full Code Here

Examples of org.exist.debugger.model.Breakpoint

      // jetty.port.jetty
      DebuggingSource source = debugger.init("http://127.0.0.1:" + System.getProperty("jetty.port") + "/exist/xquery/fibo.xql");

      assertNotNull("Debugging source can't be NULL.", source);
     
      Breakpoint breakpoint = source.newBreakpoint();
      breakpoint.setLineno(24);
      breakpoint.sync();
     
      String res = source.evaluate("$dbgp:session");
      assertNull(res);

      res = source.evaluate("let $seq := (98.5, 98.3, 98.9) return count($seq)");
      assertEquals("3", res);

      //xquery engine have problem here, because context not copied correctly
//      res = source.evaluate("f:fibo(2)");
//      System.out.println(res);
     
      source.run();
     
      List<Location> stack = source.getStackFrames();
      assertEquals(1, stack.size());
      assertEquals(24, stack.get(0).getLineBegin());
     
      breakpoint.remove();

      source.stop();
     
    } catch (IOException e) {
      assertNotNull("IO exception: "+e.getMessage(), null);
View Full Code Here

Examples of org.exist.debugger.model.Breakpoint

      // jetty.port.jetty
      DebuggingSource source = debugger.init("http://127.0.0.1:" + System.getProperty("jetty.port") + "/exist/xquery/debug-test.xql");

      assertNotNull("Debugging source can't be NULL.", source);

      Breakpoint breakpoint = source.newBreakpoint();
      breakpoint.setLineno(19);
      breakpoint.sync();

      source.run();

      List<Location> stack = source.getStackFrames();
      assertEquals(1, stack.size());
      assertEquals(19, stack.get(0).getLineBegin());

            String res = source.evaluate("$t:XML");
      assertNotNull(res);
            System.out.println("$t:XML: " + res);
            assertEquals("<root><a id=\"a1\"/><b id=\"b1\" type=\"t\"/><c id=\"c1\">text</c><d id=\"d1\"><e>text</e></d></root>", res);
      breakpoint.remove();

      source.stop();

    } catch (IOException e) {
      assertNotNull("IO exception: "+e.getMessage(), null);
View Full Code Here

Examples of org.exist.debugger.model.Breakpoint

      synchronized (breakpoints) {
        if (filesBreakpoints.containsKey(fileName)) {
          fileBreakpoints = filesBreakpoints.get(fileName);
         
          if (fileBreakpoints.containsKey(lineNo)) {
            Breakpoint breakpoint = fileBreakpoints.get(lineNo);
           
            if (!activeBreakpoints.contains(breakpoint)
                && breakpoint.getState()
                && breakpoint.getType().equals(Breakpoint.TYPE_LINE)) {
             
              activeBreakpoints.add(breakpoint);
              command.setStatus(BREAK);
              //waitCommand();
              //break;
View Full Code Here

Examples of org.exist.debugger.model.Breakpoint

  public Breakpoint getBreakpoint(int breakpointID) {
    return breakpoints.get(breakpointID);
  }

  public Breakpoint removeBreakpoint(int breakpointID) {
    Breakpoint breakpoint = breakpoints.get(breakpointID);
    if (breakpoint == null)
      return breakpoint;
   
    String fileName = breakpoint.getFilename();
    Integer lineNo = breakpoint.getLineno();

    Map<Integer, Breakpoint> fileBreakpoints = null;

    synchronized (breakpoints) {
      if (filesBreakpoints.containsKey(fileName)) {
View Full Code Here

Examples of org.jitterbit.integration.server.implementation.webservice.interchange.treemapper.client.Breakpoint

* @since 3.0.0
*/
final class WsBreakpointBuilder {

    public static Breakpoint build(org.jitterbit.integration.debug.client.Breakpoint bp) {
        Breakpoint wsBreakpoint = new Breakpoint();
        wsBreakpoint.setLocation(WsBreakLocationBuilder.build(bp.getLocation()));
        wsBreakpoint.setConditionScript(bp.getConditionScript());
        wsBreakpoint.setConditionVariables(WsKeyValuePairsBuilder.build(bp.getConditionVariables()));
        return wsBreakpoint;
    }
View Full Code Here

Examples of org.netbeans.api.debugger.Breakpoint

        Properties p = Properties.getDefault().getProperties(QUORUM_DEBUGGER).
            getProperties(DebuggerManager.PROP_BREAKPOINTS);
        Breakpoint[] breakpoints = (Breakpoint[]) p.getArray( QUORUM_BREAKPOINTS ,new Breakpoint [0]);
        ArrayList<Breakpoint> validBreakpoints = new ArrayList<Breakpoint>();
        for (int i = 0; i < breakpoints.length; i++) {
            Breakpoint breakpoint = breakpoints[i];
            if (breakpoint != null) {
                breakpoint.addPropertyChangeListener(this);
                validBreakpoints.add(breakpoint);
            }
        }
       
       
View Full Code Here

Examples of org.openbp.core.engine.debugger.Breakpoint

        }

        // First, check if we ran onto a breakpoint set by this client
        if (pos1 != null)
        {
          Breakpoint bp = client.getActiveBreakpoint(pos1);
          if (bp != null)
          {
            breakClient = client;

            if ((bp.getState() & Breakpoint.STATE_TEMPORARY) != 0)
            {
              // Clear temporary breakpoint
              client.clearBreakpoint(pos1);
            }
          }
        }

        if (breakClient == null && pos2 != null)
        {
          Breakpoint bp = client.getActiveBreakpoint(pos2);
          if (bp != null)
          {
            breakClient = client;

            if ((bp.getState() & Breakpoint.STATE_TEMPORARY) != 0)
            {
              // Clear temporary breakpoint
              client.clearBreakpoint(pos2);
            }
          }
View Full Code Here

Examples of org.quorum.vm.interfaces.Breakpoint

     */
    public boolean toggleBreakpoint(int line, FileObject fo) {
        File f = FileUtil.toFile(fo);
        String path = f.getAbsolutePath();

        Breakpoint point = new Breakpoint(path, line);

        //SetBreakpointEvent event = new SetBreakpointEvent(line, caretPos, fo);
        //throwEventToListeners(event);

        //does the VM already have a breakpoint here?
View Full Code Here

Examples of org.rstudio.studio.client.common.debugging.model.Breakpoint

            @Override
            public void onBreakpointSet(BreakpointSetEvent event)
            {
               if (event.isSet())
               {
                  Breakpoint breakpoint = null;
                 
                  // don't try to set breakpoints in unsaved code
                  if (isNewDoc())
                  {
                     view_.showWarningBar("Breakpoints cannot be set until " +
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.