7

I have an object myObject and I'm not sure who's holding references to it. (I want to know because I'm reverse engineering something.)

I found the button "Objects pointing to this value" in the inspector, but it doesn't bring up anything, even if I make another object that's pointing, like this:

OrderedCollection new add: self ; inspect

Clearly, that button is broken! So, how can I get all referencing objects?

I'm using the Moose 4.6 image.

ewernli
  • 38,045
  • 5
  • 92
  • 123
nes1983
  • 15,209
  • 4
  • 44
  • 64

3 Answers3

5

PointerExplorer openOn: myObject works in Pharo, but it's slightly broken in Moose 4.6. For a quick fix revert ObjectExplorerWrapper >> icon to the previous version (AlainPlantec 12/6/2009 22:13)

In Pharo/Squeak, you can use:

myObject pointersTo
nes1983
  • 15,209
  • 4
  • 44
  • 64
4

In Pharo/Squeak, you can use: myObject pointersTo

Igor Stasenko
  • 1,037
  • 5
  • 8
0

In Squeak 4.5

PointerFinder pointersTo: myObject

and

PointerExplorer new openExplorerFor: myObject
User
  • 14,131
  • 2
  • 40
  • 59