Skip to content

Commit ed5a837

Browse files
committed
Merge branch 'development'
2 parents ca200f5 + 5f1c1da commit ed5a837

File tree

8 files changed

+40
-18
lines changed

8 files changed

+40
-18
lines changed

ModuleConfig.cfc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -101,14 +101,14 @@ component {
101101
modules : { enabled : false, expanded : false },
102102
// Quick and QB Reporting
103103
qb : {
104-
enabled : true,
104+
enabled : false,
105105
expanded : false,
106106
// Log the binding parameters
107107
logParams : true
108108
},
109109
// cborm Reporting
110110
cborm : {
111-
enabled : true,
111+
enabled : false,
112112
expanded : false,
113113
// Log the binding parameters
114114
logParams : true

box.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,11 +2,11 @@
22
"name":"ColdBox Debugger",
33
"author":"Ortus Solutions <[email protected]",
44
"location":"https://downloads.ortussolutions.com/ortussolutions/coldbox-modules/cbdebugger/@build.version@/[email protected]@.zip",
5-
"version":"3.0.0",
5+
"version":"3.1.0",
66
"slug":"cbdebugger",
77
"type":"modules",
88
"homepage":"https://github.com/coldbox-modules/cbdebugger",
9-
"bugs":"https://github.com/coldbox-modules/cbdebugger/issues",
9+
"bugs":"https://ortussolutions.atlassian.net/browse/CBDEBUGGER",
1010
"documentation":"https://github.com/coldbox-modules/cbdebugger",
1111
"repository":{
1212
"type":"git",

changelog.md

Lines changed: 16 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,22 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0
77

88
----
99

10-
## [3.0.0]
10+
## [3.1.0] => 2021-MAy-19
11+
12+
### Fixed
13+
14+
* Fix wrong cborm reference on QBCollector
15+
* Look at the renderdata content type instead of type as it's more consistent in order to turn off the debugger on multi-marshalled sites
16+
* [CBDEBUGGER-1] - Lucee debugger no longer shows below the cbDebugger. Turn off only on Ajax Calls
17+
18+
### Changed
19+
20+
* Use Java property for version to work with jdk8+
21+
* [CBDEBUGGER-2] - Made `cborm` and `qb` disabled by default
22+
23+
----
24+
25+
## [3.0.0] => 2021-APR-07
1126

1227
### Added
1328

handlers/Main.cfc

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,10 @@ component extends="coldbox.system.RestHandler" {
2121
// Global params
2222
event.paramValue( "frequency", 0 ).paramValue( "isVisualizer", false );
2323

24-
// Don't show cf debug
25-
cfsetting( showdebugoutput = "false" );
24+
// Don't show cf debug on ajax calls
25+
if( event.isAjax() ){
26+
cfsetting( showdebugoutput = "false" );
27+
}
2628

2729
// If not enabled, just 404 it
2830
if ( !variables.debuggerService.getDebugMode() ) {

interceptors/QBCollector.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ component extends="coldbox.system.Interceptor" {
5252
var logData = {
5353
"timestamp" : arguments.interceptData.timestamp,
5454
"sql" : arguments.interceptData.sql,
55-
"params" : variables.debuggerConfig.cborm.logParams ? arguments.interceptData.bindings : [],
55+
"params" : variables.debuggerConfig.qb.logParams ? arguments.interceptData.bindings : [],
5656
"options" : arguments.interceptData.options,
5757
"executionTime" : arguments.interceptData.executionTime,
5858
"caller" : variables.debuggerService.discoverCallingStack( "get", "QueryBuilder" )

interceptors/RequestCollector.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ component extends="coldbox.system.Interceptor" {
100100
// Has it not been disabled by the user programmatically
101101
arguments.event.getPrivateValue( "cbox_debugger_show", true ) AND
102102
// We don't have any render data OR the render data is HTML
103-
( structIsEmpty( arguments.event.getRenderData() ) || arguments.event.getRenderData().type == "HTML" ) AND
103+
( structIsEmpty( arguments.event.getRenderData() ) || arguments.event.getRenderData().contentType == "text/html" ) AND
104104
// Don't render in ajax calls
105105
!arguments.event.isAjax() AND
106106
// Don't render in testing mode

models/DebuggerService.cfc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ component
8585
variables.environment = {
8686
"cfmlEngine" : server.coldfusion.productName,
8787
"cfmlVersion" : ( server.keyExists( "lucee" ) ? server.lucee.version : server.coldfusion.productVersion ),
88-
"javaVersion" : variables.jvmRuntime.version().toString(),
88+
"javaVersion" : createObject( "java", "java.lang.System" ).getProperty( "java.version" ),
8989
"totalMemory" : variables.jvmRuntime.totalMemory(),
9090
"maxMemory" : variables.jvmRuntime.maxMemory(),
9191
"availableProcessors" : variables.jvmRuntime.availableProcessors(),

readme.md

Lines changed: 13 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -28,9 +28,10 @@ Apache License, Version 2.0.
2828

2929
## Important Links
3030

31-
- https://github.com/coldbox-modules/cbox-debugger
32-
- https://www.forgebox.io/view/cbdebugger
33-
- https://community.ortussolutions.com/c/box-modules/cbdebugger/38
31+
- Source: https://github.com/coldbox-modules/cbox-debugger
32+
- ForgeBox: https://www.forgebox.io/view/cbdebugger
33+
- Community: https://community.ortussolutions.com/c/box-modules/cbdebugger/38
34+
- Issues: https://ortussolutions.atlassian.net/browse/CBDEBUGGER
3435
- [Changelog](changelog.md)
3536

3637
## System Requirements
@@ -86,6 +87,8 @@ moduleSettings = {
8687
debugPassword : "cb:null",
8788
// Request Tracker Options
8889
requestTracker : {
90+
// Track all cbdebugger events, by default this is off, turn on, when actually profiling yourself :) How Meta!
91+
trackDebuggerEvents : false,
8992
// Store the request profilers in heap memory or in cachebox, default is cachebox
9093
storage : "cachebox",
9194
// Which cache region to store the profilers in
@@ -149,7 +152,7 @@ moduleSettings = {
149152
cborm : {
150153
enabled : true,
151154
expanded : false,
152-
// Log the binding parameters
155+
// Log the binding parameters (requires CBORM 3.2.0+)
153156
logParams : true
154157
},
155158
// Async Manager Reporting
@@ -177,12 +180,12 @@ This module will also register a few methods in all your handlers/interceptors/l
177180

178181
```js
179182
/**
180-
* Method to turn on the rendering of the debug panel on a reqquest
183+
* Method to turn on the rendering of the debug panel on a request
181184
*/
182185
any function showDebugger()
183186

184187
/**
185-
* Method to turn off the rendering of the debug panel on a reqquest
188+
* Method to turn off the rendering of the debug panel on a request
186189
*/
187190
any function hideDebugger()
188191

@@ -371,12 +374,14 @@ We have a dedicated panel in the debugger that will track all criteria queries a
371374
cborm : {
372375
enabled : true,
373376
expanded : false,
374-
// Log the binding parameters
377+
// Log the binding parameters (requires CBORM 3.2.0+)
375378
logParams : true
376379
}
377380
```
378381

379-
You can also select to `logParams` and we will track the original executable parameters of the query so you can debug the actual values of these executions. We will also track from WHERE in the application the sql execution came from and you can even open the file to that specific line number using our code editor integrations by clicking our **open in editor** buttons.
382+
You can also enable `logParams` and we will track the original executable parameters of the query so you can debug the actual values of these executions. We will also track from WHERE in the application the sql execution came from and you can even open the file to that specific line number using our code editor integrations by clicking our **open in editor** buttons.
383+
384+
> **Note**: CBDebugger's `cborm.logParams` setting requires CBORM 3.2.0 or higher.
380385
381386
The grouped view you see above will give you an aggregate look of all the sql calls made during the request and their frequency of execution. It will also give you a mini report of those specific sql groups with data about where the query originated from in your source code and the binding parameters, if activated.
382387

0 commit comments

Comments
 (0)