# Trace entire array?

**URL:** https://forum.kirupa.com/t/trace-entire-array/269207
**Category:** flash
**Created:** [August 24, 2008, 4:49pm UTC](https://forum.kirupa.com/t/trace-entire-array/269207 "2008-08-24T16:49:26Z")
**Posts on this page:** 3
**Page:** 1

<div class="post-metadata">

### Author: ![DesignerMichael](https://avatars.discourse-cdn.com/v4/letter/d/898d66/32.png) [@DesignerMichael](https://forum.kirupa.com/u/DesignerMichael)
#### Post date: [August 24, 2008, 4:49pm UTC](https://forum.kirupa.com/t/trace-entire-array/269207/1 "2008-08-24T16:49:26Z")

</div>

How do you trace an entire array… Eg, like php’s print\_r. Is there a way to easily do it? I need to check all of the data in my arrays to see if it’s correct.

Also, whats the import for trace? I can’t find it…

---

<div class="post-metadata">

### Author: ![senocular](https://yyz1.discourse-cdn.com/flex011/user_avatar/forum.kirupa.com/senocular/32/7217_2.png) [@senocular](https://forum.kirupa.com/u/senocular)
#### Post date: [August 24, 2008, 4:58pm UTC](https://forum.kirupa.com/t/trace-entire-array/269207/2 "2008-08-24T16:58:39Z")

</div>

When you trace an array, it will automatically show you all the (numerically indexed) objects. Are you looking for something that will trace an object/hash? There’s nothing that will do that within the language by default, buy you can make your own using for…in loops.

Also there is no import for trace, its in the open global namespace

---

<div class="post-metadata">

### Author: ![DesignerMichael](https://avatars.discourse-cdn.com/v4/letter/d/898d66/32.png) [@DesignerMichael](https://forum.kirupa.com/u/DesignerMichael)
#### Post date: [August 24, 2008, 5:12pm UTC](https://forum.kirupa.com/t/trace-entire-array/269207/3 "2008-08-24T17:12:40Z")

</div>

Why doesn’t trace do anything then… lol

At least not in classes…  
Edit: Oh wait, it started working again… I must be high… lol! Or maybe something is going on with my vista/win xpsp2 compatibility mode…
