- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
It is possible, in Visual Studio 2010 and IVF 15.1, to set a breakpoint such that the program stops when the value of a variable changes anywhere during the program execution rather than at a particular line of code? I've found any option where if you know the address of the variable you can set this but have not yet found how to get the address of a variable.
Thanks in advance for any tips.
Link Copied
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You have to use the LOC function to identify the address of a variable and define the no of bytes you have to watch.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
Thanks Luigi for the idea, I hadn't thought of that. I managed to sort out what was going on at last.
There ought to be a way of getting the address from within the debugger or VS so that you shouldn't need to change your code. At least there is a work-round by explicitly getting the address programmatically..
Thanks
Steve
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
You can use LOC(variablename) in the debugger field for entering the address.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
you can type the LOC(xxx(x,y)) as a function call with symbolic address into the data break window. Or enter xxx(x,y) into a Memory window, then the pull-down displays the hex address. This can be copied and pasted into the break address.
Jim Dempsey
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page