LoginSignup
3
3

More than 5 years have passed since last update.

SBTとIntelliJでブレークポイントを張る

Last updated at Posted at 2016-01-29

プロジェクトの設定の違いによる所が大きいいが上の記事をみて自分で実行してみたら失敗したので、上手く行った方法をメモする。
OS: Windows7
sbt: 0.13.8
scala: 2.11

コンソール側対応

set SBT_OPTS=-Xdebug -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=5005
sbt

IntelliJ側の対応

  1. Run/Debug Configurationsを開いて+ボタンを押してremoteを選択する。 intellij-config.png
  2. 上記の設定でdebugボタンを実行
  3. ブレークポイントを仕掛ける

以上を設定後
実行したいsbtのコマンドを打つ(testなど)でうまくいった。

参考
http://stackoverflow.com/questions/23332378/how-can-i-enable-remote-debugging-for-sbt-in-windows

3
3
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
3
3