3 ms·
It's a common JavaScript interview question to ask about capturing variables in a closure. What really frustrates me with go is that it doesn't have a mature d
by stephenbez 10y ago
It's a common JavaScript interview question to ask about capturing variables in a closure.
What really frustrates me with go is that it doesn't have a mature debugger so I have to resort to inserting print statements everywhere.
- contravariant 10y agoFirefox has a javascript debugger. If you're using it to design code that doesn't run in a browser I think you're out of luck though.
- zamalek 10y agoSo long as you are not using cgo, the VSCode debugger (which uses Delve as the backend) is fantastic. cgo breaks everything[1]. [1]: https://github.com/golang/go/issues/10776 https://github.com/golang/go/issues/10776
- flavianh 10y agoI give resources to debug JavaScript at the end of the article, did you miss them or are they not good enough?