Remote debug - switch on/of via ini ??

Hi, I've read and understood how to remotely debug a VI -- it works quite well.
My question is - can I set the "Enable debugging" and "Wait for debugger on launch" flags in the build specification for the stand-alone real-time application for all my applications, and THEN turn that on or off via something like the .ini file?
This would be great as then we could just set those debugging flags on all our builds, and then be able to enable debug it when neeeded.
Jay
Solved!
Go to Solution.

It's for the feeling of accomplishment, getting a solution is a WIN! Kudos is a nice "Thanks *pat on the back* "
Though it should really be visible in the profile, as it's more important than Kudos.
/Y
LabVIEW 8.2 - 2014
"Only dead fish swim downstream" - "My life for Kudos!" - "Dumb people repeat old mistakes - smart ones create new ones."
G# - Free award winning reference based OOP for LV

Similar Messages

  • Remote Debug mode while starting Weblogic server using my eclipse plugin

    Hi
    When am starting the Weblogic server via my eclipse it is opening in Remote Debug mode. Can anyone tell me how do I change the preferences/configure so that it doesnt run in debug mode.
    NOTE:I have deployed the application and ran number of times, till yesterday it wasn't starting in this mode, though I haven't changed any settings since then, it is starting in Remote Debug mode.
    Thanks,

    The above issue is resolved by adding this to setDomainEnv.sh :
    ALTERNATE_TYPES_DIRECTORY="${WLPORTAL_HOME}/portal/lib/security"
    export ALTERNATE_TYPES_DIRECTORY
    JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.alternateTypesDirectory=${ALTERNATE_TYPES_DIRECTORY}"
    # weblogic extension directories (system jars)
    if [ "${WEBLOGIC_EXTENSION_DIRS}" != "" ] ; then
    WEBLOGIC_EXTENSION_DIRS="${WEBLOGIC_EXTENSION_DIRS}${CLASSPATHSEP}${WLPORTAL_HOME}/p13n/lib/system"
    export WEBLOGIC_EXTENSION_DIRS
    else
    WEBLOGIC_EXTENSION_DIRS="${WLPORTAL_HOME}/p13n/lib/system"
    export WEBLOGIC_EXTENSION_DIRS
    fi
    WEBLOGIC_EXTENSION_DIRS="${WEBLOGIC_EXTENSION_DIRS}${CLASSPATHSEP}${WLPORTAL_HOME}/light-portal/lib/system${CLASSPATHSEP}${WLPORTAL_HOME}/portal/lib/system${
    CLASSPATHSEP}${WLPORTAL_HOME}/info-mgmt/lib/system${CLASSPATHSEP}${WLPORTAL_HOME}/analytics/lib/system${CLASSPATHSEP}${WLPORTAL_HOME}/apps/lib/system${CLASSP
    ATHSEP}${WLPORTAL_HOME}/info-mgmt/deprecated/lib/system"
    export WEBLOGIC_EXTENSION_DIRS
    WEBLOGIC_EXTENSION_DIRS="${WEBLOGIC_EXTENSION_DIRS}${CLASSPATHSEP}${WLPORTAL_HOME}/content-mgmt/lib/system"
    export WEBLOGIC_EXTENSION_DIRS
    if [ "${WEBLOGIC_EXTENSION_DIRS}" != "" ] ; then
    JAVA_OPTIONS="${JAVA_OPTIONS} -Dweblogic.ext.dirs=${WEBLOGIC_EXTENSION_DIRS}"
    export JAVA_OPTIONS
    fi

  • JSP Remote debugging from Jdev to WL 7.0

              I am trying to remote debug my JSP deployed on WL from Jdeveloper 903.
              I have included the parameters to make WL start in a debug mode.
              I have also included ojsp.jar, servlet.jar and ojc.jar in WL classpath.
              So I can start WL in debug mode, I can launch the url to get access to my JSP,
              a break point is included in the code but it doesn't stop at the break point.
              I am using JPDA.
              Do I have to modify something else to be able to remote debug my JSP?
              PS: remote debugging my EJB works fine.
              Thanks for your help
              

              Is there any possibility to change the JSP engine in Weblogic server and customize
              the new JSP
              with additional parameters, so that IDE's can debug JSP code itself?
              "Mike Herrick" <[email protected]> wrote:
              >
              >As far as I know this is behaving correctly.
              >
              >To debug a JSP via JDPA you have to compile your JSPs and put the Servlet
              >classes
              >the JSP compiler spits out in your IDE Classpath. Then you can debug
              >those Servlets
              >-- but you can't set break points in the JSP itself. Not the best.
              >
              >Some IDE Vendors add this on top of JDPA etc.
              >
              >I'm not 100% on this, but think I'm correct.
              >
              >Mike
              >
              >"Magali Richard" <[email protected]> wrote:
              >>
              >>I am trying to remote debug my JSP deployed on WL from Jdeveloper 903.
              >>I have included
              >>the parameters to make WL start in a debug mode. I have also included
              >>ojsp.jar,
              >>servlet.jar and ojc.jar in WL classpath. So I can start WL in debug
              >mode,
              >>I can
              >>launch the url to get access to my JSP, a break point is included in
              >>the code
              >>but it doesn't stop at the break point. I am using JPDA. Do I have to
              >>modify something
              >>else to be able to remote debug my JSP?
              >>
              >>PS: remote debugging my EJB works fine. Thanks for your help
              >>
              >
              

  • CF Builder w/ Coldfusion 9 remote debugging problem

    Have coldfusion9 installed on my linux server, everything works fine, can access the admin page, run basic files, etc.
    Have CF Builder Beta installed on mac, can write CF files and run them from linux server.
    Trying to get remote debugging working and following the directions for starting up the Authentication server via adminstart.sh, runs fine, changed security.properties ips to be *.  When I create the server definition in CF Builder I see on the Authentication server:
    error Authentication failed: Login Failed
    Even though I have enabled RDS, Debugging, etc via server config and i enter same name/pw (admin/mypassword) as when I login via web.
    Therefore, I'm unable to control the server and when I try to debug, it says it launches but refuses to stop at any breakpoints.
    Any help appreciated as I've read through as many docs as I can find and haven't been able to resolve this.
    Thanks

    Make sure that the port is not blocked by the firewall. Also, check this : http://forums.adobe.com/message/2636413

  • Remote Debugging LiveCycle Trail Version

    Hello,
    I was trying to debug remotely using Eclipse. I uncommented all the batch files in jboss/bin directory to turn on debug options. When I ever I try to connect I get the following message.
    Failed to connect to remote VM. Connection refused.
    Connection refused: connect
    I'm not able to auto-populate the xdp form with xml data when I retrieve the pdf so I was trying to remotely debug the application
    I would appreciate if someone can point if I'm missing something.
    Thanks
    Sameera

    > I was trying to debug remotely using Eclipse. I uncommented all the batch
    > files in jboss/bin directory to turn on debug options. When I ever I try
    > to connect I get the following message.
    >
    > Failed to connect to remote VM. Connection refused.
    > Connection refused: connect
    I hope you figured this out already but if you haven't, the JDK for the
    JBoss server is not listening to the same port as Eclipse is trying to
    connect to. Or its not listening at all (your debug switches didn't work).
    Tom Jordahl

  • Need Urgent Help in remote debugging

    Folks!
    Im having difficulties remote debugging my application.
    Im using jdev rc2 using oc4j 9.0.2 externally on a win2k machine.
    My sources are compiled outside jdeveloper using the oracle compiler.
    Ive setup the server to run with: d:\oradev\jdk1.3\bin\java -ojvm -XXdebug,port4000 -jar oc4j.jar
    After compiling the sources on my own, i deploy them. Then i mark a breakpoint in Jdeveloper and debug the source with the breakpoint. The debugger connect properly ( both server and jdev confirms ).
    I trigger the flow which should reach my breakpoint, it runs and doesn't stop.
    When i tried debugging something which i had compiled in jdev it worked under the same setting.
    Any ideas?
    any kind of help would be appreciated.
    Yuval.

    You can get good summary of checklist from this article about
    DBA checklist for data warehousing.
    Which highlights on below pointers:
    New system or old. (I.e. Up-gradation vs starting from scratch)
    Complexity of SQL Server architecture 
    SQL Server storage
    Determining SQL Server processing power
    SQL Server installation consideration 
    SQL Server configuration parameter
    SQL Server security
    SQL Server Database property
    SQL Server jobs and automation
    Protecting SQL Server data
    SQL Server health monitoring and check ups
    SQL Server ownership and control 
    based on my real time experience, I will suggest you to keep an eye on 
    Load performance (It will be useful when your database(Warehouse) will have huge amount of data)
    System availability (Check for Windows update and up time configuration) 
    Deployment methodology should be planned in advance. Development of packages and respective objects should be done systematically.
    Source control mechanism 
    Disk space and memory usage
    You might or might not have full rights on production environment, so be prepared to analyze production environment via Select statements [I guess you got my point]
    Proper implementation of Landing , Staging and Mart tables.
    Column size (this can drastically decrease your database size)
    Usage of indexes (Index are good, but at what cost?)
    I hope this will assist you in building your check list.

  • Android Remote Debugging Help

    Hi everybody,
    I'm using Flash Professional CS6 and am trying to deploy my application to an android device and remotely debug it via wifi, but the problem is that it won't automatically install the app on the device.
    Debugging works if I transfer the .apk file, install it manually and then try to debug, but I'm sure that there is a better way.
    I'm trying to set up Flash Professional so that it automatically installs the file on the device and then starts the debugging session.
    I know this can be done via USB, but I would prefer to do it via wifi.
    Thank you.

    Under the project run/debug settings make sure you checked the remote debug option.

  • BEA Workshop Studio 3.2: Server classpath customization & Remote Debugging

    BEA Workshop Studio 3.2:
    The server classpath customization and remote debugging issues have been fixed in the 3.2 release, which is now available for download at http://workshopstudio.bea.com/download.do.
    Workround for the 3.1 release:
    By switching to war deployment mode the server classpath can be customized in the launch configuration.
    You can see the complete list of new features in 3.2 at:
    http://e-docs.bea.com/workshop/docs92/studio32/WhatsNew.htm

    Thanks Ram,as you said i server runtime i pointed to jdk1.5,that error has been resolved.
    Now i'm getting the parsing config.xml file.
    My server is Test9.
    C:\bea\jdk150_04\bin\java -classpath C:\bea\weblogic91\server\lib\weblogic_sp.jar;C:\bea\weblogic91\server\lib\weblogic.jar;C:\bea\weblogic91\server\lib\webservices.jar;C:\bea\jdk150_04\lib\tools.jar -Dbea.home=C:/bea -Dweblogic.ConfigFile=config/config.xml -Dweblogic.Name=Test9 -Dweblogic.ListenAddress=localhost -Dweblogic.ListenPort=7002 -Djava.library.path=C:\bea\weblogic91\server\bin -Djava.security.policy=C:\bea\weblogic91\server\lib\weblogic.policy -Dweblogic.management.discover=false -Dweblogic.ProductionModeEnabled=false -Dweblogic.management.password=weblogic -Dweblogic.management.username=weblogic weblogic.Server
    <Aug 17, 2006 8:27:05 PM EDT> <Info> <WebLogicServer> <BEA-000377> <Starting WebLogic Server with Java HotSpot(TM) Client VM Version 1.5.0_04-b05 from Sun Microsystems Inc.>
    <Aug 17, 2006 8:27:06 PM EDT> <Info> <Management> <BEA-141107> <Version: WebLogic Server 9.1 Mon Dec 12 19:26:33 EST 2005 689178 >
    <Aug 17, 2006 8:27:08 PM EDT> <Critical> <WebLogicServer> <BEA-000362> <Server failed. Reason:
    There are 1 nested errors:
    weblogic.management.ManagementException: [Management:141266]Parsing Failure in config.xml: The following failures occurred:
    -- Unresolved reference to Test9 by [Test9]/AppDeployments[__wstudio_autoconfig_deployment__]/Targets
         at weblogic.management.provider.internal.RuntimeAccessImpl.<init>(RuntimeAccessImpl.java:118)
         at weblogic.management.provider.internal.RuntimeAccessService.start(RuntimeAccessService.java:38)
         at weblogic.t3.srvr.ServerServicesManager.startService(ServerServicesManager.java:365)
         at weblogic.t3.srvr.ServerServicesManager.startInStandbyState(ServerServicesManager.java:116)
         at weblogic.t3.srvr.T3Srvr.initializeStandby(T3Srvr.java:630)
         at weblogic.t3.srvr.T3Srvr.startup(T3Srvr.java:402)
         at weblogic.t3.srvr.T3Srvr.run(T3Srvr.java:361)
         at weblogic.Server.main(Server.java:67)
    Caused by: weblogic.descriptor.DescriptorValidateException: The following failures occurred:
    -- Unresolved reference to Test9 by [Test9]/AppDeployments[__wstudio_autoconfig_deployment__]/Targets
         at weblogic.descriptor.internal.ReferenceManager.resolveReferences(ReferenceManager.java:265)
         at weblogic.descriptor.internal.DescriptorImpl.validate(DescriptorImpl.java:285)
         at weblogic.descriptor.DescriptorManager.createDescriptor(DescriptorManager.java:280)
         at weblogic.management.provider.internal.DescriptorManagerHelper.loadDescriptor(DescriptorManagerHelper.java:52)
         at weblogic.management.provider.internal.RuntimeAccessImpl$IOHelperImpl.parseXML(RuntimeAccessImpl.java:576)
         at weblogic.management.provider.internal.RuntimeAccessImpl.parseNewStyleConfig(RuntimeAccessImpl.java:220)
         at weblogic.management.provider.internal.RuntimeAccessImpl.<init>(RuntimeAccessImpl.java:106)
         ... 7 more
    >
    <Aug 17, 2006 8:27:08 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FAILED>
    <Aug 17, 2006 8:27:08 PM EDT> <Error> <WebLogicServer> <BEA-000383> <A critical service failed. The server will shut itself down>
    <Aug 17, 2006 8:27:08 PM EDT> <Notice> <WebLogicServer> <BEA-000365> <Server state changed to FORCE_SHUTTING_DOWN>
    Thanks
    Ram

  • How do I connect the debugger for remotely debugging PL/SQL?

    Hi everyone,
    Remotely debugging PL/SQL from JDeveloper and SQL Developer is something I have tried unsuccessfully to do.
    The steps I took were to right-click my connection, select Remote Debug... and specify "4000" for the Port and "n.n.n.n" for the Local address which seems to correctly start the listener. (I used ipconfig to double-check the address.) Then, I run the anonymous block you see below.
    begin
    dbms_debug_jdwp.connect_tcp( 'n.n.n.n', 4000 );
    end;
    But, I always get the following error:
    Error starting at line 18 in command:
    begin
    dbms_debug_jdwp.connect_tcp( 'n.n.n.n', 4000 );
    end;
    Error report:
    ORA-30683: failure establishing connection to debugger
    ORA-12535: TNS:operation timed out
    ORA-06512: at "SYS.DBMS_DEBUG_JDWP", line 68
    ORA-06512: at line 2
    30683. 00000 -  "failure establishing connection to debugger"
    *Cause:    An error was indicated when trying to establish a connection
               to a debugger. Usually a TNS error will display along with
               this message to further explain the problem, although this
               TNS error will likely be hidden if you choose to trap the error.
    *Action:   Correct the indicated parameter value and try again.
    Additionally, my firewall in Windows 7 is disabled, and I work remotely from home via VPN.
    The instructions are thatI followed: Sue's Blog... again...: Remote Debugging with SQL Developer.
    Any help would be greatly appreciated. Thanks!
    James

    I found the answer.
    Object classes are missing.
    The right insert code is down but I have a new question.
    -How can I assign Resource acces to user in PL/SQL?
    Right insert code:
    declare
    vn_retval pls_integer;
    emp_session dbms_ldap.session;
    emp_dn varchar2(256);
    emp_array dbms_ldap.mod_array;
    emp_vals dbms_ldap.string_collection ;
    vv_ldap_host varchar2(256);
    vv_ldap_port varchar2(256);
    vv_ldap_user varchar2(256);
    vv_ldap_passwd varchar2(256);
    vv_ldap_base varchar2(256);
    begin
    vn_retval := -1;
    vv_ldap_host := 'XXXXXXX';
    vv_ldap_port := '389');
    vv_ldap_user := 'LDAP_USER';
    vv_ldap_passwd:= 'LDAP_PASSWD';
    vv_ldap_base := 'LDAP_BASE';
    dbms_ldap.use_exception := true;
    -- Initialize ldap library and get session handle.
    emp_session := dbms_ldap.init(vv_ldap_host, vv_ldap_port);
    -- Bind to the directory
    vn_retval := dbms_ldap.simple_bind_s(emp_session, vv_ldap_user, vv_ldap_passwd);
    -- Process New Entry in the database
    -- Create and setup attribute array for the New entry
    emp_array := dbms_ldap.create_mod_array(4);
    emp_vals(1) := 'NAME';
    dbms_ldap.populate_mod_array(emp_array, dbms_ldap.mod_add, 'cn', emp_vals);
    emp_vals(1) := 'NAME';
    dbms_ldap.populate_mod_array(emp_array, dbms_ldap.mod_add, 'sn', emp_vals);
    emp_vals(1) := 'top';
    emp_vals(2) := 'person';
    emp_vals(3) := 'organizationalPerson';
    emp_vals(4) := 'orcluserv2';
    emp_vals(5) := 'orcluser';
    emp_vals(6) := 'inetOrgPerson';
    dbms_ldap.populate_mod_array(emp_array, dbms_ldap.mod_add, 'objectclass', emp_vals);
    emp_vals.delete;
    emp_vals(1) := 'NAME' || '1';
    dbms_ldap.populate_mod_array(emp_array, dbms_ldap.mod_add, 'userpassword', emp_vals);
    -- DN for Entry to be Added under 'ldap_base'
    emp_dn := 'cn=' || 'NAME' || ', ' || vv_ldap_base ;
    -- Add new Entry to ldap directory
    vn_retval := dbms_ldap.add_s(emp_session, emp_dn, emp_array);
    -- Free attribute array (emp_array)
    dbms_ldap.free_mod_array(emp_array);
    -- Unbind from ldap directory
    vn_retval := dbms_ldap.unbind_s(emp_session);
    end;

  • Remote Debug Listener crashes

    Hi,
    I try to remote debug via SQL-Developer and create a remote debug listener in my first sqldeveloper.
    Then I use a second sqldeveloper and run the following statements as script everything works fine. My first sqldeveloper stops at the breakpoint and I can debug
    set serveroutput on;
    execute DBMS_DEBUG_JDWP.CONNECT_TCP('myIp',4010);
    declare
    begin
      do_something(2); -- in this function is a breakpoint set
    end;
    execute DBMS_DEBUG_JDWP.disconnect(' myIp ',4010);
    When I try to run the script e.g. in sqlplus I get following stacktrace in my first sqldeveloper console and the listener is closed
    java.lang.StringIndexOutOfBoundsException: String index out of range: -2
      at java.lang.String.substring(String.java:1911)
      at com.sun.tools.jdi.JNITypeParser.nextTypeName(JNITypeParser.java:204)
      at com.sun.tools.jdi.JNITypeParser.typeNameList(JNITypeParser.java:140)
      at com.sun.tools.jdi.JNITypeParser.typeName(JNITypeParser.java:85)
      at com.sun.tools.jdi.TypeImpl.name(TypeImpl.java:44)
      at com.sun.tools.jdi.ReferenceTypeImpl.compareTo(ReferenceTypeImpl.java:150)
      at com.sun.tools.jdi.ReferenceTypeImpl.compareTo(ReferenceTypeImpl.java:33)
      at java.util.TreeMap.put(TreeMap.java:560)
      at java.util.TreeSet.add(TreeSet.java:255)
      at com.sun.tools.jdi.VirtualMachineImpl.addReferenceType(VirtualMachineImpl.java:785)
      at com.sun.tools.jdi.VirtualMachineImpl.referenceType(VirtualMachineImpl.java:901)
      at com.sun.tools.jdi.VirtualMachineImpl.retrieveAllClasses1_4(VirtualMachineImpl.java:979)
      at com.sun.tools.jdi.VirtualMachineImpl.retrieveAllClasses(VirtualMachineImpl.java:995)
      at com.sun.tools.jdi.VirtualMachineImpl.allClasses(VirtualMachineImpl.java:284)
      at oracle.jdevimpl.debugger.jdi.DebugJDI.<init>(DebugJDI.java:420)
      at oracle.jdevimpl.debugger.jdi.DebugJDIConnectorListen.run(DebugJDIConnectorListen.java:133)
      at java.lang.Thread.run(Thread.java:724)
    Does anyone have an idea what I'm doing wrong, or what's maybe misconfigured?
    System Configuration
    Client:
         Windows 7
         SqlDeveloper Version 4.0.0.12 Build MAIN-12.27 - running with jdk1.7.0_25
    Database Server:
         Oracle 11.2.0.3.0

    Hi
    Has someone find an answer to this?
    Debugger attempting to connect to remote process at localhost 4000.
    ...............................Debugger unable to connect to remote process.This is the same message you get when you try to run a debug session under JDeveloper, but with OJVM, not JPDA.
    If this is a bug and will be fixed, can the SQL Developer team please make a post?

  • 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 from Windows to Linux

    Is there a full description of every step needed to do remote cross-platform C++ debugging? I'm using the Indigo version of Eclipse CDT on Windows and would like to debug an application on a remote Linux machine.
    On Windows, I do not have the ability to install a compiler or cygwin, but I do have plink and ssh on Windows. I am able to access the remote machine via RSE SFTP (a la stackoverflow.com/questions/4216822/work-on-a-remote-project-with-eclipse-via-ssh). I do have VNC but I find that the Eclipse IDE is very unresponsive under that setup, hence the desire to develop and debug from a native Windows app.
    This FAQ is the most complete (wiki.eclipse.org/CDT/User/FAQ#How_do_I_debug_a_remote_application.3F), but doesn't discuss how to deal with Windows using backslash paths and having a different filesystem root compared to Linux and its forward slashes.
    I am able to get a remote connection by playing around with the suggestions here (www.eclipse.org/forums/index.php?S=5e54b35462bb80f79ebb9fbbaf93a288&t=msg&th=173880), resulting in console output that looks like:
    Last login: Fri Apr 6 20:19:09 2012 from foo.bar.com
    echo $PWD'>'
    /usr/bin/gdbserver :12345 /linux/path/to/my/binary args_to_my_binary;exit
    but it fails with "Error while launching command: gdb --version"
    The old FAQ is very incomplete and seems out of date: wiki.eclipse.org/TM_and_RSE_FAQ#How_can_I_do_Remote_Debugging_with_CDT.3F
    This suggests it's possible but does not have sufficient details on how to set the myriad configuration options in Eclipse: stackoverflow.com/questions/6044138/remote-debugging-in-eclipse-cdt
    I suspect many people would benefit if there was a clear set of instructions in one place on how to make this happen.
    --Gerald Dalley

    OK. I just spent the last two days figuring this out, so here are step-by-step instructions that hopefully will help others (This list is unusually anal by the standards of this group, but really simple concrete instructions would have helped me).
    on the target linux box, make sure you have gdbserver. If you don't, get the gdb sources. Note: Making gdb does not build gdbserver. Instead, you have to go into the gdbserver directory and configure/make there.
    Run gdb on the linux box. In the startup banner, it will say what its target is. This will be something like x86_64-unknown-linux-gnu or i686-pc-linux-gnu. Remember this for later.
    Install MinGW on your Windows box (I had trouble building gdb on cygwin, so I recommend MinGW).
    Download expat from http://sourceforge.net/projects/expat/files/expat/2.1.0/.Note: Do not download the Windows expat installer. Download the sources instead.
    In the expat directory. "./configure --enable-shared", make, make install.
    Download the gdb sources
    ../gdb-7.4/configure --with-expat --target=x86_64-unknown-linux-gnu --host=i686-pc-mingw32
    make, make install
    Time to test. On your linux box, create and compile hello.cpp to hello.
    On your linux box, gdbserver :4444 hello
    Note:If you are on a corporate network, non-standard ports may be blocked. Set up an ssh tunnel if necessary.
    Copy hello.cpp and hello to your Windows machine
    From the MinGW prompt, run "x86_64-unknown-linux-gnu-gdb ./Hello" Note: Substitute the name of the gdb you built as appropriate based on the target platform you got in step 2.
    In gdb, load the executable with "file hello"
    target remote localhost:4444 Note: This assumes that you have an ssh tunnel on localhost. Modify appropriately.
    Verify that gdb commands like break, cont, and run work here.
    Now we want to run it from outside of MinGW. In Control Panel/System/Advanced/Environment Variables add something like E:\MinGW\bin to the path. This is necessary for the loader to find libiconv_2.dll, etc. Now verify that you can do the preceding step from an ordinary Windows command prompt.
    Launch Eclipse (finally!). New debug configuration C/C++ attach to process.
    In Main, give path to the copy of the Linux executable on the Windows system.
    In Debugger tab, set Debugger dropdown to gdbserver. Set "GDB debugger" to something like "E:\MinGW\msys\1.0\local\bin\x86_64-unknown-linux-gnu-gdb.exe" based on where your gdb is. For Connection, choose TCP and fill in the hostname and port number you've been using from gdb in the previous steps.
    Make sure gdbserver is running (it often quits when the program ends) and launch the debug configuration
    In the gdb console, enter "file hello," "break main," and cont or run (sometimes it wants one. Sometimes the other) and voila, you should be there.
    Let me know if this works, and I'll post it somewhere better.
    Good luck,
    Mike

  • Remote debugging issue

    I've used the following remote debug properties and able to remote debug the Weblogic server from Oracle workshop.
    -Xdebug -Xnoagent -Xrunjdwp:transport=dt_socket,address=8787,server=y,suspend=n
    But this restricts to only one user/ client at any given time. Is there anyway inwhich one can enable mulitple user while remote debugging?
    Amarnath

    Not sure if it matters but I am using JDEV 9.0.3.4 with a 9.2.0.4 database and successfully stepped into and over a call to a java stored procedure from a PL/SQL trigger. I have a PL/SQL procedure which causes a trigger to be fired which in turn calls a Java Stored procedure.
    Here is what I did:
    1) create PL/SQL (including trigger and procedure) and deploy Java Stored Procedure
    2) In SQLPlus send the command:
    ALTER SESSION SET PLSQL_DEBUG=TRUE;
    3) Execute the PL/SQL Procedure (which causes trigger to be fired)
    4) In JDeveloper select Project properties-&gt;Debugger-&gt;remote and select JPDA Listen
    5) Set a breakpoint in the trigger
    6) Select debug and enter a port number for the listener
    7) In SQLPLUS send the command:
    CALL DBMS_DEBUG_JDWP.CONNECT_TCP( '&lt;Your IP&gt;', '&lt;listener port&gt;' );
    8) Verify call succeeded is received in SQLPlus and debuggee connects to the debugger in JDeveloper.
    9) Execute the PL/SQL procedure
    10) When breakpoint hit stepped into the Java Stored procedure (which was not in the project so added to source path via the popup dialog)
    11) stepped out of the Java Stored Procedure back into trigger
    Hope this helps,
    Bud

  • Failed to start remote debug server

    I'm having trouble getting xcode to play nicely with my provisioned iPhone under beta 7. When I change my default target to "Device Debug" and do a clean build the following occurs:
    1) The code compiles and links
    2) The application is installed on the iPhone
    3) XCode tries to start the remote debug server and fails with the following message:
    Failed to start remote debug server for test.app on Keith's iPhone
    The application does get installed on my phone, but I am unable to use xcode to view the logs and perform other debugging related activities.
    Has anyone seen this before and know how to fix it?
    Thank you,
    -Keith

    Thanks for the reply, but it didn't seem to help. Maybe I didn't do it right. I did:
    - Delete app from iPhone
    - Clean project
    - Close project
    - Xcode->Empty Caches
    - Close Xcode
    - Disconnect and reconnect device (via iTunes eject)
    - Open project
    - Build & Go
    Still the same 'please disconnect and reconnect the device' when starting debugserver
    I am able to run the app just fine, but can't use Instruments or the debugger

  • Issue getting Edge Code Preview 3 to enable Remote Debugging

    Hi all,
    I am using the latest version of Chrome as my default browser. I opened up ECP3 and pointed to the project I wanted to use it for (WordPress site on WAMP server). I then clicked live preview and it opened the URL up properly in Chrome. Moments later, a notification in Edge Code Preview 3 pooped up saying I needed to re-launch Google Chrome with remote debugging enabled. So I clicked Relaunch. Minutes passed, and nothing happened. So I relaunched Chrome myself, clicked live preview again, and the same message comes up.
    I have tried launched Chrome via Live Preview, I have restarted my computer, and closed all Pinned Tabs in Chrome. What is going on here?

    Hmm, this seems like a smiliar issue to this - http://forums.adobe.com/thread/1159001?tstart=0
    Can you try forcing Chrome to run with remote debugging enabled? http://www.chromium.org/developers/how-tos/run-chromium-with-flags - and see if Live Preview works? That's not a solution but will help in figuring out where the break is.
    I'm also going to log an issue on this so we can start tracking it.
    Sorry about the hassle!
    =Ryan
    [email protected]

Maybe you are looking for