Bug 19985 – No debug line info for simple code blocks

Status
NEW
Severity
major
Priority
P2
Component
dmd
Product
D
Version
D2
Platform
All
OS
All
Creation time
2019-06-19T06:22:40Z
Last change time
2024-12-13T19:04:04Z
Keywords
DebugInfo
Assigned to
No Owner
Creator
Rainer Schuetze
Moved to GitHub: dmd#19587 →

Comments

Comment #0 by r.sagitario — 2019-06-19T06:22:40Z
build with -g: void foo() { } void fun(bool b) { if (b) // when stepping here, debugger jumps to end of function return; // cannot set breakpoint here foo(); } void main() { fun(true); } tested on Windows only, but unlikely to be platform specific.
Comment #1 by turkeyman — 2019-06-20T06:14:22Z
Oh yeah, this is REALLY important stuff!
Comment #2 by robert.schadek — 2024-12-13T19:04:04Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/dmd/issues/19587 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB