Results 1 to 6 of 6
  1. #1
    Taxi is offline Member
    Join Date
    Dec 2008
    Posts
    6
    Rep Power
    0

    Default Skipping lines during debugging

    Hi all!

    I'm working or better say.. I'm trying to work :) with Maven projects (m2eclipse plug-in) and Eclipse IDE. The problem I have is that sometimes the debugger seems to skip some lines of the code without a reason.

    Is there an issue of synchronisation with my .class files? I don't know how to fix it and I'd appreciate any help!

    Thanks all :)

  2. #2
    ebrandel is offline Member
    Join Date
    Dec 2008
    Posts
    1
    Rep Power
    0

    Default

    You ever get an answer of find a solution? I'm experiencing the exact same issue right now.

  3. #3
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    19

    Default

    I'm not stick with Eclipse here. You say that without a reason it's skip. What you mean that. Can you show such a code segment here to see.

  4. #4
    mkajdos is offline Member
    Join Date
    Apr 2014
    Posts
    2
    Rep Power
    0

    Default Re: Skipping lines during debugging

    Quote Originally Posted by ebrandel View Post
    You ever get an answer of find a solution? I'm experiencing the exact same issue right now.
    I am using MyEclipse version 9.1 and experienced similar problems: skipping lines during debugging. Further I found that the hot deployment of even inconsequential changes (i.e. adding space) causes the server to ask for termination. After some research I determined that the problem is in hot deployment.

    There is a .classpath file just under the project name on directory structure that was directing the changes to target/class:

    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
    <classpathentry kind="src" output="target/classes" path="src/main/java"/>
    <classpathentry exported="true" kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTA INER"/>
    <classpathentry exported="true" kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
    <classpathentry exported="true" kind="con" path="org.eclipse.jst.j2ee.internal.module.contain er"/>
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.Standar dVMType/jrockit-jdk1.6.0_26-R28.1.4-4.0.1">
    <attributes>
    <attribute name="owner.project.facets" value="java"/>
    </attributes>
    </classpathentry>
    <classpathentry kind="output" path="target/classes"/>
    </classpath>

    When this whole code was replaced with following:

    <?xml version="1.0" encoding="UTF-8"?>
    <classpath>
    <classpathentry kind="src" path="src/main/java"/>
    <classpathentry kind="con" path="org.maven.ide.eclipse.MAVEN2_CLASSPATH_CONTA INER"/>
    <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER"/>
    <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.web.container"/>
    <classpathentry kind="con" path="org.eclipse.jst.j2ee.internal.module.contain er"/>
    <classpathentry kind="output" path="src/main/webapp/WEB-INF/classes"/>
    </classpath>

    The hot deploy and debugger started to work properly. How or why did the .classpath changed in first place is unknown to me but it happened suddenly after many months of working without problems.

    I only hope that this post saves time to some poor soul that sees their IDE go crazy.

    Regards,

    Mark

  5. #5
    gimbal2 is offline Just a guy
    Join Date
    Jun 2013
    Location
    Netherlands
    Posts
    3,580
    Rep Power
    5

    Default Re: Skipping lines during debugging

    a) this thread is 6 years old
    b) I don't think many people will be using an IDE which is 3 years old so there is little guarantee the problems you have are still experienced
    c) I don't think many people will still be using MyEclipse where regular Eclipse works just fine
    "Syntactic sugar causes cancer of the semicolon." -- Alan Perlis

  6. #6
    mkajdos is offline Member
    Join Date
    Apr 2014
    Posts
    2
    Rep Power
    0

    Default Re: Skipping lines during debugging

    Well, that is good to know. My current IDE is Eclipse Kepler and I experienced this problem there also but I attributed it to my attempts to modify some configuration.

Similar Threads

  1. Random Lines
    By Urgle in forum New To Java
    Replies: 29
    Last Post: 11-12-2008, 03:42 PM
  2. skipping input
    By windie_86 in forum New To Java
    Replies: 1
    Last Post: 02-12-2008, 07:09 PM
  3. how to edit lines.
    By jason27131 in forum New To Java
    Replies: 1
    Last Post: 08-01-2007, 04:41 AM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •