How to reply to buffer prompt in GoLand debugger?
So I'm running a `Go Build` configuration and everything works fine, up until I have to reply to a console prompt started by this line:
text, err := bufio.NewReader(os.Stdin).ReadString('\n')
How can I provide input to that while debugging in IntelliJ? Just typing in the console doesn't work.
Please sign in to leave a comment.
Hi, if you are using OSX, then, unfortunately, this is currently not supported by the underlying debugger, delve.
There is currently an issue tracking this as well, please follow GO-4264 for updates on this.
The suggested workaround is to launch the process, attach delve manually to it, and then launch a Go Remote debugging configuration.
Hope this helps.