Debugging with eclipse

anyone can point me to a document or how to do this...
i get the remote debugging all set, but it never gets to any breakpoint...
any clues would be appreciated.
thanks

There are several things that could be off:
1. Make sure your code is built with 'debug="true"'.
2. Verify the server startup uses the JVM args that you expect, like setting the
"dt_socket" port to the port you expect.
3. Do the remote attachment to the same port.
4. Mount filesystems at the package root, not elsewhere.
"nik" <[email protected]> wrote:
>
anyone can point me to a document or how to do this...
i get the remote debugging all set, but it never gets to any breakpoint...
any clues would be appreciated.
thanks

Similar Messages

  • Debugging with Eclipse Plugin using Weblogic 6.1

    I am having a problem debugging using Eclipse 2.1 and the weblogic server plugin
    provided by this site.
    If I start the server and run the application everything works fine.
    If I put a breakpoint into my code and then run the application I do not see the
    application breaking at all. I am in debug view of Eclipse. The browser just
    hangs and will not respond. I can take the breakpoint off and refresh the browser
    and it works fine again.
    Do I need to have anything special in a configuration file for weblogic to enable
    debugging ?
    Do I need to start the JVM with any special parms. I am currently using the following
    startup options. I have tried a number of configurations on the startup options
    and nothing works.
    -hotspon
    -ms64m
    -mx256m
    -Xdebug
    -Djava.compiler=none
    -Xnoagent
    -Dweblogic.ProductionModeEnabled=false
    I am using Weblogic 6.1 and JDK 1.3.1_09
    Thanks in advance for any help...

    Mark,
    Please post this in the weblogic.developer.interest.general newsgroup
    Thanks
    Raj Alagumalai
    WebLogic Workshop Support
    "Mark Hartnett" <[email protected]> wrote in message
    news:3f57a4a3$[email protected]..
    >
    I am having a problem debugging using Eclipse 2.1 and the weblogic serverplugin
    provided by this site.
    If I start the server and run the application everything works fine.
    If I put a breakpoint into my code and then run the application I do notsee the
    application breaking at all. I am in debug view of Eclipse. The browserjust
    hangs and will not respond. I can take the breakpoint off and refresh thebrowser
    and it works fine again.
    Do I need to have anything special in a configuration file for weblogic toenable
    debugging ?
    Do I need to start the JVM with any special parms. I am currently usingthe following
    startup options. I have tried a number of configurations on the startupoptions
    and nothing works.
    -hotspon
    -ms64m
    -mx256m
    -Xdebug
    -Djava.compiler=none
    -Xnoagent
    -Dweblogic.ProductionModeEnabled=false
    I am using Weblogic 6.1 and JDK 1.3.1_09
    Thanks in advance for any help...

  • OC4J debug with Eclipse

    I been trying to debug a oc4j application with eclipse but so far I can only see variables like
    ' this IndexAction,
    arg0 ActionMapping,
    arg1 null,
    arg2 EvermindHttpServletRequest,
    arg3 EvermindHttpServletResponse' ,
    I did setup Ant compile to create an *.ear in debug.
    classpath="${libclasspath};${build}/${classes}" debug="true"
         debuglevel="lines, vars, source"/>
    Also, I cannot place a watch file in any variable.
    Is there a configuration that I need to do with the java compile or OC4J to be able to see the content of the variables.
    Thank you
    P.S. with Jdev I'm able to debug with the embedeed-OC4J but the config of the \j2ee\home\config\*.xml files are totally different.

    Starting oas server with this command, -Xdebug -Xrunjdwp:transport=dt_shmem,server=y,suspend=n,address=4000,
    Eclipse debugger cannot connect anymore but apparently dt_shmem is used for windows machines and dt_socked for unix.
    Any hints would be greatly appreciated.

  • JSP Debugging with Eclipse 3.2 WTP

    I am using OC4J 10.1.3 Standalone and the latest version of Eclipse WTP. Has anybody been able to debug JSP pages with this configuration? I have found a few references to getting remote debugging to work using JDeveloper, but nothing regarding WTP.
    I have tried setting the debug <init-param> to class, but the breakpoints are not hit when starting the server in debug mode. I have also set the debug_mode and emit_debuginfo init parameters to true. The development attribute in the orion-web-app element is set to true.
    I have tried starting OC4J using the following command:
    java -Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=4000 -jar oc4j.jar
    and then debugging through Eclipse using a Remote Java Application launcher and connecting to port 4000. Again, no breakpoint is hit even though Eclipse does connect ok to port 4000.
    I am trying to debug a simple JSP named index.jsp with a breakpoint on the line <% out.print("Hello, World!"); %>. Nothing fancy.
    Do I need to use the JspOjcCompiler compiler even though I am not using JDeveloper? I was not able to get this compiler to work. It was failing with the _index class not found.
    Thanks,
    Dave

    Hi, I didn't get an email notifying me of a response to this. Just happened to check myself.
              But basically you want to point the weblogic server directly to your workspace (src code) so it can detect a change. THis is from our doc below. You may also write an ant script specific to weblogic that redeploys the app and reloads the xml and prop files without restarting the server.
              1.     Start up your Weblogic domain server (i.e., C:\Domains\devDomain\startWebLogic.cmd).
              2.     Go to url, http://localhost:7001/console and log in (weblogic, weblogic).
              3.     On the left menu, click Deployments, then Lock & Edit button above it, and then the Install button in the main panel.
              4.     Change the location to the web folder in your project workspace (C:\Eclipse\workspace\<projectname>\web) Click Next.
              5.     Leave checked the Install this deployment as an application and click Next.
              6.     Put name for Name of deployment. . From here you can click Finish.
              7.     Click Activate Changes. Then check the deployment box and click Start button and Servicing all requests (in Deployments panel). Then click Yes to start it on the next page
              8.     Enter the URL of the application. This example is
              http://localhost:7001/web/index.htm
              The ?web? was the name of the web folder we deployed from. In the future you could name this something different if deploying from this console so the url?s do not conflict.
              Edited by mwooten77 at 01/18/2007 9:34 AM
              Edited by mwooten77 at 01/18/2007 9:35 AM

  • Debugging with Eclipse CDT

    Hi,
    I've successfully configured the CDT to point to Flascc toolchain and it actually produces a 3.0 MB air executable (yay). (Though I don't know how to replase O3 switch with -O4 switch and also don't know how to change the name of the output file to Out.swf in case of -emit-swf. help/hints appreciated)
    I tried to configure flascc gdb with CDT (local app debugging) but failed. Can anyone tell how to configure CDT to debug swf files ? Local, attached or remote debugging, anying please ? I am using Mac OSX.

    I was once able to get FlasCC gdb working within Eclipse on a Mac.  I'm not sure if that will work with an AIR executable.
    These were the rough instructions of how I got debugging setup.  Your mileage may vary and you may need to make some changes based on how your project is setup.
    When debugging using FlasCC GDB you need to set an environment variable called FLASCC_GDB_RUNTIME that points to the application to launch the SWF with. This will either be a standalone Flash Player Debugger or a browser that has a Flash Player Debugger plugin.
    To set this variable in Eclipse:
    Right Click the Project > Properties
    C/C++ Build > Environment
    Click Add
    Name: FLASCC_GDB_RUNTIME
    Value: /Users/path/to/runtimes/player/11.1/mac/Flash Player Debugger.app
    Next create a new debug configuration:
    Click the "Green Bug Button Down Arrow"
    Click Debug Configurations...
    Create a new "C/C++ Attach to Application" configuration
    Set the "C/C++ Application:" field to your SWF using the Browse button
    Select the Debugger tab
    Change the "GDB debugger:" field to point to the gdb in your alchemy build using the Browse button
    Click Debug
    Click New...
    Select the SWF file
    At this point the debugger view should take over and show what appears to be a source not found error. Ignore this error by pressing the green continue button.You should now be broken at main.If you are using Windows you may need to add a path mapping so CDT knows how to map /cygdrive/c/ style paths to native C:/ style paths:
    In your Debug Configuration go to the Source tab
    Click Add...
    Choose Path Mapping and click OK
    Click Add
    Set the Compilation Path to the Cygwin style path to your source drive (/cygdrive/c/)
    Set the Local file system path to the Windows style path to your source drive (C:/)
    Note: Recent versions of Eclipse may have broken this workflow, so you may need to try an older build of Eclipse.
    Note: Debugging is not supported on projector executables, only on SWFs running in the standalone Flash Player Debugger or in a browser that has the Flash Player Debugger installed.

  • Remote debugging with Eclipse and WS7

    Any idea how I can set this up?
    Thanks

    Not true. You can do it through Eclipse with settings set in the server.xml <jvm> tag. I know because I asked this quetion a few years ago and implented the information.
    Why am I asking again. Well I lost the e-mail with the information (Heh the inbox got full and I dumped old e-mails) Now I'm collecting old tips to keep just in case I run across the problem again. Not every company moves on to the last technology. Some hang on to some out dated stuff.
    Thanks for the suggestion I know of NetBeans and think its one of many great IDE tools.

  • Remote debuging with Eclipse and Sun WebServer 7

    Does any have an Idea how this can be done?
    Thanks

    This is not the right forum for this question. The right forum might be http://forum.java.sun.com/forum.jspa?forumID=759

  • Remote Debugging w/Eclipse Transport Error

    I am requesting help on a problem I am encountering using remote debugging with eclipse and Weblogic 8.1.2. I have successfully used remote debugging in the past with other application servers, but I have been unsuccessful with Weblogic 8.1.
    I have set the remote debugging options both on the weblogic start script as well as configured eclipse to connect to the port that was defined in the startup script (See Below). When I start the remote debugger within eclipse and it seems to connect properly. Once I set a break point or remove a break point, weblogic generates a "Transport error, error code = -1" and stops the debugger with in Eclipse.
    At this point I am at a loss of what is causing this error. I would appreciate any help on this issue.
    Operating System: WindowsXP Pro
    Weblogic Version: 8.1.2
    Eclipse 3.2
    JDK 1.4.2
    JAVA_OPTS: =-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,address=7777,server=y,suspend=n
    Thanks!
    Rafael Salazar

    Interesting. I tried it and it works. you might want to check your Eclipse port number. In addition try netstat -a to see if port 1044 is active.
    This one might also help: http://www.jacoozi.com/index.php?option=com_content&task=view&id=119&Itemid=134
    Let me know if you have any questions.

  • How to debug weblogic 8.1 with eclipse ?

    Hi,
    how can I debug my weblogic 8.1 application ?
    I`m using eclipse, but the plugin I´ve got, is only for versions 6.x and 7.0 .
    So I tried remote debugging but eclipse could not connect to the VM, I do not
    know why.
    Any ideas ??
    Thanks
    Holger

    It is quite easy to rewrite the plugin to work with 8.1
    We have done so - please contact me if you want the plugin.
    Sincerely,
    Paul Nyheim
    "HOs" <[email protected]> wrote in message
    news:3f72ce93$[email protected]..
    >
    Hi,
    how can I debug my weblogic 8.1 application ?
    I`m using eclipse, but the plugin I´ve got, is only for versions 6.x and7.0 .
    So I tried remote debugging but eclipse could not connect to the VM, I donot
    know why.
    Any ideas ??
    Thanks
    Holger

  • Myrio debugging shared library (so) with eclipse

    Hi,
    has anybody experience with debugging shared library files in eclipse?
    I have created a shared library file in eclipse and downloaded it on the myrio device into following location: \usr\lib. I´m able to access the file in Labview.....this wors great. But I want to debug this file in Eclipse like explained in the following NI tutorial: http://www.ni.com/tutorial/14690/en/
    But I'm not able to get it running. In the debug view of Eclipse I get 2 Errors. In the Disassembly window: "Cannot access memory at address 0x0" .
    And the other is:  "No source available for "" "
    Has anybody experience what I must do to get it running?
    Thank you very much!
    regards
    Holger

    Has nobody experience with this problem?
    I will explain a little bit more......
    I want to debug (with setting Breakpoints) a shared obefect file in Eclipse. For convenience I created a very simple C File:
    This is the dedicated project tree with the succesfully created so-file:
    I copied the created so-file to the MyRIO device with the remote system Explorer to the following location: \usr\local\lib
    Next I have make a power-cycle from the myRIO device. After that I can sucessfully include the .so file in Labview. This works all great to this point:
    But I want more.....I want debug the c-file in Eclipse and follow the NI tutorial: http://www.ni.com/tutorial/14690/en/
    I have set up the debugger like explained in the tutorial:
    But if I debug I get this window with several errors:
    Hope someone can help me to get it running!
    Many thanks!
    Holger

  • Debugging JSP with Eclipse

    Hi, how to connect to Oracle Database 9i R2 with Eclipse?

    Hi, I didn't get an email notifying me of a response to this. Just happened to check myself.
              But basically you want to point the weblogic server directly to your workspace (src code) so it can detect a change. THis is from our doc below. You may also write an ant script specific to weblogic that redeploys the app and reloads the xml and prop files without restarting the server.
              1.     Start up your Weblogic domain server (i.e., C:\Domains\devDomain\startWebLogic.cmd).
              2.     Go to url, http://localhost:7001/console and log in (weblogic, weblogic).
              3.     On the left menu, click Deployments, then Lock & Edit button above it, and then the Install button in the main panel.
              4.     Change the location to the web folder in your project workspace (C:\Eclipse\workspace\<projectname>\web) Click Next.
              5.     Leave checked the Install this deployment as an application and click Next.
              6.     Put name for Name of deployment. . From here you can click Finish.
              7.     Click Activate Changes. Then check the deployment box and click Start button and Servicing all requests (in Deployments panel). Then click Yes to start it on the next page
              8.     Enter the URL of the application. This example is
              http://localhost:7001/web/index.htm
              The ?web? was the name of the web folder we deployed from. In the future you could name this something different if deploying from this console so the url?s do not conflict.
              Edited by mwooten77 at 01/18/2007 9:34 AM
              Edited by mwooten77 at 01/18/2007 9:35 AM

  • Error with eclipse

    hi,
    i know this is not a web app forum,but as my question is with eclipse i am posting my question here
    i am trying to debug my application through eclipse. i have added source and jars to eclipse debug environment. when i dubug i am getting follwoing error,where its working with tomcat deployment . any suggestion?
    SEVERE: IOException while loading persisted sessions: java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.log4j.Logger
    java.io.WriteAbortedException: writing aborted; java.io.NotSerializableException: org.apache.log4j.Logger

    Crosspost: http://forum.java.sun.com/thread.jspa?threadID=5228948&tstart=0
    You've been told before also. Is it difficult to comprehend?

  • Configuring Oracle EAServer 10g 10.1.2.0.2 with Eclipse

    Hi ,
    Am working on a JAVA/J2EE/Struts application using Eclipse 3.1 and am using
    Oracle Enterprise Manager 10g Application Server 10.1.2.0.2 for deploying the application. Currently am building my application to an ear file and then deploying it manually on the Application Server control to run it every time. Becouse of this am not able to debug the application through eclipse. I need to know whether we can configure Oracle Enterprise Manager 10g 10.1.2.0.2 Enterprise Application Server with Eclipse 3.1 just as we are doing with eclipse tomcat or eclipseweblogic so that i can directly run or debug the application from Eclipse instead of creating a an ear and deploying it to the server to run it. Am using Oracle application server for the first time.
    I tried searching but couldnt find any relevant document /info on this. I got some info on configuring Oracle 10g Application Server 10.1.3 with eclipse,but none about 10.1.2.0.2.
    Any help regarding this is appreciated
    Thanks in advance
    grate

    Hi Steve,
    Thanks for your reply. Am new to Oracle application server. The version that i mentioned ie. 10.1.2 was already installed in my laptop when i got it for working. Am configuring the deployment and JNDI services after i start the sever and bring up the server control through IE after entering the username and password. So i couldnt understand the relevance of a standalone server at this point, and i am new to the name OC4J , why is it called so?(am sorry if am asking any stupid question, but to be frank i dont know any thing about oracle application server untill i came across it recently ) . The document that you followed is the same one that me too found while searching in net. But i couldnt follow the steps becouse in eclispe when i tried to configure the server runtime its throwed error saying it couldnt find any folder in the 10.1.2 installion directory named "...../home/j2ee" . But there was a folder called J2ee in my oracle installion folder so i just tried to map it, but it again throwed error saying "couldnt find asm.jar in j2ee/lib " . So am stuck up at this point.Should i go for oracle 10.1.3 or OC4J as you mentioned? Please give me some insights regarding this.
    Regards
    Grate

  • Debugging using Eclipse and non-standalone 10g

    Hey - is it possible to perform remote debugging using Eclipse against the non-standalone version of the 10g App Server? I've tried some of the hints listed in this forum (the most promising seemed to be starting oc4j using this command-line command:
    java -classic -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=2727 -jar oc4j.jar, then connecting with the Eclipse debugger, which I managed to do - though I had to change one of the parameters because the designated file [a timezone file] could not be found - after the change things seemed to start up correctly. However, when I tried to hit http://localhost:2727 I got a "server not found or DNS error"). I don't know if the debugging works with the non-standalone version of 10g or not... or if I should be using some other startup command so hopefully y'all can help :)
    Thanks,
    Scott

    Scott, apparently you have fallen pray of one of the most common misunderstandings of oc4j. Oc4j, namely, Oracle Application Server Container for j2ee, is a COMPLETE j2ee server. It supports http and https by itself. It is also an ejb container and a lot more. It can be used as a standalone or, with a different configuration, integrated into Oracle Application Server as its core component.
    When you use the command "java -jar oc4j.jar ...", you are starting an instance of "standalone oc4j" or "oc4j standalone" as mentioned above, albeit from an OAS installation. In contrast, you can start one instance of Oracle Application Server by "<ORACLE_HOME>/opmn/bin/opmn startall", which will starts, besides several other components, one or several oc4j processes as its oc4j component. This OAS is an HTTP server that takes initial requests and routs the requests that are for OC4J to OC4J server. It may handle some of the requests by itself, or routs other http requests to other components, like mod_plsql. Finally, what we usually called "farm" is a collection of OAS clusters and instances that share the same OAS Infrastructure.
    What I have written is just a tiny mini introduction of the OAS. For starters, oc4j is for use by development and small-medium scale production deployments. Plese take a look at the book "Oracle Application Server Containers for J2EE Standalone User's Guide" and then, "Oracle Application Server Concepts". You can find them by
    1. go to http://otn.oracle.com
    2. select "documentation" pull-down menu and then "application server"
    3. go to the first "view library" or the one suits you.
    4. view the "Oracle Application Server Concepts"
    5. or go to "List of All Books" and you will see all of them!
    Well, the best place to self-teach oc4j is, besides googling with site:oracle.com, the oc4j homepage,
    http://www.oracle.com/technology/tech/java/oc4j/index.html
    The above is written in case you need more information. Now let me come to your specific questions.
    1. how to hit the OC4J instance directly, bypassing an HTTP server entry?Since what you started is an oc4j standalone, it does not make any sense to say "bypassing an HTTP server entry". Oc4j instance itself IS an http server. To access its http service, try
    http://<yourHostNameOrIP>:<httpPort>/<yourAppWebContextRoot>
    where the httpPort and yourAppWebContextRoot can be found in default-web-site.xml or http-web-site.xml. Which one or other web-site.xmls are effective is determined in <OC4J_HOME>/config/server.xml. Here the OC4J_HOME refers to your "C:/OraHome1/j2ee/home".
    2. how to get the HTTP server started via the command-line startup?As said above, you already got an HTTP server running.
    What I suggest for you is to play with oc4j standalone. You can come to OAS later:
    1. download oc4j standalone distribution, "Oracle Containers for J2EE 10g (10.1.3) Developer Preview 3", from here "http://www.oracle.com/technology/software/products/ias/preview.html"
    2. unzip the downloaded file. What you get is basically the same to a part of your existing "C:/OraHome". Go to j2ee/home. Run
    java -Xdebug -Xnoagent -Djava.compiler=none -Xrunjdwp:transport=dt_socket,server=y,suspend=y,address=3301 -jar oc4j.jar
    Make sure you are using java 1.4.2 sdk.
    3. "new" your remote debugger from Eclicpse and specify the hostname and port 3301.
    4. http://<yourHost>:8888/
    A further note: to debug jsp's, you can use Jdeveloper that allows you to set debug points directly in a jsp that is running in its embeded oc4j server.

  • Error Messages/Building Plug-ins with Eclipse SDK or VCExpress 2005

    Hi,
    I am an newbie in building InDesign-Plugins. I have installed the Adobe InDesign Plug-in Editor on my Windows XP PC (InDesign CS3 SDK, Eclipse, JRE 1.5, Visual Studio 2005 (VCExpress Edition for C++)).
    I tried to build one of the example Plug-ins with Eclipse. After startting the build process of the "transparencyeffectui"-example or the "DollyXs"-example the following message appears:
    Buildfile: F:\SDK\workspace\DollyTest\build.xml
    win:
    [echo] Now compiling FR file F:\adobe_indesign_cs3_products_sdk_503win\source\sdksamples\dollytest\Dolly.fr for win
    [delete] Deleting: F:\SDK\workspace\DollyTest\ODFRC.res
    [echo] FR Compilation Complete: Attempting to build C++ files...
    BUILD FAILED
    F:\SDK\workspace\DollyTest\build.xml:66: Execute failed: java.io.IOException: Cannot run program "D:\Programme\Microsoft Visual Studio 5\Common7\IDE\devenv.com": CreateProcess error=2, Das System kann die angegebene Datei nicht finden
    Total time: 485 milliseconds
    The compiler did't start because the file "devenv.com" is missing in the "Microsoft Visual Studio 2005/Common7/IDE"-directory.
    The free "Visual Studio Express Edition" is delivered withot this file.
    Where can i get this file? Or is it possible to change the exec line in the built-xml-file to get the Compiler started?
    So I started the VCExpress-Programm an opened the transparencyeffetui-Project-File to start the build process. But again i got an error message:
    1>------ Erstellen gestartet: Projekt: TransparencyEffectUI, Konfiguration: Debug Win32 ------
    1>Performing Custom Build Step
    1>Compiling...
    1>VCPlugInHeaders.cpp
    1>f:\adobe_indesign_cs3_products_sdk_503win\source\precomp\common\WShukHeaders.h(70) : fatal error C1083: Cannot open include file: 'windows.h': No such file or directory
    1>Build log was saved at "file://f:\adobe_indesign_cs3_products_sdk_503win\build\win\objD\TransparencyEffectUI\Bui ldLog.htm"
    1>TransparencyEffectUI - 1 error(s), 0 warning(s)
    ========== Erstellen: 0 erfolgreich, Fehler bei 1, 0 aktuell, 0 übersprungen ==========
    There is no "windows.h"-file in the SDK directory. I tried to include all available SDK-"inculde"-directories to the VC++ directories in the option menue in VCExpress but i got the same error message.
    Any ideas how to get the plug-in build with Eclipse or Visual Studio Express 2005 (C++)?
    zaphodbeeblebroxxx

    OK, so first some background:
    1) The basic process goes like this:
    a) one release doc (edited by the developer, presumably) and the
    template docs are copied to the build area
    b) Each doc is unzipped (ODT's are just ZIP files) into a subdir
    c) The doc contents are copied around; this is to allow Ant to
    replace its special @VAR@ variables in the document content
    d) The docs are zipped back up into ODTs
    e) The ODTs are converted into PDFs using OOo's macro functionality
    Here are the troubleshooting steps I would apply:
    1) Make sure the external.odt file exists - check the build area
    (//content/build/<pluginname>/tmp/) and can be opened using normal
    OpenOffice
    2) Check that the release.odt file exists (same location) and can be
    opened using normal OpenOffice
    3) See if you can manually convert the external.odt file into a PDF -
    the command we use is simply:
    soffice -invisible
    macro:///Standard.Collectors.External2PDF(${pkgdir}/tmp/external.odt)
    (replace ${pkgdir} with the build directory path).
    If all that works, then the Ant build process should work.
    Also - what does that OpenOffice error popup say?
    DCorlette
    DCorlette's Profile: http://forums.novell.com/member.php?userid=4437
    View this thread: http://forums.novell.com/showthread.php?t=416875

Maybe you are looking for