Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

wivar not work #106

Closed
onmyway133 opened this issue Aug 26, 2015 · 4 comments
Closed

wivar not work #106

onmyway133 opened this issue Aug 26, 2015 · 4 comments

Comments

@onmyway133
Copy link

In my ViewController, I have

@interface ViewController ()
@property (nonatomic, strong) NSNumber *number;
@end

And in LLDB
wivar self _number

I change that number, but the program does not pause. Use Xcode Debugger -> Right click on variable -> Watch works

@kastiglione
Copy link
Contributor

I missed this issue, sorry about that! I'll look into this.

@idrisr
Copy link
Contributor

idrisr commented Oct 6, 2015

I can confirm this bug. Here is a simple app to quickly reproduce the issue: https://github.com/idrisr/wivarBug.

Also I added a watchpoint to that ivar using the Xcode GUI tools and using wivar self _number. You can see from below that there are different memory addresses being watched so the error is likely somewhere in calculating the memory offset of the ivar.

ss 2015-10-06 at 12 04 38 am

@idrisr
Copy link
Contributor

idrisr commented Oct 11, 2015

I've submited this pull request to fix this issue: #117

@kastiglione
Copy link
Contributor

Fixed by #117

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants