Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我已将 AuthToken 之类的变量保存到 App::Persistence 存储中,但我想对其进行调试。我可以通过 REPL 控制台访问它吗?
绝对地。 App::Persistence["AuthToken"]在 REPL 中可以正常工作。
App::Persistence["AuthToken"]
如果要获取持久存储的所有内容,请尝试App::Persistence.storage.dictionaryRepresentation. 查找以您的应用标识符 ( com.yourcompany.Appname_) 开头的键。
App::Persistence.storage.dictionaryRepresentation
com.yourcompany.Appname_