警告:erlang n00b提前。erlang中的截斷錯誤報告
我想要抓住erlang,只是嘗試一個基本的牛仔世界應用程序。我仿真錯誤,基本上在我的代碼某處返回一個無效的值,並試圖解釋錯誤,那就是:
=ERROR REPORT==== 11-Jul-2013::15:45:00 ===
Error in process <0.167.0> with exit value: {{try_clause,{ok, {http_req,#Port<0.3619>,ranch_tcp,keepalive,<0.167.0>,<<3 bytes>>,'HTTP/1.1', {{127,0,0,1},60312},<<9 bytes>>,undefined,8081,<<1 byte>>,undefined,<<0 bytes>>,undefined,[],[{<<10 bytes>>,<<11 bytes>>},{<<4 bytes>>,<<14 bytes>>},{<<6 bytes>>,<<3 bytes>>}],[],undefined,[],waiting,undefined,<<0 bytes>>,false,waiting,[],<<0 bytes>>,undefined}}}, [{cowboy_handler,handler_init,4,[...
我設置我的應用程序有鋼筋,而我用它跑:
erl -pa ebin deps/*/ebin -s myapp
正如你所看到的,錯誤以「...」結尾,這使我認爲它被截斷。有什麼方法可以打印完整的報告?
而且,有沒有什麼辦法讓它變得漂亮呢?
謝謝!
嘗試增加'-boot start_sasl'到'erl'命令線;這應該會給你更詳細的錯誤報告。 – legoscia
剛剛嘗試過,現在它也打印「進度報告」,但該錯誤仍然被截斷。 – Matt