diff --git a/api/data/PageReader.cfc b/api/data/PageReader.cfc index 2a4e1a8c0..2833cacc7 100644 --- a/api/data/PageReader.cfc +++ b/api/data/PageReader.cfc @@ -189,7 +189,7 @@ component { var meta = mid( str, 5, endComment - 5 ); //systemOutput( "!!" & meta & "!!", true ); if ( !isJson( meta ) ){ - throw "metadata is not json [#arguments.filePath#]"; + throw (message="metadata is not json [#arguments.filePath#]", detail=meta); } var body = mid( str, endComment + 3 ); if ( len( trim( body ) ) eq 0 ) diff --git a/docs/03.reference/01.functions/logallthreads/function.md b/docs/03.reference/01.functions/logallthreads/function.md index 1fb914529..93e3fecb5 100644 --- a/docs/03.reference/01.functions/logallthreads/function.md +++ b/docs/03.reference/01.functions/logallthreads/function.md @@ -1,20 +1,20 @@ --- -title: logAllThreads +title: LogAllThreads id: function-logallthreads -related: categories: - - system - - log - - debugging - - threads - - performance - - analysis +- debugging +- server +- system +- thread --- Creates detailed thread stack trace logs in JSONL format for performance analysis and debugging. + This function captures stack traces from all running threads at specified intervals for a given duration. + It executes asynchronously, returning immediately after starting the logging process, making it ideal for analyzing specific code segments by initiating logging just before the target code execution. + The output format is JSONL (JSON Lines), where each line represents a separate JSON object containing: - Timestamp offset in milliseconds from 1/1/1970 00:00:00 UTC (Unix 0) @@ -25,4 +25,4 @@ This data can be used for: - Performance bottleneck identification - Thread behavior analysis - Deadlock detection -- Resource usage patterns \ No newline at end of file +- Resource usage patterns diff --git a/docs/recipes/tag-syntax.md b/docs/recipes/tag-syntax.md index b87042bc6..e56b71ea0 100644 --- a/docs/recipes/tag-syntax.md +++ b/docs/recipes/tag-syntax.md @@ -12,9 +12,9 @@ "Syntax", "tag", "function", - "Script" - "throw" - "abort" + "Script", + "throw", + "abort", "return" ] }