Changing value of variable in debugger [message #717428] |
Sat, 20 August 2011 11:26  |
Eclipse User |
|
|
|
I'm trying to learn the Eclipse IDE. I'm currently using the Indigo CDT version. While running through one of the tutorials regarding how to create a make project from scratch, it indicates that you can change the value of a variable in the debugger. To do this you right click on a variable in the variables view to bring up a context sensitive menu. In there you'll find a "Change Value" selection. I can find no such selection. I've tried to click on the variable itself as well as it's value. In fact, I can find no way to alter the value of a variable in any menu anywhere. Can someone please help?
|
|
|
|
Re: Changing value of variable in debugger [message #718682 is a reply to message #718049] |
Thu, 25 August 2011 00:11  |
Eclipse User |
|
|
|
You're absolutely correct! Thanks. However, I did try that solution in the very beginning. In fact, it was the first thing I tried. When it didn't "appear" to work, I then started looking for what the tutorial said to look for (a "change value" menu selection). When I say it didn't "appear" to work, what I mean is I would enter the value, then hit <CR> to get the GUI to accept the value. The view would then immediately put the value back to the original value. So, I naturally assumed this was not the correct way to alter the value.
So, here's what the problem was, and what actually happened. I was using a linux version of the CDT at work on a server. After messing around with the problem for awhile, I finally gave up until I got home. While at home, I installed a Mac version of the CDT on my iMac. I then tried the same experiment and it worked just great. So the next day I went back to work and tried it again. I noticed that when I changed the value and hit <CR>, the value still changed back to its original value. However, this time I noticed that after several seconds of waiting, the value changed to the value I had entered. So, it was merely taking quite some time before the Eclipse application would update its views. I've since noticed the delay can take anywhere from about 5 to 15 seconds to completely refresh. I should point out that ever since I installed Eclipse on this server and started playing with it, it has been painfully slow when updating its displays. So, whenever I change perspectives, or views, or do anything GUI related, I have to wait several seconds while the displays are redrawn.
This problem stems from the fact that I'm running the application on a server, and my workstation is tied through the network to this server through a series of firewalls. I've spoken to the network folks about this, and they have since monitored the traffic on the network for me, and have indicated there is no slowing of throughput, or anything unexpected happening. The only thing we can figure out is all the firewalls involved, along with the encrypting and decrypting of the traffic through those firewalls (as well as the server and workstation itself), is probably the culprit. If that's true, unfortunately, I'll just have to live with it.
|
|
|
Powered by
FUDForum. Page generated in 0.04925 seconds