Jdeveloper 9i - Debugger Question

Some more info:
1> I start java in debug mode
set PATH=d:\jdev9i\jdk\jre\bin;%PATH%
cd d:\jdev9i\j2ee\home
java -ojvm -XXdebug,detached,port4000 -jar oc4j.jar
2> You'll see the following message:
*** Port is 4000 ***
*** Connect debugger anytime for on demand debugging. ***
Then, OC4J will start up.
3> Back in JDeveloper, bring up the Project Settings dialog box.
Select Debugger on the left side, check the Remote Debugging
checkbox, and select the Attach to OJVM radio button.
4> Put breakpoints in my code
5> When you press Debug button on the toolbar (or from the menu),
you will be presented with the Attach to OJVM dialog box where
you enter the host name of the OC4J machine (leave blank if it's
the same machine) and the debugging port number (4000). Press
Ok, and the debugger will connect to OC4J.
6> Next I start mmy web application from the browser using
http://localhost:8888/property
7> This triggers my breakpoints.
****However here is my problem. At some point in my flow I have to download an applet and I have breakpoints in it that I want to hit. However Jdeveloper just ignores those breakpoints completely.
So how do I switch between the client applet and server side in a debugging session.
Please help urgent!
(Hope Liz Looney-> the debugger pro answers)
FYI: Jdeveloper9i has a cool debugger!!!

Hi,
Your applet is running in the client (the browser). That's a different JVM than the one in the server (OC4J).
You've connected JDev's debugger to the server JVM (OC4J), but you haven't connected it to the client JVM where your applet is running.
Just like with server side java, you have 2 tasks:
1. Start the JVM with debug options.
2. Connect to the JVM with JDev's remote debugger.
....................Start the JVM with debug options....................
If you install a JDK from Sun, then it should have automatically installed the Java Plug-in. (If you are using the JDK which comes with JDeveloper, then I don't know how you get the Java Plug-in.) So, assuming that you can get a JDK from Sun...
From the Windows Control Panel open up the section for the Java Plug-in. Now, depending on which JDK you have installed, the control panel looks a little bit different. I'd recommend using the Plug-in for JDK 1.4, because it gives much more flexibility for specify Java Runtime Parameters. There are several tabs: Basic, Advanced, Browser, Proxies, Cache, Certificates, and About.
Click on the Advanced tab. Here you can specify which JRE to use and the Java Runtime Parameters. In the Java Runtime Parameters, enter the following:
-client -Xdebug -Xrunjdwp:transport=dt_socket,address=6000,server=y,suspend=n
The -client part is to specify the HotSpot Client JVM. Currently OJVM does not work correctly with JDK 1.4, so you'll have to use the HotSpot Client JVM.
The other options are the JPDA debug options.
The address=6000 part specifies port number for the debugger to connect to. If your browser is running on the same machine as OC4J, you want to make sure that you use a different port number. (Remember you were using 4000 for debugging OC4J).
The suspend=n part specifies that you want the JVM to start up and not to WAIT for a debugger connection. If you put suspend=y, the JVM would stop and wait for the debugger to connect. (You may decide later that for your situation, suspend=y would be appropriate.)
Click on the Browser tab. Here you can check which browsers where you want to use the Java Plug-in. Make sure that the browser you will use for your applet is checked.
Click on the Basic tab. Here you can choose whether to show or hide the Java console.
Press the Apply button and then re-start your browser.
....................Connect JDev's remote debugger....................
You should create another project for remote debugging your applet. Because you are using a HotSpot JVM, you must choose the Attach to JDPA radio button in the Project Settings dialog box, on the Debugger panel.
Put breakpoints in your applet.
Select your applet remote debugging project and press the Debug button on the toolbar. You will be presented with the Attach to JPDA dialog box, which looks just like the Attach to OJVM dialog that you use for remote debugging OC4J. Again, enter the host name of the browser machine (leave blank if it's the same machine as JDev) and the debugging port number (6000). Press Ok, and the debugger will connect to the browser's JVM using the JPDA (Java Platform Debugger Architecture) protocol.
Now, when your applet executes the code where your breakpoint is, JDev's debugger should stop at the breakpoint.
Remember that you have 2 debugging sessions going on simultaneously. You can use the Run Manager window (do View | Run Manager from the main menu) to control which debugging process is the active session. The toolbar buttons will always operate on the active debugging process.
Some people find it easier to run the client and debug the server or to debug the client and run the server, but you can do both at the same time. You'll have to see which you find easiest for you
-Liz
PS - I'm glad you like JDev's Debugger!

Similar Messages

  • JDeveloper 9i - Debugger Usage Question (Urgent!)

    So how do I switch between the client applet and server side in a debugging session. Here is my scenarion:
    1> I start java in debug mode
    set PATH=d:\jdev9i\jdk\jre\bin;%PATH%
    cd d:\jdev9i\j2ee\home
    java -ojvm -XXdebug,detached,port4000 -jar oc4j.jar
    2> You'll see the following message:
    *** Port is 4000 ***
    *** Connect debugger anytime for on demand debugging. ***
    Then, OC4J will start up.
    3> Back in JDeveloper, bring up the Project Settings dialog box.
    Select Debugger on the left side, check the Remote Debugging
    checkbox, and select the Attach to OJVM radio button.
    4> Put breakpoints in my code
    5> When you press Debug button on the toolbar (or from the menu),
    you will be presented with the Attach to OJVM dialog box where
    you enter the host name of the OC4J machine (leave blank if it's
    the same machine) and the debugging port number (4000). Press
    Ok, and the debugger will connect to OC4J.
    6> Next I start mmy web application from the browser using
    http://localhost:8888/property
    7> This triggers my breakpoints.
    ****However here is my problem. At some point in my flow I have to download an applet and I have breakpoints in it that I want to hit. However Jdeveloper just ignores those breakpoints completely.
    So how do I switch between the client applet and server side in a debugging session.
    Please help urgent!
    (Hope Liz Looney-> the debugger pro answers)
    FYI: Jdeveloper9i has a cool debugger!!!

    I have not tested this, but I believe all you have to do is:
    [list]
    [*]Create a new project, and add a test HTML page to it that contains an HTML link to the URL that you are using to launch your applet.
    [*]Right-mouse debug on that HTML page after setting breakpoints in your applet code
    [*]Click on the link in your HTML page
    [list]
    JDeveloper can be simulataneously debugging multiple sessions as once.
    Creating the second empty project gives a simple way to have one project set for remote debugging and the other project set for local (applet or otherwise) debugging.

  • JDeveloper Webservice Creation Question

    While Creating webservices through JDev 11g from WSDL, we are presented with two option :-
    1) Java EE 1.5, with support for JAX-WS annotations
    2) Java EE 1.5, with support for JAX-WS RI
    Could you please let me know which one is the most efficient option.
    I see that in the second option the webservices are configured thru another file(sun-jaxws.xml) and all the requests are directed or handled by a common servlet whereas in the first option we usually configure the endpoint implementation directly in web.xml.
    Another question that i have related to webservices creation - Does webservices wizard internally call wsimport to generate classes from WSDL. When i use wsimport to generate classes using WSDL and specify a jaxb global binding file to convert datatypes, this works correctly but using JDeveloper doesn't creates the Adapter classes to convert the datatypes.
    Answers to the above would be helpful in reaching a decision on which approach to follow. Thanks.

    Hi,
    yes. Please see the how-to document we provide on otn.oracle.com/products/jdev
    Frank

  • Forte Debugger Question - How to break on exception?

    I am running my midlet under Forte Community Edition 3.0, and I am trying to track down a crash. The output window shows that a NullPointerException was thrown, so it should be a simple matter of finding the line with the offending allocation, but I cant find any way to make the debugger break on an exception. Is this possible?
    Thx,
    Fred

    I'll answer my own question here....the best thing I have found so far is to put a high level catch in the code, then call Exception.printStackTrace in the catch block. Its not ideal, but it helps find the offending code.
    Fred

  • Running ADF BC Browser through JDeveloper's debugger

    Hi all,
    I'm sure I read somewhere that it's possible (with a bit of tweaking) to get the ADF Business Components browser to run in the debugger in JDeveloper. Can anyone tell me how to do this, or point me to a document that tells me?
    I've done the usual searches on the forums and google, but haven't had any joy.
    Many thanks
    Dave
    P.S. I am currently using JDeveloper 10.1.3.4 so please tailor your answers to that version!

    It's in the ADF Developer Guide Debugging chapter:
    http://download.oracle.com/docs/html/B25947_01/web_testdebug004.htm#sthref2271

  • Xcode debugger question

    How do i setup the debugger in xcode?

    The debugger is already setup in Xcode, do you have a specific question?

  • ABAP Debugger Question

    Hello,
    When I debug an ABAP program, is there any way to display a list of names of all the program's internal tables? (global and local)
    Thx.
    Andy

    Hi andrew,
    First Switch to New ABAP Debugger if you are currently using Classic Debugger.
    In Desktop1 Tab(the default tab) select the Globals Tab in the Right side. There you can see all itabs, variables which are available globally.
    Regards
    Karthik D

  • Debugger question

    I'm using xCode debugger, however I cannot see values in variables for object-oriented code. Instead, I expand out the structures and see "isa". What is this and how can I see values when debugging objects.

    I have the following code in my Javascript file :
    MHCTIFFSave = app.trustedFunction( function (File,cFile)
    app.beginPriv();
    this.saveAs(File,"com.adobe.acrobat.tiff");
    app.endPriv();
    WHen I execute it in the debugger - I get this :
    MHCTIFFSave("Z:\\Test.gif","test");
    NotAllowedError: Security settings prevent access to this property or method.
    Doc.saveAs:4:Console undefined:Exec
    undefined
    I thought that this was a trusted function and this would prevent me from seeing this message .

  • Jdeveloper for debugger

    Would be reasonable to use Jdeveloper only as a debug tool and a deply tools to Oracle 8i JVM and to develop the code by hand?
    Thanks

    I've filed a documentation bug for the missing javadoc. Meanwhile, you can see a list of methods and parameters by editing ServletDebugger.class in JDeveloper. Here's one way to do this:
    - In JDeveloper, select the Opened tab of the navigator window
    - Select File->Open, and open <jdev>\lib\jdev-rt.zip
    - In the viewer, double-click ServletDebugger.class
    Blaise

  • Oracle9i JDeveloper and Oracle9i question

    hi all
    First I setup Oracle9i Enterprise Edition Release 9.0.1.1.1 and then set up JDeveloper Version 9.0.3 Preview on the same machine with windows 2000 server.
    local machine oracleservice and oracle90tnslistener is started ,sqlplus is able to connect local database.after executing jdev.exe sqlplus isnot able to connect local database ,report error :ora-12547 tns lost contact.

    OracleSCM is in definite need of a "Getting Started/User Guide". It comes with an Installation Guide but, once installed, no other (detailed) documentation to point new users in the right direction. Example scenarios and tutorials demonstrating workareas and containers etc would be very helpful indeed.
    Whilst the 9i JDeveloper help/documentation is better, it assumes a certain amount of OracleSCM knowledge (or that you can obtain it from OracleSCM). Furthermore, not all of our SCM needs will be from within the 9i JDeveloper IDE...other files relating to our JDeveloper applications (such as requirements/design documentation, SQL & PL/SQL files etc) will want to be brought together under SCM where the use of the RON (outside of 9i JDev) will be required (I assume?).
    We have been through the beta version of the new course and, whilst a definite step in the right direction, it is no substitute for a written "Getting Started Guide" and does not provide enough information to actually get new users/projects up and running (just the foundations). In particular, we found the Practice Areas alittle cumbersome and lacking (much needed) hints/solutions. We need less of the "Overview of SCM" (most people are familiar with the concepts/benefits and have used similar products before), and much more of the specifics of setting up/using OracleSCM and JDev-OracleSCM.
    We are a JDeveloper (3.2) shop (naturally) looking to migrate our applications to 9i JDeveloper where the close integration with OracleSCM is an attractive new feature that we'd like to take advantage of. Much greater help & support will need to be provided to existing (and new) users if the application of this exciting new feature is to be attempted/successful.

  • Debugger question: how to step into a message call

    Hi everyone:
    If my understanding of the workings of the following objective C statement is correct,
    NSString *s = [NSString stringWithFormat:@"Hello %@", @"World"];
    what happens there is that it sends the "stringWithFormat" message to the "NSString" class. Correct?
    If so, is it possible to step into that message with a debugger? (For some reason when I try to do it, the debugger simply steps over it.)

    You don't have the source code to NSString so all you would see is machine code.

  • JDeveloper 2.0 Questions

    1) I'm moving from developing under jdk to JDeveloper 2. How do I add the existing files to a project? JDev's help doesn't have any help on this.
    2) The current files are in 2 source files: a
    java_utilites/src directory and a <app>/src directory. How do I keep this structure- I needs to follow our Clearcase/Attache config control system.
    3) How do I add our UI compoents to tabbed list of components- JDev's help doesn't have any help on this.

    One feature that tends to get overlooked is the Structure Pane. The structure pane not only reflects the UI layout but it is also very useful in adding components to your UI i.e. if you want to add a component to a Panel then you could just click on the component and then click on the panel in the structure pane.
    Here is how I work with tabbed panes in the designer:
    1. Create an application with an empty frame
    2. Change the layout of the top panel to gridbaglayout
    3. Add a tabbed pane(from the 'Swing containers' tab) to this panel
    4. Click on a 'JPanel' in the 'Swing containers' tab.
    5. Click on the 'jTabbedPane' in the 'Structure Pane'(the bottom left pane)
    =>the panel will be added to the jTabbedPane
    By default, the generated code looks like:
    jTabbedPane1.addTab(null, jPanel6);
    but I noticed that if you change it to :
    jTabbedPane1.addTab(jTabbedPane1, jPanel6);
    then things look OK in the designer.
    This looks like a bug and I'm following it up.
    6. Now you can double click on 'jPanelx' in the 'Structure Pane' to bring it up in the designer and then add components to it.
    Regards,
    Arun

  • JDeveloper OAF debugger performance

    Can anybody tell me what can be done to improve performance of an OAF-based application when running the debugger under JDev? I currently have a sequence of steps a user follows, and doing that directly in the application takes at most 30 seconds. Doing the same in the debugger takes anywhere from 15 to 50 minutes!
    Bob N

    Thanks, Mahendra. I've done that. It does appear that server load may be an issue, as when I work in the middle of the night, performance is significantly better.
    Bob N

  • Debugger questions

    In the docs I saw:
    If you let your mouse pointer rest over a variable or function in an Editor
    tab, the result of evaluating that variable or function is displayed as a
    help tip.
    and
    You can turn off the display of help tips using the Display JavaScript
    variables and Enable UI help tips checkboxes on the Help Options page of
    the Preferences dialog.
    I can't get either help tips or the var display to work on XP whether the script
    is running or not. Is this a known problem or is there a magic incantation I am
    missing? The databrowser is working just fine, though, so I'm not completely blind.
    ciao,
    -X

    [email protected] wrote:
    > Just got confirmation. It's a bug.
    >
    > I dunno when a fix can be incorporated. But the right folks know.
    >
    > Sorry!
    >
    > Bob
    > Adobe Workflow Scripting
    Thanks for the report.

  • Mdb (Modular debugger) question

    Under Solaris there is mdb installed,
    is it able to call a function of a program
    being debuged the way as 'call' in gdb?

    Thanks.
    I read already the appropriate topics in the "Programming WebLogic Enterprise JavaBeans" and played also with parameters initial-beans-in-free-pool and max-beans-in-free-pool, without success.
    I also watched the weblogic servers monitor pages of the MDB, and while he is blocking for some reason instead of starting the next child MDB the "use count" is only 1. For me it seams that weblogic does not recognize that the child MDBs finished working.

Maybe you are looking for

  • I want to get the correct cables

    Hello, I have a 13" MacBook and I'd like to hook it up to my 42" LCD TV to play games and watch and edit movies and pictures. It's a 42" Vizio VU42L (manual located at Vizio's Site). I have HDMI inputs and RGB PC (VGA) inputs on the back of the TV an

  • Lumia 1020 doesn't focus up close (macro)

    According to the specs, the Lumia 1020 should be able to auto-focus as close as 15cm. However, my phone consistently has trouble focusing that close. Typically, if the subject is between 15cm and 25cm away and I hold down the shutter half-way to focu

  • Help with SB xtreme Mu

    I bought an xtreme music (off ebay) and have installed it and put the most recent drivers on it. However I am having huge problems with my microphone. To hear me I have to have it on FULL volume and with mic boost on. This makes my mic sound **bleep*

  • Ipad Calendar Events Overlap and Almost Impossible to See

    On an iPad when some events overlap in the calendar they are nearly impossible to see.  There is an appointmetn at 9:00 but it shows as very "washed out" since the earlier appointment overlaps.  This shows the same on a newly setup iPad as well as an

  • What is FIPs password for & how do I get rid of it.

    I am asked for a FIP or FIPS password every time I go to any new site. I tried to look it up & got a Federal site that made no sense to me. I am just a regular user, not a Web Developer which is what it seemed to refer to. If anyone can help I would