NativeScript - 如何在调试时查看应用程序设置的内容?

NativeScript - how to view the contents of the app settings while debugging?

我正在使用 NativeScript 6+ 和 Angular 8+ 编写应用程序。

我将需要使用一些客户端存储来保存一些数据,以便在用户每次使用该应用程序时它都会保留。

我在这里读到过:

https://docs.nativescript.org/ns-framework-modules/application-settings

https://www.nativescript.org/blog/client-side-storage-in-nativescript-applications

我要使用 'app settings'。

我在开发和调试时,希望能够查看和编辑应用程序设置的内容。我该怎么做?

没有直接的方法可以查看所有这些密钥。您可以在 application-settings 模块上使用 getAllKeys() 方法来获取所有活动键,然后获取每个键的值,如果需要在调试时记录它。