facebook

Urgent: Debug Not Working [Closed]

  1. MyEclipse IDE
  2.  > 
  3. General Development
Viewing 8 posts - 1 through 8 (of 8 total)
  • Author
    Posts
  • #207499 Reply

    suraphol
    Member

    – System Setup ——————————-
    Operating System and version: Windows XP Pro.
    Eclipse version: SDK-3.0M7
    Eclipse build id:
    Fresh Eclipse install (y/n): Y
    If not, was it upgraded to its current version using the update manager?
    Other installed external plugins:
    Number of plugins in the <eclipse>/plugins directory that begin with org.eclipse.pde.*:
    MyEclipse version: 3.7.0 GA
    Eclipse JDK version:
    Application Server JDK version: 1.4.2
    Are there any exceptions in the Eclipse log file? not really…

    – Message Body ——————————-

    Hi,

    My workbench has been working fine debugging, running etc.
    Today, the debug feature does not work any more. The run command still work. But when I try to debug (app server already running fine, EJBs tested to be working too), nothing is displayed in the console.

    The checked the log file it is complaining about the debug package. Therefore I check the Eclipse package plugin directory, both “org.eclipse.debug.ui_3.0.0 ” and “org.eclipse.jdt.debug_3.0.0” are still there.

    What can be the problem? I really debug to soon now.

    Please help!!!

    The log file has the following:
    !SESSION May 25, 2004 14:10:26.250 ———————————————
    java.version=1.4.2
    java.vendor=Sun Microsystems Inc.
    BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US
    !ENTRY org.eclipse.osgi May 25, 2004 14:10:26.250
    !MESSAGE Bundle reference:file:c:/Eclipse/eclipse-SDK-3.0M7/eclipse/plugins/org.eclipse.debug.ui_3.0.0 [77] was not resolved
    !ENTRY org.eclipse.osgi May 25, 2004 14:10:26.250
    !MESSAGE Bundle reference:file:c:/Eclipse/eclipse-SDK-3.0M7/eclipse/plugins/org.eclipse.jdt.debug_3.0.0 [86] was not resolved

    #207503 Reply

    Riyad Kalla
    Member

    But when I try to debug (app server already running fine, EJBs tested to be working too), nothing is displayed in the console.

    Are you talking about debugging a client application or a web app? If you need to debug a webapp, make sure to run the app server in debug mode, and then go and set a breakpoint in your JSP or EJB and then excercise the web app so that method is called.

    When you said “nothing is in the console”, nothing will print to the console unless you are explicitly calling System.out’s or System.err’s. If you are using the Eclipse debug (the bug looking icon) then this has nothing to do with MyEclipse and is instead an Eclipse functionality, you may want to adjust the Debug run target. Its possible that it might be wrong if you recently refactored or changed some class names.

    The checked the log file it is complaining about the debug package.

    This is normal, we have to retrofit the debug plugins for Eclipse to support JSP debugging.

    #207505 Reply

    suraphol
    Member

    I am debugging EJBs with a java client application (not web). I should say, the debugger is not stopping in any breakpoint that I have set throughout both the client app and the EJBs. It feels like nothing is started after I say OK to debug a client program. (I have log statment printing to the console just after entering the main program, but it is not even printing that).

    How do I set (it is long time ago, I forgot) Weblogic App Server to run in debug mode within workbench?

    #207506 Reply

    Riyad Kalla
    Member

    I am debugging EJBs with a java client application (not web).

    Ok then this is an Eclipse issue, but I will try my best to help.

    I should say, the debugger is not stopping in any breakpoint that I have set throughout both the client app and the EJBs.

    Are you running your application by clicking on the “Bug” Icon or using the “Running” Icon?

    It feels like nothing is started after I say OK to debug a client program. (I have log statment printing to the console just after entering the main program, but it is not even printing that).

    Click your console tab at the bottom of your screen (or whever you have it), and then click the down arrow on the top right of the console view, and click the “Remove all Terminated” option. Its possible that you are viewing a stale console window and not seeing the most recent one. You can also switch to the Debug perspective, right click on the Debug process window, and go to “Terminate All” and then “Remove all Terminated”, THEN try and run your program again.

    How do I set (it is long time ago, I forgot) Weblogic App Server to run in debug mode within workbench?

    Window > Preferences > MyEclipse > App. Servers > WebLogic (choose version) > Launch > “[*] Debug Mode”

    #207507 Reply

    suraphol
    Member

    I debug by running “Run->’Debug…’->Java Application->MyClientProgram”, click “Debug”.
    I tried “Remove All Terminated Launches” and really sure that I am looking at the bottom of the console. The app server was set to debug mode all these time.
    However, I cannot stop in any breakpoint. If I just run the program, it works fine.

    I have been debugging all these time with no problem until now. Is there some file I should clean up or the like? I really hope I do not need to reinstall Eclipse and Workbench.

    #207509 Reply

    Riyad Kalla
    Member

    suraphol,
    Have you tried restarting Eclipse? This sounds very strange… are you sure you are setting breakpoints that should be hit? And are you double-sure that you are running the program that you are actually setting the break points in? You could have multiple debug run targets, and you *could* be setting breakpoints in App1 and actually running App2 (just an idea…)

    You could try a sanity check by setting a break point on the 1st line of code in your main(string[] args) method to see if the debugger stops there.

    Make sure to try restarting. Also try and paste the last 2 or 3 entries from your log file starting with “!SESSION———–” so we can look at them. The log entries you gave in your first post are normal and nothing to get worried about.

    #207511 Reply

    suraphol
    Member

    I have finally given up and reinstall Eclipse and Workbench, and go through all the steps to set up workbench.

    Now I can debug again. Still do not know what caused the problem in the first place. Anyway, it is working now.

    Thank you very much for your help…

    #207512 Reply

    Riyad Kalla
    Member

    Thank you very much for your help…

    You’re welcome. I’m sorry we couldn’t get you up and running with your existing install though.

Viewing 8 posts - 1 through 8 (of 8 total)
Reply To: Urgent: Debug Not Working [Closed]

You must be logged in to post in the forum log in