| 제목 | 에러 발생시 화면에 아무것도 나오지 않는 문제 | ||
|---|---|---|---|
| 글쓴이 | 제스퍼 | 작성시각 | 2013/08/19 12:48:18 | 
|  | |||
| php 설정 떄문에..뭔가.. 에러발생시 아무것도 안나오도록 세팅되어있는거 같기는 한데.. 뭘 수정해야 에러와 함께 메세지가 화면에 나올까요??? ci 자체에서 막는것 같기도 하고.. 흠..에러가 출력되는 화면은 아예 아무것도 나오지 않아요.. 소스보기 해도 쩜하나도 안찍혀있더군요;; ㄷㄷㄷㄷ 뭘 수정해아하는건가요? | |||
| 다음글 | 공부 방향 질문 좀 드려도 될까요? (5) | ||
| 이전글 | 창피한 질문이긴 하지만 올려봅니다 (7) | ||
| 
                                변종원(웅파)
                                /
                                2013/08/19 12:54:11 /
                                추천
                                0
                             
                                mysql connect 문제인 경우가 90%입니다. 아파치 로그 보세요.
                             | 
| 
                                제스퍼
                                /
                                2013/08/19 13:02:09 /
                                추천
                                0
                             
                                웅파님 언제나 리플 감사합니다. mysql connect 문제도 에러메세지를 보고 싶은데.. 보게 할수 있는 세팅은 없는건가요? | 
| 
                                들국화
                                /
                                2013/08/19 13:15:06 /
                                추천
                                0
                             
                                 index.php 에서... 
/*
 *---------------------------------------------------------------
 * APPLICATION ENVIRONMENT
 *---------------------------------------------------------------
 *
 * You can load different configurations depending on your
 * current environment. Setting the environment also influences
 * things like logging and error reporting.
 *
 * This can be set to anything, but default usage is:
 *
 *     development
 *     testing
 *     production
 *
 * NOTE: If you change these, also change the error_reporting() code below
 *
 */
 define('ENVIRONMENT', 'development');
/*
 *---------------------------------------------------------------
 * ERROR REPORTING
 *---------------------------------------------------------------
 *
 * Different environments will require different levels of error reporting.
 * By default development will show errors but testing and live will hide them.
 */
if (defined('ENVIRONMENT'))
{
 switch (ENVIRONMENT)
 {
  case 'development':
   error_reporting(E_ALL);
  break;
 
  case 'testing':
  case 'production':
   error_reporting(0);
  break;
  default:
   exit('The application environment is not set correctly.');
 }
}하고 config/config.php에서 /* |-------------------------------------------------------------------------- | Error Logging Threshold |-------------------------------------------------------------------------- | | If you have enabled error logging, you can set an error threshold to | determine what gets logged. Threshold options are: | You can enable error logging by setting a threshold over zero. The | threshold determines what gets logged. Threshold options are: | | 0 = Disables logging, Error logging TURNED OFF | 1 = Error Messages (including PHP errors) | 2 = Debug Messages | 3 = Informational Messages | 4 = All Messages | | For a live site you'll usually only enable Errors (1) to be logged otherwise | your log files will fill up very fast. | */ $config['log_threshold'] = 0; /* |-------------------------------------------------------------------------- | Error Logging Directory Path |-------------------------------------------------------------------------- | | Leave this BLANK unless you would like to set something other than the default | application/logs/ folder. Use a full server path with trailing slash. | */ $config['log_path'] = '';이부분을 보세요. FirePHP를 이용하는 방법도 있구요... | 
| 
                                제스퍼
                                /
                                2013/08/19 13:43:28 /
                                추천
                                0
                             
                                들국화 // 감사합니다. error_reporting해서 싹 보는거군요.. 디버그할때!!'ㅁ' 다시한번 감사합니다 @.@ |