-2

Do you know how to set debug flag in vscode, similar to this
Note: the question is stated "as in C#" and for Golang(Go code)

Chris G.
  • 23,930
  • 48
  • 177
  • 302

2 Answers2

0

There is no "debug flag" for an editor. For most compiled languages, a debug flag will exist if you compiled the program in debug mode.

That link you posted is a different issue. Debugger.IsAttached for c# checks for the presence of the dotnet debugger, also has nothing to do with the editor.

EricChen1248
  • 466
  • 6
  • 19
0

Just use settings, and in my case writing go - you just set:

"go.buildTags": "delve",

And then follow the already mentioned accepted answer

Chris G.
  • 23,930
  • 48
  • 177
  • 302