{"id":1452,"date":"2014-09-22T16:49:23","date_gmt":"2014-09-22T07:49:23","guid":{"rendered":"http:\/\/kazu.tv\/blog\/?p=1452"},"modified":"2014-09-23T10:52:25","modified_gmt":"2014-09-23T01:52:25","slug":"show-full-stack-trace-in-sbt","status":"publish","type":"post","link":"https:\/\/kazu.tv\/blog\/2014\/09\/22\/show-full-stack-trace-in-sbt\/","title":{"rendered":"sbt\u3067stacktrace\u3092\u5168\u90e8\u8868\u793a\u3055\u305b\u308b"},"content":{"rendered":"<p>\u81ea\u5206\u7528\u30e1\u30e2\u3002<\/p>\n<p>Play! framework\u3092\u4f7f\u3063\u305f\u958b\u767a\u3067\u3001\u30a8\u30e9\u30fc\u767a\u751f\u6642\u306bstacktrace\u304c\u9014\u4e2d\u3067\u9014\u5207\u308c\u3066\u3057\u307e\u3046\u4e8b\u304c\u3042\u308b\u3001<\/p>\n<p>ScalaTest\u306e\u5834\u5408\u306f\u3001<a title=\"Using ScalaTest with sbt\" href=\"http:\/\/www.scalatest.org\/user_guide\/using_scalatest_with_sbt\" target=\"_blank\">\u3053\u3061\u3089<\/a>\u306b\u3042\u308b\u3088\u3046\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6307\u5b9a\u3059\u308b\u3002<\/p>\n<pre class=\"brush: scala;\">testOptions in Test += Tests.Argument(\"-oD\")<\/pre>\n<p>sbt\u81ea\u8eab\u306e\u8a71\u3060\u304c\u3001\u30c7\u30d5\u30a9\u30eb\u30c8\u3067\u306f\u5927\u62b5\u306estack trace\u306f\u96a0\u3055\u308c\u3066\u3057\u307e\u3046\u3002<\/p>\n<blockquote><p>By default, sbt hides the stack trace of most exceptions thrown during execution. It prints a message that indicates how to display the exception. However, you may want to show more of stack traces by default.<\/p><\/blockquote>\n<p>\u8868\u793a\u3059\u308b\u305f\u3081\u306b\u306f\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u3059\u308b\u3002\u8a73\u3057\u304f\u306f<a title=\"Configure and use logging - sbt Documentation\" href=\"http:\/\/www.scala-sbt.org\/0.13.5\/docs\/Howto\/logging.html\" target=\"_blank\">\u30de\u30cb\u30e5\u30a2\u30eb<\/a>\u53c2\u7167\u3002<\/p>\n<pre class=\"brush: plain;\">&gt; set every traceLevel := 0<\/pre>\n<p>\u6700\u521d\u304b\u3089on\u306b\u3057\u3066\u3066\u304f\u308c\u308c\u3070\u3044\u3044\u306e\u306b\u3002<\/p>\n<p>\u8ffd\u8a18\uff1a<\/p>\n<p>xuwei_k\u3055\u3093\u304b\u3089\u306e\u30b3\u30e1\u30f3\u30c8\u306e\u901a\u308a\u3001last\u3068\u3084\u308b\u3068\u3001\u6700\u5f8c\u306b\u5b9f\u884c\u3057\u305f\u30b3\u30de\u30f3\u30c9\u306b\u95a2\u3059\u308b\u30ed\u30b0\u304c\u51fa\u529b\u3055\u308c\u308b\u3002<a href=\"http:\/\/www.scala-sbt.org\/0.13.5\/docs\/Howto\/logging.html\" target=\"_blank\">\u30de\u30cb\u30e5\u30a2\u30eb<\/a>\u306e\u4e00\u756a\u4e0a\u306b\u66f8\u3044\u3066\u3042\u308b\u3002<\/p>\n<blockquote><p>When a command is run, more detailed logging output is sent to a file than to the screen (by default). This output can be recalled for the command just executed by running <span class=\"pre\">last<\/span>.<\/p><\/blockquote>\n","protected":false},"excerpt":{"rendered":"<p>\u81ea\u5206\u7528\u30e1\u30e2\u3002 Play! framework\u3092\u4f7f\u3063\u305f\u958b\u767a\u3067\u3001\u30a8\u30e9\u30fc\u767a\u751f\u6642\u306bstacktrace\u304c\u9014\u4e2d\u3067\u9014\u5207\u308c\u3066\u3057\u307e\u3046\u4e8b\u304c\u3042\u308b\u3001 ScalaTest\u306e\u5834\u5408\u306f\u3001\u3053\u3061\u3089\u306b\u3042\u308b\u3088\u3046\u306b\u4ee5\u4e0b\u306e\u3088\u3046\u306b\u6307\u5b9a\u3059\u308b\u3002 testOptions&hellip;<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_monsterinsights_skip_tracking":false,"_monsterinsights_sitenote_active":false,"_monsterinsights_sitenote_note":"","_monsterinsights_sitenote_category":0,"footnotes":""},"categories":[20],"tags":[808,947],"class_list":["post-1452","post","type-post","status-publish","format-standard","hentry","category-scala","tag-sbt","tag-scala"],"_links":{"self":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/1452","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/comments?post=1452"}],"version-history":[{"count":3,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/1452\/revisions"}],"predecessor-version":[{"id":1461,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/posts\/1452\/revisions\/1461"}],"wp:attachment":[{"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/media?parent=1452"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/categories?post=1452"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/kazu.tv\/blog\/wp-json\/wp\/v2\/tags?post=1452"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}