diff --git a/static-data/default-plugins/debuginfo/debugapi.py b/static-data/default-plugins/debuginfo/debugapi.py index 2b2115e0..fdb5a457 100755 --- a/static-data/default-plugins/debuginfo/debugapi.py +++ b/static-data/default-plugins/debuginfo/debugapi.py @@ -24,7 +24,15 @@ from deadsimplekv import DeadSimpleKV flask_blueprint = Blueprint('debugAPI', __name__) +@flask_blueprint.route('/debug/dump_shared_state') +def get_shared_state(): + resp = "" + for i in g.too_many.objects.keys: + resp += i + dir(g.too_many.objects.keys[i]) + return Response(resp) + + @flask_blueprint.route('/debug/dump_shared_vars') def get_shared_vars(): kv: DeadSimpleKV = g.too_many.get(DeadSimpleKV) - return Response(kv.get_raw_json()) + return Response(dir(kv._data))