本文介绍了在变量中执行断点时获取假值的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我得到了 finalScore
的假值,发生了什么?
I got a bogus value of finalScore
, what happened?
我想知道为什么 finalScore
是 4339953456
而不是正确的数字 520
。
I want to know why finalScore
is 4339953456
rather than a correct number 520
.
推荐答案
您的断点位于上 finalScore =
行,表示程序在 计算此值之前已停止。
Your breakpoint is on the finalScore =
line, it means that the program is stopped before this value has been computed.
它应该不显示任何值,而不是虚假的值,也许,但这不是您要担心的事情:稍后将断点设置为一行,您的 finalScore
将具有适当的值。
It should show no value instead of a bogus value, probably, but this is not something that you have to worry about: set your breakpoint one line later and your finalScore
will have a proper value.
这篇关于在变量中执行断点时获取假值的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!