Bug 18220 – Allow rt_trapexceptions to be set from the CLI

Status
RESOLVED
Resolution
FIXED
Severity
enhancement
Priority
P1
Component
druntime
Product
D
Version
D2
Platform
x86_64
OS
Linux
Creation time
2018-01-10T17:26:42Z
Last change time
2019-08-30T16:02:04Z
Assigned to
No Owner
Creator
Seb

Comments

Comment #0 by greensunny12 — 2018-01-10T17:26:42Z
http://arsdnet.net/this-week-in-d/2016-aug-07.html > Hopefully, druntime will expose this variable in a more easier way in the future. Currently, on Windows, it is automatically set if a debugger is detected, but on Linux, debugger detection is quite a bit harder and hackier, so it might not happen any time soon. Druntime could (and should!) also potentially offer it as a command line switch, like it does with GC profiling now. > DRUNTIME DEVS: if you read this, make it happen!
Comment #1 by github-bugzilla — 2018-07-17T05:44:41Z
Commits pushed to master at https://github.com/dlang/druntime https://github.com/dlang/druntime/commit/6ca77797f1c5c8bede331cff3a4648288386ce02 Fix Issue 18220 - Allow `rt_trapexceptions` to be set from the CLI https://github.com/dlang/druntime/commit/540a6cbafee9847db973f4590d5d5f4bae7aa3b5 Merge pull request #2035 from wilzbach/trap Fix Issue 18220 - Allow `rt_trapexceptions` to be set from the CLI merged-on-behalf-of: Jacob Carlborg <[email protected]>
Comment #2 by r.sagitario — 2019-08-30T16:02:04Z
*** Issue 15894 has been marked as a duplicate of this issue. ***