question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Debugging Go does not work

See original GitHub issue
  • code-server version:
$ code-server --version
server/development linux-x64 node-v8.15.0
  • OS Version:
$ cat /etc/os-release
NAME="Ubuntu"
VERSION="16.04.6 LTS (Xenial Xerus)"
...

Description

Cannot debug Go. It stays in a loop for a while, cannot find any log failures.

Steps to Reproduce

  1. Start the server and log in
  2. Write a go file
  3. Add a breakpoint somewhere
  4. Click “debug”
  5. Hit “run”

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Reactions:2
  • Comments:9 (4 by maintainers)

github_iconTop GitHub Comments

5reactions
kylecarbscommented, Mar 15, 2019

Will fix ASAP!

1reaction
isaiahtaylorcommented, Mar 22, 2019

I appreciate the quick work on this. Sorry for my delay. The environment that I am working on has a kernel that is too old to support Ubuntu 18, so I had to fork this repo and back port to Ubuntu 16. I’ll try to merge these changes soon and let you know if it fixed it for me.

Read more comments on GitHub >

github_iconTop Results From Across the Web

debugging - Golang Debugger Not Running - Stack Overflow
The error is because you are trying to debug non main package. Debug the file from main package if you have settings to...
Read more >
Debugging Go with VS Code - LogRocket Blog
Debugging is used to detect and fix faults in programs, preventing them from performing incorrectly after being deployed to production.
Read more >
Debugger Stops Working : GO-6853 - YouTrack
If I open a go project, debugging seems to work fine. However, after multiple debug runs, it stops picking up breakpoints. The only...
Read more >
Breakpoints not working (macos) · Issue #2244 - GitHub
Create a source file main.go; Set a breakpoint anywhere; Try to run/debug, either with default launch settings or something simple like. { "name ......
Read more >
Debugging Go Code with GDB
You can generate uncompressed debug information by using go build -ldflags=-compressdwarf=false . (For convenience you can put the -ldflags option in the ...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found