- This topic has 3 replies, 2 voices, and was last updated 17 years, 6 months ago by Riyad Kalla.
-
AuthorPosts
-
potterd64MemberHello,
I hope there is a way around this. When I make any changes in the “Create Launch Configuration” menu for my Oracle AS server, none of them get saved. I am trying to add some VM arguments so that I can get the server to run in debug mode correctly.It works when I type in the new VM arguments, hit apply then debug. The arguments never get saved though, as they are gone the next time I open the window. I’ve also clicked close, clicked yes at the save prompt, then reopened the window and the options weren’t saved.
Is there a configuration file somewhere I can edit? I just don’t want to have to go into this window and edit the arguments every time I want to debug the server. How do I get around this?
Riyad KallaMemberI need to clarify a few things:
1) You don’t need to use the “Create Launch Configuration” unless the default connector (the one you setup under Window > Prefs > MyEclipse > App Servers) doesn’t work.
2) Is the complaint that the settings are staying in the default connector screen, or they aren’t being applied to the Run Configuration you are generating when you click “Create Launch Configuration?
potterd64MemberThanks for your reply.
1. The default connector doesn’t behave the way I’d like. Perhaps I’ve set it up wrong. I am using OC4J 10.1.3.2.0. When I run the server in debug mode I can set breakpoints in my java source and debug my code, but it is limited. When the debugger actually opens the source file, it doesn’t have any lines in it other than the class declaration and the package name. So I can’t step through my code using the debugger. This doesn’t happen if I add the following VM arguments “-Xdebug –Xnoagent –Djava.compiler=NONE
–Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8000” and then start the debugger manually, connecting it to port 8000.2. The problem is that I can’t set my server configuration to take these VM arguments every time I select “Run Server”. I have to go back into that Launch Configuration screen and add the VM arguments because they weren’t saved the last time I entered them. Here’s an example:
Under Application -> Oracle AS -> Launch -> Create Launch Configuration -> Arguments I’ll add “-Xdebug” to the end of the default VM arguments. Then I click close and it prompts me “The configuration ‘Oracle AS’ has unsaved changes. Do you wish to save them?” I click yes. Then I go to Create Launch Configuration -> Arguments again and “-Xdebug” is gone, it’s back to default.Maybe I can use the default configuration if I’m just setting up the server incorrectly. Is there something else I have to do to be able to step through my code with the debugger using the default connector?
I am using MyEclipse v 5.1.1 GA
My settings for Oracle AS are
Enable
Host:ORMI Port localhost:23791
JDK: Java_1.6 JDK
Launch: Debug mode
password and home directory are set correctly.
Riyad KallaMemberActually you can set those options on the “JDK” sub preference node under the Oracle connector… but I think the connector already does this… can you send me a screen shot (PM) of what you are seeing when you say you cannot debug and it only shows you a few lines?
-
AuthorPosts