001    package railo.runtime.debug;
002    
003    import java.util.HashSet;
004    import java.util.Set;
005    
006    import railo.runtime.PageContext;
007    import railo.runtime.exp.PageException;
008    import railo.runtime.type.Struct;
009    import railo.runtime.type.StructImpl;
010    import railo.runtime.type.util.KeyConstants;
011    
012    public class DebuggerUtil {
013    
014            
015            public Struct pointOutClosuresInPersistentScopes(PageContext pc){
016                    Struct sct=new StructImpl();
017                    Set<Object> done=new HashSet<Object>();
018                    //Application Scope
019                    try {
020                            sct.set(
021                                            KeyConstants._application, 
022                                            _pointOutClosuresInPersistentScopes(pc,pc.applicationScope(),done));
023                    } 
024                    catch (PageException e) {}
025                    
026                    //Session Scope
027                    try {
028                            sct.set(
029                                            KeyConstants._application, 
030                                            _pointOutClosuresInPersistentScopes(pc,pc.sessionScope(),done));
031                    } 
032                    catch (PageException e) {}
033                    
034                    //Server Scope
035                    try {
036                            sct.set(
037                                            KeyConstants._application, 
038                                            _pointOutClosuresInPersistentScopes(pc,pc.serverScope(),done));
039                    } 
040                    catch (PageException e) {}
041                    
042                    
043                    
044                    return null;
045            }
046    
047            private Struct _pointOutClosuresInPersistentScopes(PageContext pc, Struct sct, Set<Object> done) {
048                    
049                    return null;
050            }
051    }