14

Does anybody know how to trace messages in the google chrome console using Flex3. In the logs section for example.

ketan
  • 19,129
  • 42
  • 60
  • 98
Dave
  • 598
  • 2
  • 4
  • 17

1 Answers1

36
import flash.external.ExternalInterface;

ExternalInterface.call("console.log", "YourString");

See here for more information.

Ranhiru Jude Cooray
  • 19,542
  • 20
  • 83
  • 128
  • 1
    Thanks work perfect. I also installed Vizzy from http://code.google.com/p/flash-tracer/downloads/list which worked great. console.clear is not working well though any idea? Thanks again – Dave Nov 21 '12 at 13:51
  • Did you try `console.clear()` ? It works for me. Also here's another tool I've used called [Alcon](http://www.tetragonengine.com/alcon/). And you can find a few more tools listed [here](http://ntt.cc/2008/03/29/the-list-of-helpful-flex-or-flash-debug-tools.html). Also if this answer is satisfactory, please mark as the correct answer. – Ranhiru Jude Cooray Nov 21 '12 at 15:32