For help with installation, bugs reports or feature requests, please head over to our new forums.
Genuitec Community on GitHub
- This topic has 3 replies, 3 voices, and was last updated 19 years, 4 months ago by
Riyad Kalla.
-
AuthorPosts
-
olamattssonMemberHi, I’m having two debugging problems that may be related.
First problem
I followed the tutorial “Working With Web Projects – Quickstart” and got to the part where you should add a breakpoint in the helloWorld.jsp page. But it is impossible to add the breakpoint! (I have used Eclipse for years and I do know how to add a breakpoint, at least in a regular java file)
I then checked that the appserver configuration in Window > Preferences > MyEclipse > Application Servers > Tomcat 5 > Launch was set to Debug Mode, which it was. I also checked that the configuration was enabled (it is).I then started the tomcat server with MyEclipse’s applicationserver control menu and switched over to Debug perspective and checked the process info for the server. It seems as if the process is started with debug support if I interpret the vm arguments correctly (“-agentlib:jdwp=transport=dt_socket,suspend=y,address=localhost:3130“, I think this is the Java 5 way of turning debug on but I’m not sure). There is not any “-Xdebug -Xrunjdwp:transport=dt_socket,address=8000,server=y,suspend=n” argument given to the process. And still no way to add a breakpoint to the jsp file..
I then wanted to try to set up my own remote debugging launch config for Tomcat and stumbled on the next problem…
Second problem
The launch config dialogs does not work correctly as long as a MyEclipse Web Project is open!!
I opened the Run/Debug… menu and is presented with an empty dialog, both the left hand side (where the configs should be listed) and the major area of the dialog are completely empty. The only thing that is visible is the text at the top of the dialog:Create, manage, and run configurations
Launch configurations created from the MyEclipse server configurations at Window > Preferences > MyEclipse > Application Servers.The only way I have found to access the regular launch config dialog is to close the Web Project and then open the Run/Debug… dialog again.
So, to complete the “report” I’ll tell you what I’m running on…
First, the app server is Tomcat, version 5.5.20 and it works. I can access the helloWorld.jsp with a web browser as expected…I installed it with the Windows installer so it runs as a Windows service.– System Setup ——————————-
Operating System and version: Windows XP Professional x64 (a.ka. Windows 2003 Server version 5.2)
Eclipse version: 3.2.1
Eclipse build id: M20060921-0945
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.*: 2 (build and source)
MyEclipse version: 5.0.1
Eclipse JDK version: 1.5.0_09
Application Server JDK version: 1.5.0_09
Are there any exceptions in the Eclipse log file? NoIf this is a DB related question please answer the following:
RDBMS vendor and version:
JDBC driver vendor and version, and access type (thin, type-2, etc):
Connection URL:
Eclipse error logs related to com.genuitec.eclipse.sqlexplorer packages:October 25, 2006 at 10:39 am #260896
GregMemberHmm, here are a few questions that come to mind.
Is the breakpoint being added (blue icon) to the JSP in the left hand side of the editor?
What happens when you double click the left hand column where you want to add the breakpoint?
Are you sure your using the MyEclipse JSP Editor or Visual JSP Designer?
October 25, 2006 at 11:45 am #260899
olamattssonMemberHi Greg,
to answer your questions:The blue icon does not appear in the left hand side of the editor.
When I double click the left hand column the “Add Bookmark” dialog pops up
I’m using the default jsp editor (MyEclipse Visual JSP Editor)
I just tried this breakpoint adding again and now it worked!
But only when I place the breakpoint in scriptlet code.
In the tutorial I followed, the breakpoint was placed on a “plain HTML” line, this does still not work for me, and I have tried in both MyEclipse JSP editorsSo, even though the editor does not work as in the tutorial I can at least debug scriptlet code.
I’ll try to add some JSTL tags and see if those are “breakpointable”But my second problem, the launch configuration dialog, still remains though.
October 25, 2006 at 3:01 pm #260922
Riyad KallaMemberolamattsson,
I just ran through quite a bit of testing this morning related to custom launch configurations and don’t know why your launch dialog is empty. If you really quickly (for testing) go to File > Switch Workspace, and enter in a new workspace dir that doesn’t exist, and hit OK to restart, then reconfigure Tomcat, create the custom launch config, then open the run dialog, do you see everything correctly? -
AuthorPosts
