Update brainsteam/content/posts/2024/11/05/debugging-stopped-working-for-golang-in-vscode-on-mac-sequioa1730824348.md
Deploy Website / build (push) Successful in 23s
Details
Deploy Website / build (push) Successful in 23s
Details
This commit is contained in:
parent
d3a3c2019f
commit
5ff464d6b0
|
@ -15,17 +15,14 @@ url: /posts/2024/11/05/debugging-stopped-working-for-golang-in-vscode-on-mac-seq
|
|||
<p>If you've found that debugging go programs on mac has suddenly stopped working, try upgrading your go runtime - it seems that an xcode change may have caused some instability in delve with the upgrade to sequioa. Golang 1.22.3 no longer works properly on my machine but 1.23+ seems to be ok (see <a href="https://github.com/golang/vscode-go/issues/3539#issuecomment-2357699410">this thread</a>).</p>
|
||||
<br />
|
||||
I noticed this problem when running a VSCode debug session and the system did not respect any of my breakpoints. When I stopped to carefully examine the output I saw a warning message:
|
||||
<pre>
|
||||
|
||||
```
|
||||
Warning: no debug info found, some functionality will be missing such as stack traces and variable evaluation.
|
||||
<br />
|
||||
</pre>
|
||||
<p>The solution was simply to run</p>
|
||||
<pre>
|
||||
brew upgrade golang
|
||||
<br />
|
||||
</pre>
|
||||
<p>Or of course if you installed golang from a .pkg from the website you can manually upgrade that way too.</p>
|
||||
<p>
|
||||
```
|
||||
|
||||
The solution was simply to run `brew upgrade golang`. Or of course if you installed golang from a .pkg from the website you can manually upgrade that way too.
|
||||
|
||||
Finally, I restarted VSCode and the IDE prompted me to update the go toolchain utilities including the delve debugger so I accepted this sugggestion.
|
||||
|
||||
|
||||
Happy coding!
|
||||
<br />
|
||||
</p>
|
Loading…
Reference in New Issue