Subj : JSD_IterateObjects and other questions To : netscape.public.mozilla.jseng From : Sterling Bates Date : Sat Jun 05 2004 04:40 pm The first question related to iterating through all live objects using JSD_IterateObjects. Here's my original code (pascal): dobj := nil; repeat dobj := JSD_IterateObjects(FContext, @dobj); if (dobj <> nil) then // get name of dobj^.obj until (dobj = nil); The above will loop infinitely, so I went to this code: dobj := nil; first := nil; count := 0; repeat dobj := JSD_IterateObjects(FContext, @dobj); if (first = nil) then first := dobj else if (dobj <> nil) then // get name of dobj^.obj Inc(count); until (dobj = nil) or ((dobj = first) and (count > 1)); Even using this I can only see the first of three functions defined in my script using this API. If I use the JS_PropertyIterator I can see the names of all three. My other question is about breakpoints. This is my first time trying to implement such a thing, and I have no idea how to use either the debugger or jsdbgapi.h to accomplish it. I think that JS_SetTrap has something to do with it, but I then do not know how to obtain the proper pc value. Thanks for any help! Sterling .