acmx
acmx copied to clipboard
Setting debugging testcases for generic tools (language)
Right now to modify the current testcase to debug we are modifying the task.json
using regular expression which is not really good idea.
From this repository https://github.com/agrawal-d/competitive-programming-helper use a configuration to store the path to the testcase that should be debugged.
Use variable substitution in the task to use that test.
This will probably work: https://code.visualstudio.com/docs/editor/debugging#_redirect-inputoutput-tofrom-the-debug-target. Just add to the args the testcase file name
Yes, that sound like a good idea, however the scope of this issue is to allow making a tasks.json like:
{
"name": "launch program that reads a file from stdin",
"type": "node",
"request": "launch",
"program": "program.js",
"console": "integratedTerminal",
"args": ["<", "${testcase}.in"]
}
Notice the usage of ${testcase}
.
Yes and then we can replace ${testcase}
with the appropriate file name.