SapphireSteel Forum
Welcome, Guest. Please login or register.
May 24, 2013, 08:44:01 PM

Login with username, password and session length
Search:     Advanced search
Welcome to the SapphireSteel forum - for discussion of the Ruby In Steel and Amethyst IDEs
3884 Posts in 800 Topics by 669 Members
Latest Member: m
* Home Help Search Login Register
+  SapphireSteel Forum
|-+  General
| |-+  Amethyst
| | |-+  Bug: variables not properly updating while debugging
« previous next »
Pages: [1] Print
Author Topic: Bug: variables not properly updating while debugging  (Read 873 times)
Jason King
Full Member
***
Posts: 159


« on: September 27, 2010, 11:18:05 AM »

When debugging, if I come to a breakpoint within a loop and expand my "this" variable to view appropriate member variables.  If I hit F5 to continue then when it hits the breakpoint again, it will show the previous state of the expanded "this" variable.

Cheers,
Jason
Logged
Dermot
Administrator
Hero Member
*****
Posts: 1005


« Reply #1 on: September 27, 2010, 03:00:06 PM »

OK - I've an idea as to what's causing that. We'll get back to you in a day or so.

Dermot
Logged
Dermot
Administrator
Hero Member
*****
Posts: 1005


« Reply #2 on: October 04, 2010, 02:08:49 PM »

Hi Jason,

I thought I might be able to see where this was going wrong but when I come to try it it seems to work for me. I've used this code:

Code:
package {

public class C1 {

private var x:int;

public function C1(){}

public function test():void {
var i:int = 10;

while(i > 0) {
this.x = i;
i -= 1;
}
}
}

}

If I set a breakpoint on 'i -= 1', the 'this' variable's x value is updated as shown in the Locals Window. Can you post a (small) example where it doesn't get updated?

Thanks,

Dermot
Logged
Pages: [1] Print 
« previous next »
Jump to:  

Powered by MySQL Powered by PHP Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC Valid XHTML 1.0! Valid CSS!