Watches watch global not local variables. Put your variable declaration out of the function for debugging.