如何检查Flex调试器中的Singleton?

时间:2022-04-20 17:54:15

I'm storing my model data in a Singleton called ModelLocator. This is pretty common...

我将我的模型数据存储在名为ModelLocator的Singleton中。这很常见......

Can I look at this data in the debugger?

我可以在调试器中查看这些数据吗?

[Edited - Title changed]

[已编辑 - 标题已更改]

1 个解决方案

#1


yes. you'd do something like the following.

是。你会做类似以下的事情。

var model : MySingleton = MySingleton.getInstance();

then stick a breakpoint at the above and you'll be able to see everything inside your model.

然后在上面贴上一个断点,你就可以看到模型中的所有内容。

#1


yes. you'd do something like the following.

是。你会做类似以下的事情。

var model : MySingleton = MySingleton.getInstance();

then stick a breakpoint at the above and you'll be able to see everything inside your model.

然后在上面贴上一个断点,你就可以看到模型中的所有内容。