简体   繁体   中英

VSCode for Play framework using Java and Sbt (Scala) on WSL

I have been trying to setup a 'Play Framework' code base on my Visual Studio Code. The code is written in Java and uses Sbt(Scala) to download references\/packages, compile and run. I have installed the 'Java extension pack' and the 'Sbt plugin' by lightbend on VsCode. The 'sbt compile' and 'sbt run' runs fine and I am able to run the application using

"sbt -jvm-debug 5005 'run 9001'"

I know it has been a long time since the question has been asked but I just wanted to share what worked for me.

This seems to be a problem with the project setup in Visual Studio Code and not necessarily a problem with the Debug configuration. I setup the Play Framework project in VSC as it is explained here (especially the changes in the pom.xml file) and it worked great for me. I was even able to run the application in Debug mode and evaluate the variables just fine.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM