Comments (7)
@evan-kochuk-niche Do you remember the go version and the delve version you used before and now?
Delve v1.22.1 (Go debugger) was released last week. If you install the previous version, do you see any difference?
go install github.com/go-delve/delve/cmd/[email protected]
The unit tests on my production code takes even longer, on the order of minutes, also on variable assignment.
Do you mean that unit tests in debugging mode?
Is it fast when you use the command line tool for debugging? dlv debug
from vscode-go.
@evan-kochuk-niche Do you remember the go version and the delve version you used before and now?
I have not updated my go version from 1.21 in months. Delve is just set to use @latest
Delve v1.22.1 (Go debugger) was released last week. If you install the previous version, do you see any difference?
Gave it a shot; I do not.
The unit tests on my production code takes even longer, on the order of minutes, also on variable assignment.
Do you mean that unit tests in debugging mode? Is it fast when you use the command line tool for debugging?
dlv debug
Yes, in debugging mode (as per clicking "Debug test" above the function in the screenshot). This is only an issue when a breakpoint is set. If no breakpoint is set, the test finishes in under a second.
from vscode-go.
Can you try dlv debug
commandline, to see if it perform this bad?
Last week release carries a change that just disables installation of a helper binary on windows, and that is unrelated to debugging. I don't recall any memorable change in v0.41.0 release either. Is there any OS update or system library update in your windows that may cause a different behavior or introduce extra checks when programs are debugged?
from vscode-go.
I have been able to confirm that running dlv debug
via commandline has no performance degradation.
Only the golang debugging inside of VS Code is affected (and only then when a breakpoint is hit). And it is only the go debugging -- C# debugging in VS Code is unaffected.
My organization's IT department claims that there were no recent updates pushed out to our machines, but I don't have any details more than that. I'm kinda stumped; never seen anything like this before.
from vscode-go.
I don't know if this will show any more info, but how about collecting logs?
"go.delveConfig": {
"logOutput": "dap,debug",
"showLog": true,
},
This will cause to print out timestamped log messages in the DEBUG CONSOLE panel.
from vscode-go.
I think this can probably be closed.
I experimented with a different IDE entirely -- GoLand -- and am observing the same breakpoint behavior, which makes me think that whatever issues I'm encountering, they are not tied to VS Code, but either Delve or some hardware issue.
from vscode-go.
Thanks for the update. Closing.
from vscode-go.
Related Issues (20)
- Comment intellisense HOT 2
- `main` method could have a "run | debug" like go tests? HOT 1
- gopls: automated issue report (crash) HOT 2
- gopls: automated issue report (crash) [panic: slice out of bounds, v0.15.3/go1.22.2] HOT 3
- gopls: automated issue report (crash) HOT 4
- slow search - when go plugin installed, the search funtionality of vs code become unusable in large projects. HOT 5
- Toggle line comment shortcut does not work HOT 8
- gopls: automated issue report (crash) HOT 1
- VSCode Go Debugger configuration env document is collect? HOT 2
- `Go: Install current package` doesn't display output like before HOT 1
- snippet for `errors.Is` and `errors.As`
- gopls: automated issue report (crash) HOT 1
- x/tools/gopls: Incorrect syntax highlighting for multiline function argument list HOT 3
- gopls: null pointer panic HOT 3
- Don't replace next token on autocomplete HOT 6
- gopls: crash when editing files in live share HOT 3
- gopls: automated issue report (crash) HOT 2
- gopls: crash due to use of workspace folders with non-file uri scheme HOT 1
- gopls: automated issue report (crash) HOT 1
- Code fragment breaks coloring of subsequent code HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from vscode-go.