Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
Hansol Kim edited this page Mar 4, 2017 · 2 revisions

Textcube 디버그 모드 기능

  • Textcube를 디버그 모드로 돌리면, 페이지 하단에 DBQuery가 보이게 됩니다.
  • defined('TCDEBUG') 를 사용하여 어디서든지 디버그 모드인지에 따라서 적당한 개발자 코드를 넣으실 수 있습니다

디버그 모드 활성화

Textcube 1.5

  • 설치된 디렉토리에 생성되는 config.php 에 다음과 같이 넣습니다. ||requireComponent("Needlworks.Function.Debug");||
  • 관련파일: [/browser/trunk/components/Needlworks.Function.Debug.php]

Textcube 1.6

  • 설치된 디렉토리에 생성되는 config.php 에 다음과 같이 넣습니다. ||$service!['debugmode'] = true;||
  • 추가적으로 세션 디버그나 rewrite 주소 처리 모듈의 디버그를 위해서는 다음의 줄을 추가해 주시면 됩니다.
    • $service!['debug_session_dump'] = true; // session info debuging.
    • $service!['debug_rewrite_module'] = true; // rewrite handling module debuging.

Textcube 2.0 (pre)

require_once ROOT.'/library/debug.php';
$debug = new Debug('logfile');
$debug->truncate();
$debug->writf("test %d", $i);
  • logfile 외에 socket을 통해 원격으로 모니터링하거나 syslog를 이용하는 것도 가능합니다. 자세한 것은 debug.php 내용을 참고하세요.
  • 프레임워크 도입이 시작되어 autoload가 제대로 작동하기 시작하면 require 없이 바로 사용 가능해질 예정입니다.

Clone this wiki locally

AltStyle によって変換されたページ (->オリジナル) /