facebook

Cannot debug a java application within a web app

💡
Our Forums Have Moved

For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub

  1. MyEclipse Archived
  2.  > 
  3. Bugs
Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #228946 Reply

    edgekaos
    Member

    I have a simple java application that contains main and just one class. This file is part of a struts application that’s created by MyEclipse. Whenever I try to debug this application debuggin fails because either have socket creation failed (if tomcat is runing) or just says “cannot connect to vm”. I believe this is caused by MyEclipse always assuming that it needs to connect to a web debugging facility for a web app even it’s just a simple java application. To duplicate just create a struts app with MyEclipse then add a class with main within struts app src directory. Try to debug the class with main as java app you should see the error.

    #228990

    Riyad Kalla
    Member

    To duplicate just create a struts app with MyEclipse then add a class with main within struts app src directory. Try to debug the class with main as java app you should see the error.

    How are you running the app? THis works fine here, infact I use this method to test small segments of code without running my app in an app server.

    Using Eclipse’s Run and Debug facilities are totally independent of MyEclipse. When you run your app server in debug mode using MyEclipse’s toolbar button, MyEclipse connects automatically to the app server for debugging, that is the only time MyEclipse does anything with the debugger.

Viewing 2 posts - 1 through 2 (of 2 total)
Reply To: Cannot debug a java application within a web app

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