Support debugging in external debuggers#7
Conversation
|
Does this allow you to debug testAll in IntelliJ? I thought IntelliJ allowed you to give data on stdin? |
|
You're right in this being slightly wrong, which I just realized. If we have to use a scanner, which I think is the only reasonable option, we need to know how fast the input is written to stdin, wait for that amount of time, check if |
|
Does IntelliJ support adding system properties to the VM when debugging? If so, you can add a system property named I've already started adding |
|
IntelliJ just runs the program. If it's valid Java code then it supports
it.
…On Nov 22, 2017 09:02, "Mathias Rav" ***@***.***> wrote:
Does IntelliJ support adding *system properties* to the VM when
debugging? If so, you can add a system property named JUDGE_DEBUG or some
such, and we can add if (System.getProperty("JUDGE_DEBUG") != null)
testAll(); to the test programs.
I've already started adding if (testcases == 0) testAll(); to the test
programs, but this would still require you to enter a 0 at stdin every time
the program is debugged.
—
You are receiving this because you authored the thread.
Reply to this email directly, view it on GitHub
<#7 (comment)>,
or mute the thread
<https://github.com/notifications/unsubscribe-auth/ADtFxJitJnaRqu2Kw89t7wp09duIS5dCks5s49USgaJpZM4Pwb9O>
.
|
This is a preliminary effort to support debugging in editors that aren't IntelliJ. I don't know if this breaks anything subtlety on the server side of things, but this seems to give the same results as before. With the added benefit of being able to debug in any debugger that supports single-file debugging.
I only edited one file to get feedback on the solution. I can update all tasks if the solution is sufficient.