如何在调试模式下模拟用户输入?

huangapple go评论77阅读模式
英文:

How do I simulate user input in debug mode?

问题

切换到包含用户输入的行时,在“变量”选项卡中未初始化应该存储它的变量,这可能是合乎逻辑的,但我不明白为什么。如何在调试模式下模拟用户输入?

英文:

When switching to a line with user input, the variable that should store it is not initialized in the "variables" tab, which is probably logical, but I don't understand why.How do I simulate user input in debug mode?
screenshot

答案1

得分: 0

确保调试器工具窗口布局中启用了“Console”选项卡。如果您看不到它,请尝试恢复默认布局:

您还可以将控制台选项卡拖放到工具窗口底部,以便同时可见:

聚焦“Console”选项卡并输入您需要的内容。

英文:

Make sure Console tab is enabled for the debugger tool window layout. If you can't see it, try restoring the default layout:

如何在调试模式下模拟用户输入?

You can also Drag & Drop the console tab to the bottom of the tool window so that it's visible at the same time:

如何在调试模式下模拟用户输入?

Focus the Console tab and type what you need.

huangapple
  • 本文由 发表于 2020年10月16日 06:04:25
  • 转载请务必保留本文链接:https://go.coder-hub.com/64380282.html
匿名

发表评论

匿名网友

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen:

确定