[Coldbox 4] cbdebugger in Coldbox not outputting any debugging information

52 views
Skip to first unread message

Ryan Hinton

unread,
Apr 29, 2015, 12:26:42 PM4/29/15
to col...@googlegroups.com
Hello,

I am watching a video (https://vimeo.com/112133825) about Modules and attempted to follow along by installing cbdebugger via Commandbox.
It seems to have installed correctly and I included the settings into the Coldbox.cfc as suggested in the video, did a fwreinit=1, but I receive no output.
Also, I have found more settings in the Forgebox documentation for setting up the cbdugger and I added the configuration into Coldbox.cfc, did a fwreinit=1, but still no output at the bottom.

Am i missing something?

Thank you for your time and assistance!
Ryan Hinton

br...@bradwood.com

unread,
Apr 29, 2015, 12:28:07 PM4/29/15
to col...@googlegroups.com
Can you show us what's in your config?
 
I think this should be the correct config:

Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: br...@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com 
 
 
--------- Original Message ---------
--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/coldbox/0d605d23-599d-4ff2-9e61-a02f9ac6b9a6%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

Ryan Hinton

unread,
Apr 29, 2015, 12:35:01 PM4/29/15
to col...@googlegroups.com
Hi Again Brad!  I hope all is well.  Thank you for assisting me!

The following is Coldbox.cfc

component{

    // Configure ColdBox Application
    function configure(){

        // coldbox directives
        coldbox = {
            //Application Setup
            appName                 = "Your app name here",
            eventName                 = "event",

            //Development Settings
            reinitPassword            = "",
            handlersIndexAutoReload = true,

            //Implicit Events
            defaultEvent            = "",
            requestStartHandler        = "Main.onRequestStart",
            requestEndHandler        = "",
            applicationStartHandler = "Main.onAppInit",
            applicationEndHandler    = "",
            sessionStartHandler     = "",
            sessionEndHandler        = "",
            missingTemplateHandler    = "",

            //Extension Points
            applicationHelper             = "includes/helpers/ApplicationHelper.cfm",
            viewsHelper                    = "",
            modulesExternalLocation        = [],
            viewsExternalLocation        = "",
            layoutsExternalLocation     = "",
            handlersExternalLocation      = "",
            requestContextDecorator     = "",
            controllerDecorator            = "",

            //Error/Exception Handling
            exceptionHandler        = "",
            onInvalidEvent            = "",
            customErrorTemplate        = "",

            //Application Aspects
            handlerCaching             = false,
            eventCaching            = false,
            proxyReturnCollection     = false,
           
            // Debugger Settings
            debugger = {
                // Activate debugger for everybody
                debugMode = true,
                // Setup a password for the panel
                debugPassword = "",
                enableDumpVar = true,
                persistentRequestProfiler = true,
                maxPersistentRequestProfilers = 10,
                maxRCPanelQueryRows = 50,
                showTracerPanel = true,
                expandedTracerPanel = true,
                showInfoPanel = true,
                expandedInfoPanel = true,
                showCachePanel = true,
                expandedCachePanel = false,
                showRCPanel = true,
                expandedRCPanel = false,
                showModulesPanel = true,
                expandedModulesPanel = false,
                showRCSnapshots = false,
                wireboxCreationProfiler = false
            }
        };

        // custom settings
        settings = {

        };

        // environment settings, create a detectEnvironment() method to detect it yourself.
        // create a function with the name of the environment so it can be executed if that environment is detected
        // the value of the environment is a list of regex patterns to match the cgi.http_host.
        environments = {
            development = "localhost"
        };

        // Module Directives
        modules = {
            //Turn to false in production
            autoReload = true,
            // An array of modules names to load, empty means all of them
            include = [],
            // An array of modules names to NOT load, empty means none
            exclude = []
        };

        //LogBox DSL
        logBox = {
            // Define Appenders
            appenders = {
                coldboxTracer = { class="coldbox.system.logging.appenders.ConsoleAppender" }
            },
            // Root Logger
            root = { levelmax="INFO", appenders="*" },
            // Implicit Level Categories
            info = [ "coldbox.system" ]
        };

        //Layout Settings
        layoutSettings = {
            defaultLayout = "",
            defaultView   = ""
        };

        //Interceptor Settings
        interceptorSettings = {
            throwOnInvalidStates = false,
            customInterceptionPoints = ""
        };

        //Register interceptors as an array, we need order
        interceptors = [
            //SES
            {class="coldbox.system.interceptors.SES",
             properties={}
            }
        ];

        /*
        // flash scope configuration
        flash = {
            scope = "session,client,cluster,ColdboxCache,or full path",
            properties = {}, // constructor properties for the flash scope implementation
            inflateToRC = true, // automatically inflate flash data into the RC scope
            inflateToPRC = false, // automatically inflate flash data into the PRC scope
            autoPurge = true, // automatically purge flash data for you
            autoSave = true // automatically save flash scopes at end of a request and on relocations.
        };

        //Register Layouts
        layouts = [
            { name = "login",
               file = "Layout.tester.cfm",
              views = "vwLogin,test",
              folders = "tags,pdf/single"
            }
        ];

        //Conventions
        conventions = {
            handlersLocation = "handlers",
            viewsLocation      = "views",
            layoutsLocation  = "layouts",
            modelsLocation      = "models",
            eventAction      = "index"
        };

        //Datasources
        datasources = {
            mysite   = {name="mySite", dbType="mysql", username="root", password="pass"},
            blog_dsn = {name="myBlog", dbType="oracle", username="root", password="pass"}
        };
        */

    }

    /**
    * Development environment
    */
    function development(){
        coldbox.customErrorTemplate = "/coldbox/system/includes/BugReport.cfm";

br...@bradwood.com

unread,
Apr 29, 2015, 12:38:35 PM4/29/15
to col...@googlegroups.com
Move the debugger struct out of the coldbox struct.  It should be variables.debugger.
 
Thanks!

~Brad

ColdBox Platform Evangelist
Ortus Solutions, Corp

E-mail: br...@coldbox.org
ColdBox Platform: http://www.coldbox.org
Blog: http://www.codersrevolution.com 
 
 
--------- Original Message ---------
Subject: [coldbox:24147] Re: [Coldbox 4] cbdebugger in Coldbox not outputting any debugging information
From: "Ryan Hinton" <ry...@hintonco.com>
--
--
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
For News, visit http://blog.coldbox.org
For Documentation, visit http://wiki.coldbox.org
For Bug Reports, visit https://ortussolutions.atlassian.net/browse/COLDBOX
---
You received this message because you are subscribed to the Google Groups "ColdBox Platform" group.
To unsubscribe from this group and stop receiving emails from it, send an email to coldbox+u...@googlegroups.com.
To post to this group, send email to col...@googlegroups.com.

Ryan Hinton

unread,
Apr 29, 2015, 12:42:04 PM4/29/15
to col...@googlegroups.com
Another addendum
I also marked the module directive autoReload to true in Coldbox.cfc in case it was not reloading correctly.


On Wednesday, April 29, 2015 at 12:26:42 PM UTC-4, Ryan Hinton wrote:

Ryan Hinton

unread,
Apr 29, 2015, 12:51:20 PM4/29/15
to col...@googlegroups.com
It worked, thank you, Brad!

Btw, I placed the debugger struct in the Coldbox struct because when watching the video it looked like Luis was placing it into the Coldbox struct by appending the following to the end of the struct:

... debugMode = true, debugPassword = ""}

I may have misread where he was placing it in the video.

Thank you, again!
Ryan Hinton


On Wednesday, April 29, 2015 at 12:26:42 PM UTC-4, Ryan Hinton wrote:
Reply all
Reply to author
Forward
0 new messages