D issues are now tracked on GitHub. This Bugzilla instance remains as a read-only archive.
Issue 11024 - cannot inspect global variables in debugger
Summary: cannot inspect global variables in debugger
Status: RESOLVED FIXED
Alias: None
Product: D
Classification: Unclassified
Component: visuald (show other issues)
Version: D2
Hardware: All All
: P2 normal
Assignee: No Owner
URL:
Keywords: DebugInfo
Depends on:
Blocks:
 
Reported: 2013-09-13 13:14 UTC by Rainer Schuetze
Modified: 2020-03-07 16:34 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this issue.
Description Rainer Schuetze 2013-09-13 13:14:52 UTC
original report: http://www.dsource.org/projects/visuald/ticket/49

reported 05/07/11 05:33:10 by Extrawurst for version 0.3.23
bug in Debugger

Shouldn't i be able to inspect the value of global variables by hovering it with the mouse ? Or at least when i drag it into the watch window ?
Instead i have to write a "modulename@" in front of it ?

Comment 1: 05/07/11 08:41:17  by sagitario

That would be nice, but I doubt it is possible with the VS debugger. It's the same as global variables inside namespaces in C++: you have write "namespace::globalVar".
With the mago debugger, it should be possible, but does not work yet. The debug info generated by the latest dmd beta (2.053) allows to use "modulename.globVar" instead of the mangled name, though.

Comment 2: 10/25/11 15:21:17  by sagitario

This should work now with the mago debugger in 0.3.28, but with a few restrictions: only in the module of the declaration and not available in extern(C) functions.
Comment 1 Rainer Schuetze 2020-03-07 16:34:54 UTC
added global cache of unqualified symbols. See https://github.com/dlang/visuald/releases/tag/v0.52.0-beta1