debug: warn users when debugging optimized binaries #1471
Labels
FeatureRequest
FrozenDueToAge
NeedsInvestigation
Someone must examine and confirm this is a valid issue and not a duplicate of an existing one.
Milestone
From #1446 by @JadenSimon
Delve allows users to debug optimized binaries, however, when using the Delve client it will warn you that the function is optimized after hitting a breakpoint. This means the user is not confused when local variables are not what they expect (i.e. missing or invalid). The Go extension's DA makes no attempt at alerting the user that they might be debugging an optimized binary, causing a lot of confusion when debugging does not work as expected. This is especially true when remote debugging, as it may be up to an external process to do the compilation.
@polinasok @suzmue
Optimized
bit is a property of Function. Is there any good way to surface this in UI/DAP?The text was updated successfully, but these errors were encountered: