while debugging in vscode how do I enter a response to a READ command
When debugging a routine in vscode which requires input to a READ, there doesn't appear to be any way to enter the input. If the routine is running in a terminal with vscode attached then input can be done there, but can it be done with no attached process?
Product version: IRIS 2023.3
(Usually the best way to get an answer on the Internet is not to ask a question, but post an incorrect statement. So hoping that someone would correct me, I would say that)
This is not possible -- if there is not process attached, then there is no input for READ to read the value from
I'll ask the question a different way: when debugging in vscode, for example by pressing the "Debug" link above a classmethod definition, is there a way to attach to the process it creates. Studio does this automatically.
VS Code also does it automatically. You need to have some breakpoint in the flow for execution to stop there
So given a method like:
ClassMethod DoRead() { w !,"Start" break w !,"Prompting" read x w !,"read "_x }
debugging in vscode, there is a process attached and I should be able to give input to the READ somewhere?
I am trying to do the same thing. Have you figured out how to do it yet? Thanks.
No, I haven't found a way, and I'm surprised that more people haven't asked about it. The only way is to attach vscode to an interactive terminal and enter input there.
Just as you did with Studio
On Studio, the output window accepted input for the running routine. In vscode the output window is output only and the debug console only accepts expressions to evaluate.