k-user AT lists.cs.illinois.edu
Subject: K-user mailing list
List archive
- From: Dwight Guth <dwight.guth AT runtimeverification.com>
- To: Hopácsiné Kőszegi Judit <koszegijudit AT caesar.elte.hu>
- Cc: K user list <k-user AT cs.uiuc.edu>
- Subject: Re: [[K-user] ] step-by-step rewriting
- Date: Wed, 4 Nov 2015 13:10:04 -0600
Hi,
The --debugger option in K 3.6 was never really fully implemented to the point of working correctly all the time. As such, it probably will not work and will likely not be updated to work in the near future. That said, there are a couple options you can choose from.On Thu, Oct 29, 2015 at 2:01 PM, Hopácsiné Kőszegi Judit <koszegijudit AT caesar.elte.hu> wrote:
Hello,
I would like to look at the rewriting steps the K framework make while executing a program, and I have found "--debugger" (experimental) option of krun.
I tried to krun my test program with --debugger flag, it started to work, but after a "step" command, I got an exception. Isn't it a proper command?
Details:
$ krun --debugger --debug tests/fib.erl
After running one step of execution the result is:
<T>
...
...
</T>
Command > step
java.util.NoSuchElementException: No value present
at java.util.Optional.get(Optional.java:135)
at org.kframework.krun.api.ExecutorDebugger.step(ExecutorDebugger.java:112)
at org.kframework.krun.tools.Debugger$Tool.run(Debugger.java:266)
at org.kframework.krun.tools.Debugger$Tool.run(Debugger.java:124)
at org.kframework.krun.KRunFrontEnd.run(KRunFrontEnd.java:131)
at org.kframework.main.FrontEnd.main(FrontEnd.java:52)
at org.kframework.main.Main.runApplication(Main.java:109)
at org.kframework.main.Main.runApplication(Main.java:99)
at org.kframework.main.Main.main(Main.java:51)
java.util.NoSuchElementException: No value present
at java.util.Optional.get(Optional.java:135)
at org.kframework.krun.api.ExecutorDebugger.step(ExecutorDebugger.java:112)
at org.kframework.krun.tools.Debugger$Tool.run(Debugger.java:266)
at org.kframework.krun.tools.Debugger$Tool.run(Debugger.java:124)
at org.kframework.krun.KRunFrontEnd.run(KRunFrontEnd.java:131)
at org.kframework.main.FrontEnd.main(FrontEnd.java:52)
at org.kframework.main.Main.runApplication(Main.java:109)
at org.kframework.main.Main.runApplication(Main.java:99)
at org.kframework.main.Main.main(Main.java:51)
[Error] Internal: Uncaught exception thrown of type NoSuchElementException.
Please rerun your program with the --debug flag to generate a stack trace, and
file a bug report at https://github.com/kframework/k/issues
$ krun --version
K framework version 3.6
Git revision: 28ea17d
Git branch: UNKNOWN
Build date: Fri Aug 21 21:36:54 BST 2015
Operating system: Ubuntu 14.04 LTS
Thanks,
Judit H. Koszegi
- Re: [[K-user] ] step-by-step rewriting, Dwight Guth, 11/04/2015
Archive powered by MHonArc 2.6.16.