Where Does CF Debug Information Come from Mommy? Or How to use the ColdFusion Service Factory

Have you ever wondered where ColdFusion gets the information presented when debugging is turned on in the CF Admin? It comes from the ColdFusion Server's Service Factory. Of the many things that this produces, one is the debugging service.

Drop this code into one of your templates:

view plain print about
1<cfdump var="#createObject("java","coldfusion.server.ServiceFactory").getDebuggingService().getDebugger().getData()#" label="Debug Data" />

You can see first that we are calling the Service Factory, then the Debugging service, then the Debugger, and finally the data produced. If you care to investigate what each does, simply eliminate calls from the right end of the createObject statement and dump it.

Comments (Comment Moderation is enabled. Your comment will not appear until approved.)
BlogCFC was created by Raymond Camden. This blog is running version 5.9.7. Contact Blog Owner