Out Of Scope, Debugging Problem
-
Hi All, I'm a pretty experienced programmer but can't figure how to see the value of some variables when in debugger - either Watch Window or the Immediate Window (.NET 2008, C++). The Watch Window lists them as :Out of Scope. At the least any variable passed into a function is not visible. Example: void MyFunction(int x, Int32 y) { int i; i = x * y; } i would be available but x & y are not. I've tried some project settings, optimization is off. Any help?
-
Hi All, I'm a pretty experienced programmer but can't figure how to see the value of some variables when in debugger - either Watch Window or the Immediate Window (.NET 2008, C++). The Watch Window lists them as :Out of Scope. At the least any variable passed into a function is not visible. Example: void MyFunction(int x, Int32 y) { int i; i = x * y; } i would be available but x & y are not. I've tried some project settings, optimization is off. Any help?
-
Hi All, I'm a pretty experienced programmer but can't figure how to see the value of some variables when in debugger - either Watch Window or the Immediate Window (.NET 2008, C++). The Watch Window lists them as :Out of Scope. At the least any variable passed into a function is not visible. Example: void MyFunction(int x, Int32 y) { int i; i = x * y; } i would be available but x & y are not. I've tried some project settings, optimization is off. Any help?
I presume the PC is pointing within the function? I compiled and linked your code and I was able to see the parameters.
Java, Basic, who cares - it's all a bunch of tree-hugging hippy cr*p
-
Hi All, I'm a pretty experienced programmer but can't figure how to see the value of some variables when in debugger - either Watch Window or the Immediate Window (.NET 2008, C++). The Watch Window lists them as :Out of Scope. At the least any variable passed into a function is not visible. Example: void MyFunction(int x, Int32 y) { int i; i = x * y; } i would be available but x & y are not. I've tried some project settings, optimization is off. Any help?
The breakpoint where the program has halted on is probably outside MyFunction.
«_Superman_» I love work. It gives me something to do between weekends.