You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: readme.md
+90Lines changed: 90 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -13,6 +13,96 @@ Apache License, Version 2.0.
13
13
- Railo 4+
14
14
- ColdFusion 9+
15
15
16
+
#INSTRUCTIONS
17
+
18
+
Just drop into your **modules** folder or use CommandBox to install
19
+
20
+
`box install cbdebugger`
21
+
22
+
This will activate the debugger in your application and render out at the end of a request.
23
+
24
+
## Settings
25
+
This will also allow you to use several settings in your parent application or you can modify the settings in the `ModuleConfig` if desired. We recommend placing your debugger settings in your main `ColdBox.cfc` configuration file under a `debugger` struct.
26
+
27
+
```js
28
+
// Debugger Settings
29
+
debugger= {
30
+
// Activate debugger for everybody
31
+
debugMode =true,
32
+
// Setup a password for the panel
33
+
debugPassword ="",
34
+
enableDumpVar =true,
35
+
persistentRequestProfiler =true,
36
+
maxPersistentRequestProfilers =10,
37
+
maxRCPanelQueryRows =50,
38
+
showTracerPanel =true,
39
+
expandedTracerPanel =true,
40
+
showInfoPanel =true,
41
+
expandedInfoPanel =true,
42
+
showCachePanel =true,
43
+
expandedCachePanel =false,
44
+
showRCPanel =true,
45
+
expandedRCPanel =false,
46
+
showModulesPanel =true,
47
+
expandedModulesPanel =false,
48
+
showRCSnapshots =false,
49
+
wireboxCreationProfiler=false
50
+
};
51
+
```
52
+
53
+
## WireBox Mappings
54
+
The module will also register two model objects for you:
55
+
56
+
*`debuggerService@cbdebugger`
57
+
*`timer@cbdebugger`
58
+
59
+
The `DebuggerService` can be used a-la-carte for your debugging purposes.
60
+
The `Timer` object will allow you to time code execution and send the results to the debugger panel.
61
+
62
+
## Mixins
63
+
64
+
This module will also register a few methods in all your handlers/interceptors/layouts and views:
65
+
66
+
```js
67
+
/**
68
+
* Method to turn on the rendering of the debug panel on a reqquest
69
+
*/
70
+
any functionshowDebugger()
71
+
72
+
/**
73
+
* Method to turn off the rendering of the debug panel on a reqquest
74
+
*/
75
+
any function hideDebugger()
76
+
77
+
/**
78
+
* See if the debugger will be rendering or not
79
+
*/
80
+
boolean function isDebuggerRendering()
81
+
```
82
+
83
+
84
+
## LogBox Appender
85
+
86
+
This module also comes with a LogBox appender called `cbdebugger.includes.appenders.ColdBoxTracerAppender` so your application can log to the debugger's tracer. You won't be able to configure the appender in your main LogBox configuration since modules aren't loaded until after LogBox is already created. What you can do though is add the appender programmatically to LogBox using the `afterConfigurationLoad` interception point. Here's an example of what that might look like:
87
+
88
+
89
+
```js
90
+
// This appender is part of a module, so we need to register it after the modules have been loaded.
0 commit comments