facebook

Application server source code browsing

  1. MyEclipse IDE
  2.  > 
  3. Feature Requests
Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #213901 Reply

    Sometimes it is necessary to debug module and its environment. If we have sources (for example JBoss) it should be possible to browse them especially in debug mode. Eclipse’s JDT supports source attachment for remote debugging and MyEclipse (I think) uses this feature for AS debugging.

    TIA
    Piotr Smolinski

    #213923 Reply

    Riyad Kalla
    Member

    Piotr,
    You can try and add the sources for JBoss as a src folder to your project and see if that works. The issue is that the Eclipse source located must be able to locate source code for the class file you are attemping to open… becuase you would never typically have a JBoss server JAR in your classpath you cannot attach the source to that JAR, so instead you will likely have to ADD the source directly to your project so the source located can find it.

    #213938 Reply

    But if you do remote debugging in Eclipse you are not obliged to attach binaries of debugged application. By launching application server, MyEclipse starts a new remote debugging session, but each time on different port (you can see it in debugging configurations catalog (menu Run/Debug…) as a position in Remote Java Application Branch).
    My question is: Is it possible to attach server sources to server configuration to enable server debugging? Of course it isn’t necessary to ship server sources with MyEclipse distribution.
    I really want not to attach server binaries to project beacuse it can burden project structure (even if attached as User Library) and my co-workers can include too many vendor dependiences in developed code.

    #213989 Reply

    Scott Anderson
    Participant

    Piotr,

    The easiest way I can think to do this is to create a separate Eclipse Java project that contains all the server’s source code. Simply importing the code into that new project should enable the Java source locator to then find it when needed.

    #214025 Reply

    You mean also not to make project dependencies.
    Yes, it is possible, cause Eclipse looks up source code in any project.
    But it is workaround. My idea is to add such feature to MyEclipse.
    In AS configuration we attach additional libraries as CLASSPATH prefix and postfix. Why don’t we add server source archives? Eclipse has the feature of remote java process source browsing (see mentioned remote debugging configuration).
    Other idea is that MyEclipce could register and use such remote debugging configuration once (with fixed remote port). I noticed that AS debugging uses other debugging port in each session. In such situation we could add server sources to debugging configuration only.

Viewing 5 posts - 1 through 5 (of 5 total)
Reply To: Application server source code browsing

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