Question Edward Clark · Jul 1, 2024

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

Comments

Alexander Koblov · Jul 3, 2024

(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

0
Edward Clark · Aug 1, 2024

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.

0
Alexander Koblov  Aug 2, 2024 to Edward Clark

VS Code also does it automatically. You need to have some breakpoint in the flow for execution to stop there

0
Edward Clark  Aug 5, 2024 to Alexander Koblov

So given a method like:

ClassMethod DoRead()
{
	w !,"Start"breakw !,"Prompting"readxw !,"read "_x
}

debugging in vscode, there is a process attached and I should be able to give input to the READ somewhere?

0
Carl Maklad  Feb 6 to Edward Clark

I am trying to do the same thing. Have you figured out how to do it yet? Thanks.

0
Edward Clark · Feb 11

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.

0
Edward Clark  Feb 13 to Robert Cemper

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.

0