-
Notifications
You must be signed in to change notification settings - Fork 798
debug: display format for time.Time #1980
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
Either evaluate from the DEBUG CONSOLE ( Let's use #158 for more than that. Delve's |
This was an issue in delve repo. And I made the suggestion that this could be filed as an issue against vscode-go for us to consider adding a human-readable child as we did for bytes because this is not the first time our users requested help inspecting time vars. |
That's possible only if dlv (and dlv dap) can reliably handle |
We have been historically tracking/triaging dlv-dap issues (as experienced via the vscode UI) here as opposed to the dlv repo even though the changes were to be made to the dap server in the dlv repo. We can revisit that if you think these things are better tracked in the delve repo from now on. #158 is so general (especially the customizable part), I don't see us working on that that any time soon. I think that's why we chose to special case bytes. I don't think we would want to use call, so we are in agreement there. But I thought maybe we could explore reconstructing time from the raw wall clock or whatever is stored in the struct itself. |
That is the approach I am getting at and I think that's generally helpful for all delve users if implemented as extension of dlv's expression handling, not just for DAP users. -- |
My understanding is that the original issue was prompted by a debugging experience in VS Code, hence the redirect. EDIT: Looks like this idea was already shut down in go-delve/delve#999. |
If the only way to implement this is through |
Closing in favor of go-delve/delve#999 which is now open again - we just need to make sure the new presentation is used in variables and evaluate requests. |
The value of time.Time is displayed as follows.
Could it be converted the display format to a readable one?
The text was updated successfully, but these errors were encountered: