Remote debug application static port

Hi!
I wonder if is it possible to assing static port to remote debuggable application? I know that NI Service Locater manage the dynamic port that the application will be using, but than I have to open all the ports on firewall, because I don't know which port the remote debuggable application is using currently.
Thanks, andrej

Hi all,
has this ever been solved ?
I have the same problem. A stand-alone firewall prevents opening up the complete high port range.
So port 3580 has been opened and the NI service locator can be contacted, I see the debuggable applications on the remote machine.
But the Debuggable application gets a "random" port assigned by the NI service locator (?), which cannot be reached through the dedicated FW.
So can I restrict the NI service locator or Labview application to use a specific port ?
Thx & br
Martin

Similar Messages

  • Remote debugging in sun one application server 8.1 options

    Hello Techies,
    I want to remote debug sun one application server 8.1
    I had followed remote debugging documentation on MyEclipse site. My sun one server is running under 8080 port. so I had done the modifications in domain.xml as follows
    debug-enabled="true" debug-options="-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=8080"When i change this address to 8080, I am unable to start up the server. Can you guys tell me am i missing any thing ??
    Why I am unable to start up the server?? If i change the port no to 8000 I am able to start up the server.
    regards,
    Krishna

    And just to make an unfounded guess: do you have to specify the debug port or the request port there? If it's the former, it'll stand in its own way.

  • Oracle application server 10g -remote debugging

    We have oracle application server 10g with oc4j. How do we configure App server to start in debug mode so remote debugging from different machine can be done.
    i configured remote debugging options in opmn.xml .in the jdeveloper i attached to JPDA .when i start remote debugging i have given hostname as localhost and portnumber as 5000.
    i am getting this error
    Debugger attempting to connect to remote process at localhost 5000......................
    Debugger unable to connect to remote process.
    I have done already remote debugging using oc4j stadalone app server.but this is the first time i am trying to connect with oracle application server 10g
    opmn.xml
    <ias-component id="OC4J">
    <process-type id="home" module-id="OC4J" status="enabled">
    <module-data>
    <category id="start-parameters">
    <data id="java-options" value="-Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5000 -Xdebug -Xnoagent -Djava.compiler=NONE -Xms512m -Xmx1024m -Xss128k "/>
    <data id="oc4j-options" value="-userThreads -properties -out log/out.log -err log/err.log"/>
    </category>
    <category id="stop-parameters">
    <data id="java-options" value="-Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy -Djava.awt.headless=true"/>
    </category>
    <category id="restart-parameters">
    <data id="no-reverseping-failed-ping-limit" value="2"/>
    <data id="reverseping-failed-ping-limit" value="10"/>
    </category>
    </module-data>
    <start timeout="600" retry="2"/>
    <stop timeout="120"/>
    <restart timeout="720" retry="2"/>
    <port id="ajp" range="3301-3400"/>
    <port id="rmi" range="3201-3300"/>
    <port id="jms" range="3701-3800"/>
    <process-set id="default_island" numprocs="1"/>
    </process-type>
    </ias-component>

    Please refer
    Re: Remote debugging with OC4J

  • Remote debugging of Sun Application server

    Hello Techies,
    I am using remote sun application server 6.0. I am having one web instance in this server.
    I want to know how can i debug my instance ??
    I am using Eclipse ide. I had used the option Run>Debug>RemoteJavaApplication> I had given my host name n port no.
    I am getting unable to connect remote VM.
    How can I solve this problem?? Plz help regarding this one.
    regards,
    Ramu

    Hi friends,
    In a java application, When we try to open a pdf from a hyperlink, it opens it on the page itself and displays all garbage.
    It should open in adobe reader. Is it possible. If yes, How ?
    Regards,
    Jassie.

  • Trying to install WSUS role on Windows Server 2012 R2 using dedicated SQL Instance with static port on remote SQL Server 2012 SP1 CU7 on Windows Server 2012 R2.

    I am trying to install WSUS role on Windows Server 2012 R2 using dedicated SQL Instance with static port on remote SQL Server 2012 SP1 CU7 on Windows Server 2012 R2.
    It verifies the connection and then throws the error:
    The request to add or remove features on the specified server failed. The operation cannot be completed, because the server you specified requires a restart.
    WSUS Server : Windows Server 2012 R2
    Remote SQL Server: 2012 SP1 CU7 hosted on Windows Server 2012 R2
    Please let me know if anyone has experienced this issue.

    We were trying to install WSUS role on Windows Server 2012 R2 using dedicated SQL Instance with static port on remote SQL Server 2012 SP1 CU7 on Windows Server 2012 R2.
    It verifies the connection and then throws the error:
    The request to add or remove features on the specified server failed. The operation cannot be completed, because the server you specified requires a restart.
    Same error even after rebooting the server multiple times.
    WSUS Server : Windows Server Standard2012 R2
    Remote SQL Server: Windows Server 2012 SP1 CU7 hosted on Windows Server 2012 R2
    Event ID 7000:
    The Windows Internal Database service failed to start due to the following error:
    The service did not start due to a logon failure.
    Event ID 7041
    The MSSQL$MICROSOFT##WID service was unable to log on as NT SERVICE\MSSQL$MICROSOFT##WID with the currently configured password due to the following error:
    Logon failure: the user has not been granted the requested logon type at this computer.
    Service: MSSQL$MICROSOFT##WID
    Domain and account: NT SERVICE\MSSQL$MICROSOFT##WID
    This service account does not have the required user right "Log on as a service."
    User Action
    Assign "Log on as a service" to the service account on this computer. You can use Local Security Settings (Secpol.msc) to do this. If this computer is a node in a cluster, check that this user
    right is assigned to the Cluster service account on all nodes in the cluster.
    If you have already assigned this user right to the service account, and the user right appears to be removed, check with your domain administrator to find out if a Group Policy object associated
    with this node might be removing the right.
    I found following article:
    "MSSQL$MICROSOFT##WID service was unable to log on as NT SERVICE\MSSQL$MICROSOFT##WID" error when you install WID in Windows Server 2012
    http://support.microsoft.com/kb/2832204/en-us
    To work around the issue, use one of the following methods:
    Assign the Log on as a service user right to NT SERVICE\ALL SERVICES in the GPO that defines the user right.
    Exclude the computer from the GPO that defines the user right.
    We moved the SCCM server to OU where no policies were getting applied and then applied the new GPO to that OU. Restarted the server and we were able to install WSUS role.
    Regards
    PR

  • How to create Remote Desktop Application in C# or port it from HTML5/JS project ?

    Hi
    How can create Remote Desktop Application in C# template ? I were searching on google but not found example or API for this.
    If can, please suggest for me some solution, example and document.
    And I have JavaScript project template Remote Desktop Application. Can i port it to c# ? Or use Webview to show it ?
    I were create demo use webview to show it but it not run. Maybe i do some mistake or can't be do it.
    Thanks.

    I have no other options.  We already provide the RDP plug-in for JavaScript. I'm not sure what else is needed for this.
    Matt Small - Microsoft Escalation Engineer - Forum Moderator
    If my reply answers your question, please mark this post as answered.
    NOTE: If I ask for code, please provide something that I can drop directly into a project and run (including XAML), or an actual application project. I'm trying to help a lot of people, so I don't have time to figure out weird snippets with
    undefined objects and unknown namespaces.
    My project needs work with C# Windows Store. So I need RDP on C#, not JS. If we don't support C#, do we have a RDP spec on Windows 8.1 so that we can follow that spec to implement with native code to support RDP?

  • Remote debug a Flash file running inside an application

    Hello everyone.
    I'm an application developer, and my standard usage of Flash is as follows:
    I'm creating an executable application, which contains a ShockwaveFlash object instance, which in turn is displaying a Flash Movie Clip - also created by myself. The executable application and the contained Flash clip are communicating via the ActionScript ExternalInterface (using XML strings) and the FSCommand.
    I'd like to be able to debug the ActionScript code of the Flash file while I'm running/debugging my executable application. For that, I need to be able to start a remote debugging session from the Flash object running inside my executable. Problem is, I did not find any way of doing this.
    When I publish the Flash SWF file with "permit debugging" checked, I'm able to start a remote debugging session when I'm displaying the file in a player or a browser (the "debugging" option is shown at the right-click menu of the Flash object), but I'm not able to do the same with the object inside my executable (the "debugging" option doesn't exist on the menu).
    Environment Details:
    The executable application is using the ShockwaveFlash COM file to create the ShockwaveFlash object.
    The executable application is created using VB.NET, Visual Studio 2008, .NET 3.5.
    The Flash SWF file is created using Adobe Flash Professional CS4.
    I'm developing under Windows XP (SP3).
    Any bits of information will be much appreciated!
    M.A. Hanin

    I'm not sure how to do specifically what you are looking for (if possible at all.....)
    But, I recommend checking out deMonsterDebugger.  It is an AIR application with some classes for use.  You simply import the classes into your Flash project, instantiate a debugger object, and then compile.
    If you open the AIR application when the SWF is running (locally, in a browser, and I imagine in another application) the AIR application serves as a debugging engine, similar to the in-Flash debugging.
    There is a bit more to it than that, but I think that this is your best bet for what you are looking for.
    http://demonsterdebugger.com/

  • Remote Debugging Weblogic 92 application using Eclipse 3.4

    Hi,
    1. I have the below debug options in the startweblogic script.
    set JAVA_OPTIONS=-Xdebug -Xnoagent -Djava.compiler=NONE -Xrunjdwp:transport=dt_socket,server=y,address=javadebug,suspend=n
    2. I have configured remote debugging in Eclipse. Connection type - Standard Socket (attach), host =localhost, port 7001. 7001 is the listen port that I have specified in config.xml.
    3. When I run weblogic, I see the message listening for transport dt_socket address. Since address=javadebug, each time the dt_socket address is different.
    4. In Eclipse IDE, the debug prespective indicates the server has started. But when I click on the debug buttin in the Debug configuration dialog, I get the error below
    Failed to connect to remote VM. Connection timed out.
    org.eclipse.jdi.TimeoutException
    Note: Another thread in this forum mentions using the same port that is specified in the java_options but that did not work either. Any ideas what might be wrong?
    Thanks.
    RS.

    I think that value of "javadebug" is only used for shared memory transport, not socket transport. You have to choose a port that isn't being used by anything else. The value 8453 is a typical default value for this. Specify that instead of "javadebug", and use 8453 in your connection from Eclipse.

  • Remote Debugging of a clickonce application

    Hi,
    i'm using Visual Studio 2012 and having vb.net projects. I'm still pretty new with vb.net at all. I want now establish remote debugging to a second system for a clickonce application.
    I have tried to follow the MSDN remote debugging instructions without success and tried to combine it with information i read from different other sources although without success
    1. Remote Debug Monitor is installed on the remote system and is running.
    2. following setting are actually set in the project properties under the debug tab:
     "Start external program" is selected. The path to the clickonce application on the remotesystem is included
    \\remotesystem\C:\Users\Test\desktop\clickonceapplication
    Although "Use remote machine" is checked and the remotemsystem name is included. As "Working directory" i have set 'C:\Temp' as working directory.
    3. 
    The connection to the remote systems seems to work, the Remote Monitor log the access to it. But my system says in a msgbox "Visual Studio cannot debug because the debug target  '\\remotesystem\C:\Users\Test\desktop\clickonceapplication' is not
    an exe file.
    I would appreciate if someone could help me out and in best case describe step by step what to do.
    Regards
    Eugen

    Thanks you for your quick replies so far.
    @Jack:
    I’ve tried what you mentioned. This are the project properties on my computer. There is only one Tab called ‘General’. I can't post pictures so I describe the properties:
    Application
     => Executable: I've selected the path to the remote computer here \\remotesystem\desktop\clickonceapplication (desktop is shared). This path seems to be converted to a path with C:\USERS\Me\AppData\Local\Apps\2.0\...\ clickonceapplication.exe
    Parameters
    => Argument: nothing
    => Attach: No
    => Connection: Remote with Windows authentication
    => Debugger Type: Mixed
    => Environment: Default
    => Machine: remotesystem
    =>SQL Debug Engine: Yes
    => Working directory: c:\temp  Question: Is this on my computer or on the remote system? If on the remote system, has it to be a shared path?
    By clicking Debug, Debug Monitor shows activity again but I get the following error message now:
    Unable to start program
    'C:\Users\Me\AppData\Local\Apps\2.0\... \ clickonceapplication.exe'
    'c:\temp' is not a valid working directory
    @ Pavel A
    This change ends in the same error message as before:
    "Visual Studio cannot debug because the debug target ' ‘C:\Users\Test\desktop\clickonceapplication' is not an exe file.
    regards
    Eugen

  • Profiling a remote java application

    First of all i want to say the technologies i use:Eclipse , Java ,
    I made a debug on a remote java application, which runs on a hp ux server.For this i went to debug dialog -> Remote Java application and i introduced:
    - at Hostname:172.26 ......( IP address of the server where the application runs) and at he port number 8000. Works perfect.I started also the agent controller
    with the default configuration(port 10006).
    Then i wanted to make profiling on this application. I installed what i had: EMF 2.3.0 and agent Controller from the address http://www.eclipse.org/tptp/home/downloads/?ver=4.4.0.
    If i run the SampleClient as in the agent controller documentation ,the example work(I received the expected message).
    In Eclipse right click onthe application ->profile as ->open profile dialog .Here i have to fill in :
    - "host name or IP address" (here i think it should be IP of the server:172.26.... where the application runs)
    - "agent controller port" :the default port which is 10006. Then i enter profile.
    But appears an unexpected error:
    org.eclipse.core.runtime.CoreException
    Agent Controller is unavailable under port 10002. Make sure that the service is started and the port number is correct under preferences.
    org.eclipse.tptp.platform.execution.exceptions.AgentControllerUnavailableException
    at org.eclipse.tptp.platform.jvmti.client.internal.launcher.util.AgentControllerDelegate.getConnection(AgentControllerDelegate.java:226)
    at org.eclipse.tptp.platform.jvmti.client.internal.launcher.util.AgentControllerDelegate.getConnection(AgentControllerDelegate.java:71)
    at org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIDelegateHelper.connectToAgentController(TIDelegateHelper.java:388)
    at org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIDelegateHelper.launch(TIDelegateHelper.java:308)
    at org.eclipse.tptp.platform.jvmti.client.internal.launcher.TIJavaLauncherDelegate.launch(TIJavaLauncherDelegate.java:37)
    at org.eclipse.tptp.trace.ui.internal.launcher.core.LauncherUtility.delegateInit(LauncherUtility.java:1153)
    at org.eclipse.tptp.trace.ui.provisional.launcher.PrimaryLaunchDelegate.run(PrimaryLaunchDelegate.java:196)
    at java.lang.Thread.run(Unknown Source)
    Nowhere i introduce the port number 8000. I don't think i filled in the correct information(specially the ports).
    Agent Controller is on.
    If somebody worked with this kind of technology please help me. Is urgent!
    Thank you a lot!!!

    I am using HPjmeter, but i have problems.
    The dinamic analyze works well.The command option was: java -agentlib:jmeter name
    But the static analyze gets errors.The command option was: java -agentlib:hprof name.The error:
    hprof error:can't create temporary file java.hprof.txt.TMP[../../../src/share/demo/jvmti/hprog/hprof_init.c:775]
    What ca be the problem?

  • Remote Debugging w/9iAS  not working !

    I tried posting this in the app server area but apparently, it's too difficult for anyone to answer. No replies.
    We need to debug a deployed jsp that uses java beans.
    The jsp/java beans app is in jdevleoper 9.0.3.1 (windows 2000).
    I have deployed the application to Oracle 9ias java edition (9.0.3) on Red Hat Linux.
    I know how to modify the project settings in jdeveloper for remote debugging.
    when I start debug mode in jdeveloper I am prompted for the host name and port number for the remote debug session. What port do I use ?
    Do I need to do something to start 9ias at a certain port ? If so, how do I do this ?
    I have seen conflicting information on this that mainly refers to a standalone oc4j, not the oc4j in 9ias.
    Frank

    Hi,
    We have gotten many requests for collateral that details these steps. We are currently working on such a document. Keep posted to the JDeveloper OTN website http://otn.oracle.com/products/jdev for updates on this.
    -Stuart

  • How to enable remote debugging for a session other than the current one

    Hi all,
    I am trying to figure out how to enable remote debugging for a session other than the one I am currently using.
    More specifically, we have an application that is making database calls to Oracle 11gR2. Something is causing an exception during this invocation. My system is currently not set up to recompile said application, so I can't just add the debug call to the code and recompile. Therefore I would like to be able to log into the database (as sys, if necessary) and invoke dbms_debug_jdwp.connect_tcp on the desired session.
    The docs indicate that I should be able to do so:
    dbms_debug_jdwp.connect_tcp(
    host IN VARCHAR2,
    port IN VARCHAR2,
    session_id IN PLS_INTEGER := NULL,
    session_serial IN PLS_INTEGER := NULL,
    debug_role IN VARCHAR2 := NULL,
    debug_role_pwd IN VARCHAR2 := NULL,
    option_flags IN PLS_INTEGER := 0,
    extensions_cmd_set IN PLS_INTEGER := 128);
    But when I try (even as sys), I get the following:
    exec dbms_debug_jdwp.connect_tcp('1.2.3.4',5678,<session id>,<session serial>);ORA-00022: invalid session ID; access denied
    ORA-06512: at "SYS.DBMS_DEBUG_JDWP", line 68
    ORA-06512: at line 1
    00022. 00000 - "invalid session ID; access denied"
    *Cause:    Either the session specified does not exist or the caller
    does not have the privilege to access it.
    *Action:   Specify a valid session ID that you have privilege to access,
    that is either you own it or you have the CHANGE_USER privilege.
    I've tried granting the 'BECOME USER' privilege for the relevant users, but that didn't help. I read something about having to set some kind of ACL as of 11gR1, but the reference documentation was very confusing.
    Would someone be able to point me in the right direction? Is this even possible, or did I misread the documentation?

    Interesting deduction, that would be very useful indeed. I hate recompiling just to add the debug call, and it can't be done in our production environment. But it seems unlikely to me it would be implemented this way.
    I would cross-post this in the SQL AND PL/SQL forum though, as this is really a database issue, not with the SQL Developer tool. Do add the links to the other posts in each.
    Regards,
    K.

  • Cannot remote debug from JDev 10.1.3 on AS 10.1.2 running hotspot

    Hi,
    I've set up an embedded OC4J instance in an application server as described in the help topic, "Remote Debugging in OC4J" (with a few changes, such as the fact that I added startup options using the OC4J instance Admin page of EM, rather than at the command line (since the instance is embedded in a full AS). I followed the directions specifically for HotSpot, because that's the JVM the instance was set up to use, and I can't change it (I know OJVM enables lots more features, but that's the situation I'm in).
    I've also configured my project for remote debugging, ensuring the host name and port matches, and trying both "Attach to JDPA" and "Attach to OJVM" (these being the only two options, except for starting a listener, which I don't think will help with a web application).
    When I try to debug, though, I get:
    Debugger unable to connect to remote process.
    Should I be doing something differently?
    Thanks much,
    Avrom

    I had the delete key quit working after accidentally pressing a key sequent that included the delete key. I don't know what keys were involved, but the delete key from that point on did nothing.
    I am running JDeveloper 10.1.3.0.4 on Window XP.
    To resolve the problem, I set the keyboard Accelerators back to 'Default' in JDeveloper.
    I selected... Tools->Preferences->Accelerators
    then click on 'Load preset' then I chose 'Default'
    You may need to select something other than default for your platform, but that did the trick for me.

  • Remote Debugging (Jdev 10.1.3 to AS 10.1.3)

    Hi,
    I have been trying to do a remote debugging by connecting Jdeveloper (version 10.1.3 production) to AS 10.1.3 mid-tier but the OC4J instance seems to be crashing the moment the jdeveloper makes the connection. However, before the crash, jdeveloper takes about 5minutes to connect to the server.
    The OC4J is managed by opmn and not a standalone process. I am not sure if this makes any difference. Here are the changes that I made in the 10.1.3 server:
    *) Modified opmn.xml to add the below:
    <data id="java-options" value="-server -verbose:gc -Xmx512M -Xms128M -Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=43503 -XX:MaxPermSize=128M -XX:NewRatio=2 -XX:+PrintGCTimeStamps -XX:+UseTLAB -XX:ParallelGCThreads=2 -Djava.security.policy=$ORACLE_HOME/j2ee/oacore/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false"/>
    (also tried removing "-server" option)
    *) Modified orion-web.xml to add the below:
    <init-param>
    <param-name>debug_mode</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>developer_mode</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>encode_to_java</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>emit_debuginfo</param-name>
    <param-value>true</param-value>
    </init-param>
    <init-param>
    <param-name>jspjavacompiler</param-name>
    <param-value>oracle.jdevimpl.jsp.JspOjcCompiler</param-value>
    </init-param>
    *) Modified global-web-application.xml to add the below:
    <orion-web-app
    jsp-cache-directory="./persistence"
    servlet-webdir="/servlet"
    development="true" >
    I see the below message in the jdeveloper debug window when the OC4J instance crashes:
    Debuggee process virtual machine is Java HotSpot(TM) Server VM.
    Debuggee process is application server OC4J.
    To test JSPs or servlets, you must start a browser.
    Debugger disconnected from remote process.
    I do not see any error in application.log file.
    By setting up the remote debugging, I am hoping for a better portlet development experience.
    Any help is appreciated.
    Thanks,
    Pandian.
    Message was edited by:
    apandian

    The doc is kind of vague, but here's the root reference:
    http://download.oracle.com/docs/cd/B25221_04/core.1013/b15976/opmnxml.htm#sthref144
    There's a FAQ document that prescribes how the "restart" algorithm works, see 1.3:
    http://www.oracle.com/technology/products/ias/ohs/htdocs/opmn-1013-faq.pdf
    So to tweak this behaviour, you specify a speciifc <ping> element inside of the opmn.xml for the managed process you are using -- and set the timeout, interval, retry attributes to some combination that gives you a longer pause time.
    http://download.oracle.com/docs/cd/B25221_04/core.1013/b15976/common.htm#CACGAIGH
             <ias-component id="default_group">
                <process-type id="home" module-id="OC4J" status="enabled">
                   <module-data>
                      <category id="start-parameters">
                         <data id="java-options" value="-Xrs -server -XX:MaxPermSize=128M -ms512M -mx1024M -XX:AppendRatio=3 -Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false"/>
                      </category>
                      <category id="stop-parameters">
                         <data id="java-options" value="-Djava.security.policy=$ORACLE_HOME/j2ee/home/config/java2.policy -Djava.awt.headless=true -Dhttp.webdir.enable=false"/>
                      </category>
                   </module-data>
                   <start timeout="600" retry="2"/>
                   <stop timeout="120"/>
                   <restart timeout="720" retry="2"/>
                   <ping timeout="300" />
                   <port id="default-web-site" range="8888" protocol="ajp"/>
                   <port id="rmi" range="12401-12500"/>
                   <port id="rmis" range="12701-12800"/>
                   <port id="jms" range="12601-12700"/>
                   <process-set id="default_group" numprocs="1"/>
                </process-type>
             </ias-component>Now I did just see something that is either a bug, or a doc error. In the doc, it shows the attributes of the <ping> tag to be: timeout, retry, interval. However when you configure opmn.xml with these, it report an error.
    Looking at the $ORACLE_HOME/opmn/conf/opmn.xsd file, it shows that only attributes are timeout and interval. You can't add a retry attribute. I'm not sure if this is a doc bug or an error in the XSD file.
    Anyways, using the timeout parameter, for your DEBUGGING phase (not production!) you should be able to bump that up to a higher value to allow OPMN to wait longer for a response from OC4J before it nukes it.
    -steve-

  • Remote debugging with APEX and SQL Developer

    Hi,
    I have problems concerning breakpoints within my SQL Packages I want to debug.
    I want to force SQL-Developer to suspend execution of a function, so I can get forward step by step.
    The SQL-Developer do not stop executing at the breakpoints I set in the Package.
    The message I get is the following (on SQL-Developer side):
    Debugger accepted connection from remote process on port 4000.
    Processing 110 classes that have already been prepared...
    Finished processing prepared classes.
    Debugger disconnected from remote process.
    Seems to me, that the process runs into the debug-mode but leave without stopping at a given breakpoint??
    Do anybody have an idea how to solve it?
    We use Oracle 10.2.0.3.0, SQL Developer 1.5.1 and APEX 3.1.2.
    The Package-function I want to debug runs on another Oracle database as the APEX application.
    Thanks in advance
    Regards
    Norbert
    Edited by: Norbert2 on Apr 20, 2009 5:47 AM

    Hi Carsten,
    now I have done a further step. I can debug a remote PL/SQL-Package through APEX, but now I get an exception when the program execution jumps back to the APEX PL/SQL-Package.
    My APEX-Page-Process looks like this:
    BEGIN
      dbms_debug_jdwp.connect_tcp(host => 'IP-ADDRESS', port => '4201');
      APEX_TEST_PKG.remoteDebug;
      dbms_debug_jdwp.disconnect;
    END;The procedure APEX_TEST_PKG.remoteDebug looks like this (located on the APEX-DB):
    PROCEDURE startRemoteDebug
      AS 
        v_string    VARCHAR2(50)   := '';
      BEGIN
        [email protected](host => 'IP-ADDRESS', port => '4000',
                 option_flags => dbms_debug_jdwp.connect_defer_suspension);
        v_string := [email protected];
        DBMS_OUTPUT.PUT_LINE(v_string);
        [email protected];
      END remoteDebug; The procedure REMOTE_TEST_PKG.testFunc looks like this (located on the Remote-DB):
    FUNCTION testFunc RETURN VARCHAR2
      AS 
        v_string    VARCHAR2(50)   := '';
      BEGIN        
        v_string := 'Test';
      RETURN v_string;
    END testFunc; When I start the debug session without the option dbms_debug_jdwp.connect_defer_suspension, I get an exception Oracle.EXCEPTION_ORA_604.
    Starting the debug session with the above mentioned option, I am able to debug the remote function.
    But now I get an exception when the executor tries leaving the remote function going back to the invoking function. With the debugger I can step over the return-statment successfully and the debugger steps on the next line END testFunc;. On this line I get the exception above
    Exception breakpoint occurred at line -1 of PBREAK.pls.
    $Oracle.Builtin.EXCEPTION_USER:
    Exception breakpoint occurred at line -1 of PBREAK.pls.
    $Oracle.Builtin.EXCEPTION_USER: I tried another way where I get now exception and where I can step through my functions in APEX, descending to functions in the remote db and going back to APEX.
    For this case I put the debug-statements in remote function:
    FUNCTION testFunc RETURN VARCHAR2
      AS 
        v_string    VARCHAR2(50)   := '';
      BEGIN        
        dbms_debug_jdwp.connect_tcp(host => 'IP-ADDRESS', port => '4000');
        v_string := 'Test';
        dbms_debug_jdwp.disconnect;  
      RETURN v_string;
    END testFunc; But I have no idea why it doesn't work properly starting the remote debug session in the apex procedure.
    Regards
    Michael
    Edited by: user6044915 on 02.09.2009 04:08
    Edited by: user6044915 on 02.09.2009 04:21
    Edited by: user6044915 on 02.09.2009 04:28

Maybe you are looking for

  • Applications quitting unexpectedly and Force Quit doesn't work

    Hi there - Hoping someone can help me out because this is driving me crazy! For the last week or so, probably 75% of the time that I save my work on word, excel or numbers the application stops responding. Force Quit either doesn't work or takes an e

  • Websites are formatted incorrectly and links won't work, since last update

    Since I installed the latest updates for firefox certain websites such as : http://www.escapistmagazine.com/ and hotmail , are incorrectly formatted and the links on the pages don't work. I can load my inbox on hotmail but the links to the emails don

  • Location of audio files and sessions

    Hi, This seems like such a basic question, but I can't figure out how to do this. I've been a Pro Tools user for the past several years, but I'm recently getting into Logic as well. I have 2 internal drives, one for my system files, and one for audio

  • I cannot unmount my external hard drive, neither repair or format it

    I've got a Western Digital My Passport II and unfortunately I can neither format nor repair it because I can't manage to unmount the disk. When I run fsck it results in the following: ** /dev/rdisk0s2 (NO WRITE) Can't open /dev/rdisk0s2: Permission d

  • Safari wont load any HTTPS sites

    Hey, For some reason Safari has stopped letting me open any https sites. I am using a new internet connection at my new apartment, but I think everything else has stayed the same. HTTPS sites open fine in Firefox and Explorer. I tried emptying my cac