本文介绍了在IntelliJ IDEA中调试启用了DCEVM的sbt-scala应用程序的解决方案的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我使用DCEVM在我的Scala应用程序中重新加载类。 Sbt有一个很好的功能,它可以在源代码更改时自动编译类。所以我做的是我打开两个sbt实例,我运行〜; compile; copy-resources 在第一个实例中进行自动编译,而在第二个实例中运行

I use DCEVM to reload classes in my Scala application. Sbt has a nice feature that it can auto-compile classes when their source code changes. So what I do is I open up two sbt instances and I run ~;compile;copy-resources in the first instance to auto-compile, and run in the second instance.

要调试,我可以使用IntelliJ中的远程调试工具,除了一个(但重要的) )事情:每当sbt重新加载一个类,IntelliJ不再停止在断点。我必须重新启动远程调试器才能解决这个问题,这是非常不方便的。

To debug, I can use the remote debugger tool in IntelliJ that works pretty well except for one (but important) thing: whenever sbt reloads a class, IntelliJ no longer stops at break points. I have to restart the remote debugger in order to fix this, which is very inconvenient.

我不喜欢内置的编译器,因为它比但是,如果我从IntelliJ运行程序并执行编译文件命令,则调试工作正常。

I do not really like the built-in compiler as it is really slow compared to sbt (and also not automatic), however, if I run the program from IntelliJ and execute the Compile file command, the debugging works well.

如何通过使sbt和IntelliJ刷新类重新加载的断点或使用其他设置来改进开发过程?谢谢你提前。

How could I improve the development process either by having sbt and IntelliJ refresh the break points on class reload or by using another setup? Thank you in advance.

推荐答案

答案很晚,但是:
你试过了组合键Ctrl + F9保存您的修改后?
您应该会看到一个baloon弹出来说,一个/更多的类已经被修改。

The answer is pretty late, but:Have you tried the key combination Ctrl+F9 after you saved your modifications?You should see a baloon pop up saying that one/more classes has/have been modified.

与我的Java应用程序有同样的问题。 刷新有帮助。

Had the same problem with my Java application. The "refresh" helped.

这篇关于在IntelliJ IDEA中调试启用了DCEVM的sbt-scala应用程序的解决方案的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 21:40