Does Go provide REPL?

前端 未结 12 621
[愿得一人]
[愿得一人] 2020-11-30 17:22

The interactive environment is VERY helpful for a programmer. However, it seems Go does not provide it. Is my understanding correct?

12条回答
  •  暖寄归人
    2020-11-30 17:57

    I've had some luck with the VSCode debugger, but it's fairly limited in so far as you cannot invoke function calls from the debug console Debug: Function Calls not supported #2225.

    Basically you set a breakpoint after properly configuring your launch.json file. Then you can drill down on the left in the variables side bar and enter variable expressions an the debug console.

提交回复
热议问题