[Issue 23423] Feature Request: version(D_DebugInfo)

d-bugmail at puremagic.com d-bugmail at puremagic.com
Fri Nov 11 13:03:17 UTC 2022


https://issues.dlang.org/show_bug.cgi?id=23423

--- Comment #2 from ponce <aliloko at gmail.com> ---
Dplug software has a mouse hook that is active to allow using the mouse wheel
when dragging outside of the window. Others OSes can do that, but Windows needs
a mouse hook.

When debugging, this is extra slow, but in normal times it is invisible. Hence,
for practicality it's better to disable this.

- D_Optimized is obviously not the same as D_Optimized, it's frequent to want
to debug optimized builds


- I don't see why -g would one of the only flags you can detect. -g is the
closest flag to "I will debug this interactively".

> Also, can't you pass `-g -version=disableFeatureThatIsAnnoyingWhenDebugging`?

No. That doesn't solve the problem, as we use dub, and version identifiers are
set by configurations not build types.

--


More information about the Digitalmars-d-bugs mailing list