From 5740b78e0efffa5ea3f201b397901a16ac1260de Mon Sep 17 00:00:00 2001 From: ravenscroftj Date: Tue, 5 Nov 2024 16:32:28 +0000 Subject: [PATCH] Add brainsteam/content/posts/2024/11/05/debugging-stopped-working-for-golang-in-vscode-on-mac-sequioa1730824348.md --- ...lang-in-vscode-on-mac-sequioa1730824348.md | 33 +++++++++++++++++++ 1 file changed, 33 insertions(+) create mode 100644 brainsteam/content/posts/2024/11/05/debugging-stopped-working-for-golang-in-vscode-on-mac-sequioa1730824348.md diff --git a/brainsteam/content/posts/2024/11/05/debugging-stopped-working-for-golang-in-vscode-on-mac-sequioa1730824348.md b/brainsteam/content/posts/2024/11/05/debugging-stopped-working-for-golang-in-vscode-on-mac-sequioa1730824348.md new file mode 100644 index 0000000..15dd9b2 --- /dev/null +++ b/brainsteam/content/posts/2024/11/05/debugging-stopped-working-for-golang-in-vscode-on-mac-sequioa1730824348.md @@ -0,0 +1,33 @@ +--- +date: '2024-11-05T16:32:28.563577' +post_meta: +- date +tags: +- golang +- softeng +title: Debugging Stopped working for GoLang in VSCode on Mac Sequioa +type: posts +url: /posts/2024/11/05/debugging-stopped-working-for-golang-in-vscode-on-mac-sequioa1730824348 + +--- + + + +
+

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 this thread).

+
+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: +
+  Warning: no debug info found, some functionality will be missing such as stack traces and variable evaluation.
+  
+
+

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.

+

+ Happy coding! +
+

\ No newline at end of file