How to debug Play application using activator?

前端 未结 5 1301
感动是毒
感动是毒 2021-01-30 17:17

I know that for the classic Play framework it\'s play debug ~run. I tried running activator debug ~run but I get the following error:

[         


        
5条回答
  •  被撕碎了的回忆
    2021-01-30 17:55

    With the Play framework 2.x:

    Inside your project directory, run the activator command like

    activator -jvm-debug 9999 run

    Once this is done, debug your project as Remote Java Application within your IDE to hook it with the activator process.

    Once this is done, you shall be able to break in your code anywhere. :)

提交回复
热议问题