<rt id="bn8ez"></rt>
<label id="bn8ez"></label>

  • <span id="bn8ez"></span>

    <label id="bn8ez"><meter id="bn8ez"></meter></label>

    posts - 495,comments - 227,trackbacks - 0
    http://stackoverflow.com/questions/4150776/debugging-scala-code-with-simple-build-tool-sbt-and-intellij

    idea下調試scala Web的設置
    1、Make sure you have sbt.Revolver in your project/plugsin.sbt file e.g.

    addSbtPlugin("io.spray" % "sbt-revolver" % "0.7.2")

    2、Set javaoptions in you build.sbt(or build.scala) file:
    javaOptions := Seq("-agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=5005")

    In particular use the suspend=y option. This will hold the app until you connect a remote debugger from Intellij

    3、Set up a debugger configuration in Intellij via Run / Edit Configurations menu. Press the + button, select the "Remote" option. Make sure the entries match the javaoptions above, in particular the port address of 5005. Give the config a name like 'Spray'.

    4、From your SBT console use the re-start command. You should see the 5005 port address in the feedback output.

    5、In Intellij set your breakpoints.

    6、From Intellij, select the Run \ Debug 'Spray'. This should connect to the spray-can web server. You should be able to see a lot of threads in the debug window.

    7、Beware that some of the Get directives in Spray seem to get executed on start up but not repeatedly on calling the website.
    posted on 2015-08-31 10:55 SIMONE 閱讀(314) 評論(0)  編輯  收藏

    只有注冊用戶登錄后才能發(fā)表評論。


    網站導航:
     
    主站蜘蛛池模板: 亚洲成a人片在线观看精品| 国产免费高清69式视频在线观看| 免费久久精品国产片香蕉| 中文字幕在线免费看| 亚洲在成人网在线看| 免费人成视频x8x8入口| 91精品视频在线免费观看| 亚洲AV一区二区三区四区| 亚洲av综合色区| 国产在线a不卡免费视频| 四虎国产精品永久免费网址| 亚洲欧美成aⅴ人在线观看| 亚洲国产精品无码av| 免费观看的a级毛片的网站| 日韩视频在线观看免费| 亚洲av日韩综合一区二区三区| 久久精品国产精品亚洲艾| 国产精品国产免费无码专区不卡| 三年片在线观看免费西瓜视频| 亚洲av无码成人精品国产| 亚洲国产精品一区二区久久| 免费吃奶摸下激烈视频| 美女视频黄是免费的网址| 在线观看免费无码视频| 香蕉视频亚洲一级| 亚洲同性男gay网站在线观看| 国产乱辈通伦影片在线播放亚洲| 成人奭片免费观看| 91精品国产免费| 中文字幕免费在线视频| 黄网站在线播放视频免费观看| 亚洲jjzzjjzz在线播放| 亚洲五月六月丁香激情| 国产av无码专区亚洲av果冻传媒 | 亚洲高清乱码午夜电影网| 久久久久久久亚洲Av无码| 亚洲色无码专区在线观看| 免费在线观看你懂的| 四虎成人免费观看在线网址 | 毛片a级毛片免费播放下载| 一级毛片免费观看|