1

Greetings I want to trace any variable changes that were caused from a specific function call.

My problem is that functionA has a specific behavior and after functionB is called the functionA behavior changes. So either of the following could help my situation:

  • watch all the variables that are being changed by functionB

  • watch all the variables of the functionA that are also used in functionB

If anyone could propose any appropriate tool it would be great.

PS I use watch expressions of Google debugger Tool but without result

partizanos
  • 778
  • 7
  • 18

1 Answers1

0

Possible duplicate: Listening for variable changes in JavaScript or jQuery

You can use object.watch but is not standard.

Check out Eli Grey own implementation: object-watch.js

Community
  • 1
  • 1
andybeli
  • 746
  • 5
  • 13
  • Correct me if I am wrong but I think that the object.watch is like the watch expression of the chrome debugger. In the sense that you should know which variable you want to see changes in. What I am looking for is searching for changes without knowing which variable I am looking for exactly. Thank you for your answer – partizanos Apr 17 '15 at 15:54