Can't see 'Local Variables' while debugging in Sun Studio 11

I am debugging a C/C++ application built with Sun Studio 11 running on Solaris 10. I load the application as always, set a breakpoint and run. The debugger stops at the assigned breakpoint as expected.
The issue is that at this point there are no local variables displayed in the local variables pane.
I have tried restarting SS11, rebuilding, etc...
This is the first time I have seen this happen.
Does anyone else have an idea what is wrong?

Does adding a particular variable to Watch view help? (it can be done by typing "display <variable>" in dbx command line).
You can also try erasing (or better moving to a temporary location) all Sun Studio settings like this:
mv -f ~/.sunstudio /tmpand start debugging session again.

Similar Messages

  • Can't see member variables when debugging with jrockit

    Hi all,
    I'm using WLS 8.1.4 with jrockit and trying to do remote debugging while connecting from IntelliJ Idea 4.5.4. Everything works fine except that I can't see a class's member (or instance) variables in the debugger. I can see static and local variables, step through the code, etc. If I switch to Sun's jvm that came with WLS (1.4.2 05) I can see member variables. Is there a setting to change this or is it a known issue? I'm using -Xdebug -Xrunjdwp:transport=dt_socket,server=y,address=5005,suspend=n as my startup args.
    thanks

    I just check with IntelliJ support on this issue. They say that its a known issue with IntelliJ 4.5. According the them a fix has been implemented and debugging of member variables is possible in IDEA 5.x versions.

  • Unable to see local variable values when debugging java

    Hi,
    I am using JDev 10.1.2 with java version 1.4.2_04.
    I have been using JDev to debug my java programs. But suddenly from this morning I am unable to see local variable values. I am able to see class and instance variables. This has happened to me before and I had restarted my machine couple of time, to get this sorted. But this time, nothing helps. Going thru the forum I found out that Include Debug information (Project Properties -> Compiler Option) need to be turned ON. It is already turned ON for me.
    I would greatly appreciate if you could let me know how to crack this problem.
    Thanks in advance.

    No. The local variables 'used' to show up during debugging. But erratically it doesn't show up local variable values. I had to restart my machine couple of times whenever this happens, inorder to see the local variable values. But this time even restarting doesn't help.
    Is there any preference setup that need to be turned on/off to see local variables?
    Also I can't step into a static method now. Any idea why this happens?

  • Dbx: Can't evaluate local variables in optimized functions

    I turned on the optimization for the whole product. Now I found that I can not print the local variables declared in side the main funciton or inside the function locals.
    eg.
    int factorial (int n)
    int factorial = 1;
    while (n > 1)
    factorial *= n--;
    return factorial;
    When I tried to print n or factorial, I would not able to do so...
    Is there any way can I get the local variables printed?
    Is there any compiler options to overcome this problem and printing the local variables...
    I know this is an difficult question becuase the locals go to Register instead of memory. By reverting it back to memory, I may loose the efficiency I gained with this optimizations.
    options : -fast -xtarget=ultra3 -xarch=v8plusa -g0
    Please let me know....
    #include <iostream>
    #include <string>
    #include <unistd.h>
    #include <stdio.h>
    using namespace std;
    int main(int argc, char **argv)
    FILE *fp=freopen("myfile.txt","w",stdout);
    int bytes_read;
    char buffer[10000];
    std::cout<<"##This should be 0 15238.0.172435 written in to the 1 file with out any HICK-UPs"<<endl;
    FILE *myfp=fopen("myfile.txt","r");
    cerr<<"This goes to std error file"<<endl;
    fseek(myfp, 0, SEEK_END);
    int len = ftell(myfp);
    fseek(myfp, 0, SEEK_SET);
    fread(buffer,len,1,myfp);
    fclose(myfp);
    fclose(fp);
    string mystring(buffer);
    std::string::size_type location=mystring.find("15238.0.172435",0);
    std::string::size_type location1=mystring.find("116530640358374636",0);
    if(location != std::string::npos )
    cerr<<"Buffer Read that is read from file inside the if condition \n<\n"<<buffer<<"\n>"<<endl;
    if(location1 != std::string::npos )
    cerr<<"Buffer Read that is read from file inside the if condition and location1 \n<\n"<<buffer<<"\n>"<<endl;
    remove("myfile.txt");
    return 0;
    stopped in main (optimized) at line 8 in file "fileex.cc"
    8 int main(int argc, char **argv)
    (dbx) cont
    This goes to std error file
    stopped in main (optimized) at line 27 in file "fileex.cc"
    27 int len = ftell(myfp);
    (dbx) print len
    dbx: Can't evaluate local variables in optimized functions

    Dbx typically cannot show auto variables in optimized code. The reason is that the variables typically do not have a stable location, or might be eliminated altogether. Similarly, source code lines don't have a stable relationship to object code. The debug data emitted by Sun compilers is not enough to keep track of these issues.
    We plan to provide better debugging of optimized code in a future release.
    Dbx can show the value returned from a function, which in your case might be enough.

  • How can I view the member variable while debugging

    When I using JCOP-debug mode in eclipse, I want to view the variable in the Variable window. I can see the "this" instance in the window. But when I click the "+" beside "this" to view the member variables of the instance. Debug process is terminated, following lines displayed in console window:
    ASSERTION FAILED: Object header element PAK must be odd!
    Expression: (o->pak&1)==1
    File: simulation.c
    Line: 393
    What can I do then?

    http://forum.java.sun.com/thread.jspa?threadID=722788
    http://download.boulder.ibm.com/ibmdl/pub/software/dw/jcop/tools.zip

  • How can I see the bitrate while playing a DVD?

    (I posted that also on the DVD Studio Pro page, but there I got an advice that points to a professional and expensive tool - Digigami's 'Mpressionist'. Maybe here someone can help me with a simpler sollution. I will post on both sides potential sollutions.)
    So, I have a DVD encoded with variable bitrate, and I want to see the bitrate while playing the movie. In QuickTime I can see only the "global" bitrate, not the one of the actual scene.
    Thanks.

    For the moment I got only that:
    - MPressionist, a very nice tool, but very expensive too;
    - MacDVDBitrateParanoia that displays the bitrate of the whole DVD as a graph, but not while the DVD plays, so I can not see the relation between complexity of a scene and the bitrate.

  • Can Not See Local Published Universe

    Hey, In the Webi Rich Client running 4.0 I can't see the universe that I published to my local laptop.
    I created the universe using Information Design Tool using an ODBC connection to a local Excel file.
    I published that universe to the local directory that is defined in the Rich Client (under options). When I click on universe it makes me log on as 'standalone' .. then I get a blank screen.
    When I use OPEN -> Files of type *.UNX -> navigate to the directory I see the universe, but when I try to load it I get the err:
    Load Driver Call: Initialize (WIS 00000)" ?
    There are no loops in my data foundation and the integrity check is fine as well.
    Any help is appreciated.
    Mike

    Mike,
    Let me clarify.
    If you connect to Standalone mode, You will never connect to repository. (i.e.) You should have universe and Report together in your Local machine.
    If you are connecting to repository(Enterprise,Windows AD,LDAP), Then you need to connect the repository copy of the Universe and Report.
    As I already said in previous message, Whenever you export the universe, The physical .unv or .unx files will be moved to repository. as a result you cant open the report in Standalone mode. To overcome this try import the universe from repository and save it somewhere. Then try with standalone mode and repoint the report to refer local universe copy.
    Hope you understand now.
    Regards,
    Mani

  • How can I use local variable in LabVIEW-Action?

    Hi All!
    There is local variable (for example "MyVariable") in local scope of project. There is Action-step, created by LabVIEW. One of input terminals step is "Sequence Context".
    How can I access to MyVariable by Sequence Context? Unbundle? It does't work.
    Thank you.

    On the TestStand palette there is a VI called TestStand - Get Property Value.vi.  Use that.  Attached is an image showing how to use it.  The trick is making it produce the correct data type.  Do that by right clicking on the VI and selecting Select Type.  Then you can choose the type.  I think in LV 2010 and TS 2010 it is a polymorphic VI and you can just change it.  I wrote an example here for Chaz: http://forums.ni.com/t5/NI-TestStand/How-to-execute-two-steps-in-parallel/td-p/1449874
    It's the second example that's attached.
    Hope this helps,
    jigg
    CTA, CLA
    teststandhelp.com
    ~Will work for kudos and/or BBQ~
    Attachments:
    AccessLocalVar.JPG ‏67 KB

  • Can't see subprocess variables in multiinstance subprocess

    Hello.
    I'm trying to generate a multiinstance parallel subprocess, but when i create it i can't see the following variables:
    - loopCounter
    - numberOfActivities
    - numberOfCompletedInstances
    - numberOfInstances
    - numberOfTerminatedInstances
    This variables where created automatically in 11.1.1.3 when you created the subprocess as multiinstance, now i´m using 11.1.1.4 and no one of this variables is created.
    Please, any help with the topic would be appreciated.
    Thanks in advance.

    This may not be much help for your 11.1.1.4 issue, but here's how I worked around the problem with the "loopCounter" variable not always being present in 11.1.15 when using subprocess activity with "MultiInstance" selected. I believe there are two bugs that these steps might help you work around.
    Oracle BPM's subprocess activity can have two different loop properties. This means that based on an incoming array of information, work item instances are created for each item in the array.
    Double click anywhere in the subprocess's grey background to bring up its properties. Click the Loop Characteristics tab.
    If you want to simultaneously generate instances based on each item in incoming array, click the MultiInstance radio button. For the "Loop Characteristics" section in the dialog, set this to iterate through each item in the array coming into the subprocess. For example you might have a variable called "parts" that is the array. Use the count( ) method to determine the number of items in the array.
    The "Completion Condition" portion of this dialog determines how many separate instances will be spawned by this subprocess. On the left side of the less than sign, use the loopCounter variable that is automatically created when the "MulitInstance" property was selected. On the right side of the less than sign, insert the same count( ) method you used int he "Loop Characteristics" section. This means that this subprocess will continue creating instances until the last item in the array has been hit.
    Click the Arguments tab. In theory, you would think that only the item in the array being iterated through would need to be sent into the subprocess as an argument. The problem is that the "loopCounter" variable is not available to be used here. There is a bug that you have to work around. If you click on the "Use Associations" radio button and click the Edit button, in theory you should be able to build an expression that uses the "loopCounter" variable here to just pass a single object into the subprocess. There is a bug that prevents "loopCounter" from appearing when building the expression. As a result, work around the bug by passing in the entire array into the subprocess as an argument.
    Add a Script activity in the subprocess to extract the individual item in the array. Use the "loopCounter" in this to set a single item in the array to used by the subprocess.
    For this to work, there is one more work around that you have to do. Add a timer activity just before the Script activity you just added. Set the timer to wait one second. This means that a new instance will be created every second until all the items in the array have been run. If you do not add this timer activity, the same instance is created in the subprocess even though you think the loopCounter is iterating through the array. This means that if you do not add this timer activity, if the array has "Supervisor", "Manager", "Shipping Clerk" then all three individual work item instances spawned will all be created for the "Shipping Clerk".

  • Can't see local network

    I have 3 computers networked together. One is plugged directly into the router, the other two use wireless cards to connect. The computer I use most is one with a wireless connection. Sometimes my computer doesn't see my network. I know the router card works, because at those times I can see other wireless networks in my neighborhood, I just can't see the one in my own house. During those times my son's computer, which is about 3 feet away, sees and connects to the local network just fine, so I know the router is working. When I can see my local network, the signal is strong, so I don't think it has anything to do with signal strength. I'm stumped. When the problem occurs I've tried rebooting my computer, but that doesn't make a difference.

    Hi…….
              Well in this case what you do is from your hardwired PC log into the setup page of the router with http://192.168.1.1 username leave blank and the password is admin.
    Under the wireless tab change the channel to 11. And under advanced wireless settings lower the Beacon to 75 > Fragmentation Threshold to 2304 and the RTS Threshold to 2307. And then you can check the connection with your wireless PC
       Also try to reinstall the wireless card in your Pc once.

  • JDev903 debugger doesn't display local variable when debugging into JDK src

    Hi,
    I found that JDev903 debugger doesn't display local variables in the "smart data" and "data" panels when debugging into the JDK src. For most of the time, it only shows "this" object.
    Is this right? How do I setup JDev903 to display local variables in debugger?
    thanks,
    Richard

    Hi Fred,
    Did you forget to put resultFormat=&quot;e4x&quot;?

  • Can't see external HDD while wanting to restore

    I just had to restore my Mac, and luckily I backed up to a Ex HDD with Time Machine, but now I'm trying to restore it I've had nothing but problems.
    Cmd+R gives me: No full system backups
    Migration Assistant: Can't see drive
    Setup: Can't see drive
    I've run multiple repairs on it, and even mounted it to the network on another computer, but it still didn't come up.
    I'm getting really frustrated, please help =/

    austenfromononono wrote:
    I've checked via Finder and TMB, no Applications, System, Library,
    Those are the ones the bug makes TM skip. 
    But /Users, with your home folder inside it, should be there.
    I lost the 200GB after I had to restore my Mac (when I tried to restore from my backup), then had to reinstall again due to me playing with the partitions =D
    Well, that does complicate things. 
    If you're sure it's gone, I won't bug you anymore, but if you think there's a chance, I'm willing to try . . .

  • Can i use a variable, while referring a text field?

    Hello
    I have to set the readOnly property to some fileds DYNAMICALLY (i mean, until run time, i dont know Which fields are readOnly and which are not?  .
    So, i want to replace the TextField1 dynamically with all the fileds in the below syntax. So, can i put some variable in the position of TextField1? if so, How can i do that?
    xfa.resolveNode("VISITOR.Page3.SubFrom1.TextField1").access = "readOnly";
    xfa.resolveNode("VISITOR.Page3.SubFrom1.MyVariableComesHere").access = "readOnly";
    How can i put the variable in the red position?
    In details:
    Say, i have 5 fields, then, i want to make them readOnly, then i hv to write as below,
    xfa.resolveNode("VISITOR.Page3.SubFrom1.TextField1").access = "readOnly";
    xfa.resolveNode("VISITOR.Page3.SubFrom1.TextField2").access = "readOnly";
    xfa.resolveNode("VISITOR.Page3.SubFrom1.TextField3").access = "readOnly";
    xfa.resolveNode("VISITOR.Page3.SubFrom1.TextField4").access = "readOnly";
    xfa.resolveNode("VISITOR.Page3.SubFrom1.TextField5").access = "readOnly";
    Actually, my requirement is differnent (I know at run time only...that Wht wht fields i hv to set readOnly and wht wht fields should okay for input enable), for that reason i want to use a VARIABLE in the 'position' of TextField1, TextField2.....like bleow
    var myVariable
    myVariable = TextField1
    LOOPing the ARRAY
    xfa.resolveNode("VISITOR.Page3.SubFrom1.myVariable").access = "readOnly";
    PLs. let me know Can i sue a variable like that? if so, what is the correct syntax (pls.  suggest me a SYNTAX error free code, bcz am very very beginner to this)
    THank you
    THank you

    You can use the following way..
    var myVariable
    myVariable = TextField1
    xfa.resolveNode("VISITOR.Page3.SubFrom1." + myVariable + "").access = "readOnly";
    Thanks
    Srini

  • Can Flex see Local Resources?

    I am looking at Flex as a new development platform for my
    Point of Sale system. The requirements are:
    It must be a internet application that can also access local
    client devices without poping up message. I need to be able to
    print to two local printers, send data to a local display pole and
    read data from a USB attached digital scale and a USB attached
    credit card / check imager from MagTek.
    Does flex allow for this?
    Thanks, Jeff

    I would build it in AIR, which you can do via Flex. This way
    you have a nice installable program that will be able to access
    client devices without a problem.

  • Macbook CAN'T see wireless network while others can

    Hey,
    I've searched everywhere and can't find the answer. I have a macbook and am visiting Norway from the US. I am in an office with several people and they can all "see" the wireless network but I cannot. BUT I can see several other networks from neighboring offices. I can connect just fine to the wireless connection at my hotel. Also I have no problem "seeing" and signing on to the office's wireless using my iphone, but as I said my macbook doesn't even see it. I tried "other" and typed in the name and password (several times) but to no advail.
    Any suggestions o wise ones?
    Don Anderson

    I do this at home for enhanced security.
    Unfortunately it does not add any security. The network name is still broadcast between any connected clients and the base station. Therefore the network name is easily discovered in just a few seconds.

Maybe you are looking for

  • If i uninstall itunes and install it again, will all my stuff be on it still

    if i uninstall itunes and install it again, will all my stuff be on it still

  • Outlook & Exchange 2010 AutoDiscover and 2008 R2 Terminal Services

    Hi, I have a strange issue with Outlook 2010 in Terminal Server 2008 R2 which we don't have on the standard user desktops. When setting up a new outlook profile it does not populate the user and server details. The setup has to be done manually. Once

  • Cffunction returntype question

    I've got a function (below) in a CFC that executes a stored procedure. The procedure has 2 input parameters and a single output parameter. I want to cfoutput the value of the output parameter in the procedure. The procedure does it's job in CF if I d

  • View is giving redundant data

    Dear Friends, I have created one view, the data base creation statement is like the below. My main intertion is get the SO no, Delivery No, shipment no in one row. CREATE VIEW "ZSD_LIPS_VTTK"     ("DELIVERY_NO","SHIPMENT_NO","MBL_NO","SHIPMENT_DT","Z

  • What adobe program looks like a printer for an 8.1 pc

    of course there is no way to ask anyone that is live.  so, what program will look like a printer on my windows 8.1 machine so i can print anything i see on the web, a cad file or any program.  at one time i had distiller on an xp machine and did such