Commit graph

51 commits

Author SHA1 Message Date
Kijin Sung
417e4d15b0 More fixes to improve PHP 8.0 compatibility 2020-10-31 00:40:28 +09:00
Kijin Sung
90084efd75 Fix undefined indices and incompatible function signatures 2020-10-30 23:14:08 +09:00
Kijin Sung
3e18f2d6ba Add session_start() delay and all query time to debug data 2020-10-30 15:52:52 +09:00
Kijin Sung
85df901924 Misc fixes for compatibility with existing XML queries and schemas 2020-06-30 14:43:42 +09:00
Kijin Sung
902b931b89 Provide methods to tell total elapsed time 2020-06-29 22:30:48 +09:00
conory
c2221a25e6 캐시가 없는 상황에서 DB 연결 에러시 DB 에러 메세지 대신 php 치명적 에러가 나오는 문제 수정
(라이믹스 오류 화면 출력시에도 DB 연결이 사용되므로 Debug::displayErrorScreen() 함수를 거치면 치명적 에러가 발생되기에 Exception로 처리하지 않았음)
라이믹스가 설치되지 않은 상태에서는 "에러 로그로 확인하라는 메세지" 없이 에러가 바로 출력되도록 수정
2019-01-17 18:26:46 +09:00
Kijin Sung
6e0a51520d Don't encode Unicode when printing JSON error message 2018-12-20 11:55:04 +09:00
Kijin Sung
335d356c0c Don't print error in JSON if not an AJAX request
https://xetown.com/questions/1131537
2018-12-20 11:47:05 +09:00
Kijin Sung
bf6dca0f7d 디버그에서 최후의 수단으로 text를 출력하는 경우에도 상황에 맞는 인코딩 및 escape 처리 2018-12-18 14:36:48 +09:00
conory
ff79092019 디버깅 편의를 위해 오류 페이지 출력 도중 오류가 또 발생된다면 무시하고 그냥 text로 출력
https://xetown.com/questions/1123378
2018-12-15 01:13:37 +09:00
Kijin Sung
7b9fe8f7f2 Revert "Fix var_export() not working for stdClass in PHP < 7.3"
This reverts commit 3f7f802585.
2018-12-13 18:59:27 +09:00
Kijin Sung
3f7f802585 Fix var_export() not working for stdClass in PHP < 7.3 2018-12-13 15:22:11 +09:00
Kijin Sung
f278ae5e75 Add methods to enable/disable Debug log collection
크론탭 등에서 다수의 쿼리를 실행하거나 각종 일괄처리 작업을 할 때
디버그 기록 때문에 메모리 사용량이 무한정 증가하는 문제 방지
2018-05-30 20:48:04 +09:00
Kijin Sung
2dd549f076 Add methods to clear debug entries (for long-running scripts) 2018-01-16 15:03:36 +09:00
Kijin Sung
b1a4d322c7 Update admin check function in Debug::displayErrorScreen() 2017-10-15 23:42:38 +09:00
Kijin Sung
2db14c1ea9 Show query errors in debug panel and error log 2016-12-13 14:09:51 +09:00
Kijin Sung
cf6c5f727e Add option to control error logging 2016-09-14 13:13:29 +09:00
Kijin Sung
2dddc982a7 Treat user warnings as same as PHP warnings 2016-07-03 17:27:59 +09:00
Kijin Sung
6791208ae1 Prevent function arguments from being exposed in the error log
Also: Produce backtrace when a regular error occurs
Also: Remove unnecessary check for DEBUG_BACKTRACE_IGNORE_ARGS
(This is not necessary in PHP > 5.3.6)
2016-06-15 17:03:32 +09:00
Kijin Sung
2d54687a52 Add slow remote requests to debug content 2016-06-08 16:15:32 +09:00
Kijin Sung
88ffabfb7c Improve error handling in AJAX requests 2016-04-16 17:51:31 +09:00
Kijin Sung
740de5caf3 Replace FileHandler calls and other paths in Rhymix Framework 2016-03-18 21:03:22 +09:00
Kijin Sung
a33b961c62 Do not display HTML error page if the current SAPI is CLI 2016-03-16 16:31:27 +09:00
Kijin Sung
a6a1b25f2d Always allow debugging from localhost 2016-03-15 10:21:40 +09:00
Kijin Sung
93b045fa17 Fix incorrect use of global constant in Debug class 2016-03-15 09:59:38 +09:00
Kijin Sung
cb229c2d66 Clean up namespaces 2016-03-14 21:04:27 +09:00
Kijin Sung
544170b530 Move IpFilter class to Security namespace 2016-03-13 10:24:52 +09:00
Kijin Sung
0adb13ca30 Add inRanges() and validateRanges() methods to IpFilter class 2016-03-13 10:18:52 +09:00
Kijin Sung
c09a759ace Do not write debug entries to error log if debugging is disabled 2016-03-09 15:19:22 +09:00
CONORY
cf26f20461 Merge pull request #338 from conory/pr/add_function
lang() 함수 추가
2016-03-06 17:09:30 +09:00
conory
90400e2b5f 모두 lang() 함수로 변경 2016-03-06 17:01:15 +09:00
Kijin Sung
7b0c24e67c Improve debug settings 2016-03-06 14:13:34 +09:00
Kijin Sung
34a86defb6 Fix #321 incorrect display of objects in debugPrint() 2016-03-02 09:40:14 +09:00
Kijin Sung
bfe6be6535 Never allow warnings to be printed before headers 2016-02-16 16:35:29 +09:00
Kijin Sung
231e7100a1 Fix duplicate namespace in IpFilter class call 2016-02-16 11:48:16 +09:00
Kijin Sung
2c7f220445 Do not exit in Debug shutdown handler 2016-02-16 11:43:03 +09:00
Kijin Sung
588fefc88f Add slow queries, triggers, and widgets to debug comment output 2016-02-16 11:33:54 +09:00
Kijin Sung
516479cf20 Migrate addon, trigger, and widget logging functions to Debug class 2016-02-16 11:01:45 +09:00
Kijin Sung
0947bafa66 Add unit tests for the Debug class 2016-02-15 16:11:00 +09:00
Kijin Sung
283a1a73bc Convert paths in error message relative to RX_BASEDIR 2016-02-15 14:36:21 +09:00
Kijin Sung
7c4fc37dd3 Make debug log filename configurable 2016-02-15 14:28:57 +09:00
Kijin Sung
e1d85ffb22 Record debug entries in error log 2016-02-14 20:08:11 +09:00
Kijin Sung
51f985c215 Only use error handler and slowlog when debugging is enabled 2016-02-13 11:29:09 +09:00
Kijin Sung
e04efdd03e Do not display meaningless debug information 2016-02-13 10:40:40 +09:00
Kijin Sung
373305ab6b Initial implementation of debug panel on web page 2016-02-13 01:33:06 +09:00
Kijin Sung
ac8460d782 Finalize debug data format and allow all statistics to be collected 2016-02-12 21:31:38 +09:00
Kijin Sung
8394afce74 Minor adjustments 2016-02-12 20:33:05 +09:00
Kijin Sung
d63900547e Replace debug comment with new system 2016-02-12 16:35:10 +09:00
Kijin Sung
3648b8f156 Do not disable debugging inside the debugger 2016-02-12 14:45:23 +09:00
Kijin Sung
18ff40eae6 Miscellaneous fixes 2016-02-12 14:43:48 +09:00