윈도우

Flask 디버깅

ForceCore 2016. 7. 7. 22:55

Python run server 로 디버깅이 잘 되다가, IIS로 에뮬레이션 하면 안 될 때가 있다.


Flask 설정을 잘 해주면 보이게 된다:

app.config['PROPAGATE_EXCEPTIONS'] = True


http://stackoverflow.com/questions/18059937/flask-app-raises-a-500-error-with-no-exception

http://stackoverflow.com/questions/14993318/catching-a-500-server-error-in-flask


이래도 안 될 때가 있다. -_-^^;;;;; 그 때는 어쩔 수 없이 진짜로 return "xxx" 이런 구문을 중간중간 넣어서 어디에서 정지되는지, xxx가 안 뜨고 종료되는지, 뜨고 종료되는지 봐서 판정하는 수 밖에...