Does anyone know how to fix the out of scope issue in visual studio debugger


coming into the dll i do this
AmiVar ticker = gSite.CallFunction(“NAME”,0,0);
when i try to display it in the watchlist it out of scope.


If you are asking about C++ local variables are created on stack in local function stack frame, which means that they are not accessible if CPU instruction pointer is NOT inside the function.


I figure the way to display the value is just dump it to text file. once I verified the value correct I just remove writing it to the file. Putting the ticker in a watchlist did not display the ticker