Idea上调试用sbt编写的软件验证程序

Idea上调试用sbt编写的软件验证程序

本文介绍了在Intellij Idea上调试用sbt编写的软件验证程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

限时删除!!

我正在使用


  1. 打开sbt shell工具窗口

  2. 点击左侧的附加调试器到sbt shell按钮

  3. 设置代码中的断点

  4. 运行任务


I'm working with Stainless, a software verifier for Scala programs. I would like to debug the verification process of a sample programme on Intellij Idea. On a previous post, I solved this integration problem for an interactive theorem prover. But now, I'm facing two problems:

  1. Apparently, the verification software runs at compile time. That is, I enter in the sbt console and run the compile command and then the verification process seems to be done. You may try this with this verified example. This situation is new to me, since I was used to debug the program while executing.

  2. All the setup in the sbt files of the example above (see for instance this file) seem to refer to online content, while I want to make sure that I work with my local copy forked from the original repository of the verifier.

None of the configurations I tried worked. Can you help me out of this problem?

Details

This is the current configuration page of stainless.

解决方案

If the verification runs within the sbt process, you can debug it by attaching the debugger to sbt. IntelliJ makes this easy with the embedded sbt shell:

  1. open the sbt shell toolwindow
  2. click the "attach debugger to sbt shell" button on the left
  3. set breakpoints in your code
  4. run the task

这篇关于在Intellij Idea上调试用sbt编写的软件验证程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

1403页,肝出来的..

09-06 21:46