April 23, 2012 [D-runtime] [D-Programming-Language/druntime] 1e4865: Don't trap exceptions if a debugger is detected on... | ||||
---|---|---|---|---|
| ||||
Attachments:
| Branch: refs/heads/master Home: https://github.com/D-Programming-Language/druntime Commit: 1e486554d3f06e2aa5ab93bbd64253e5a2ea56cc https://github.com/D-Programming-Language/druntime/commit/1e486554d3f06e2aa5ab93bbd64253e5a2ea56cc Author: Vladimir Panteleev <vladimir@thecybershadow.net> Date: 2012-02-23 (Thu, 23 Feb 2012) Changed paths: M src/rt/dmain2.d Log Message: ----------- Don't trap exceptions if a debugger is detected on Windows. Having to "step into" the program every time you debug it to set rt_trapExceptions to false is a nuisance (perhaps more so with Windows debuggers than GDB). Fortunately, we can easily detect when our D program is run under a debugger, and disable the default exception handler, so that an uncaught exception will be handled by the debugger. I believe other Windows runtimes (C++/Delphi) do this as well. Commit: 7daa1eb4f875a7e6113e6c6bc405354264d85a75 https://github.com/D-Programming-Language/druntime/commit/7daa1eb4f875a7e6113e6c6bc405354264d85a75 Author: Sean Kelly <sean@invisibleduck.org> Date: 2012-04-23 (Mon, 23 Apr 2012) Changed paths: M src/rt/dmain2.d Log Message: ----------- Merge pull request #160 from CyberShadow/detect-debugger Don't trap exceptions if a debugger is detected on Windows. Compare: https://github.com/D-Programming-Language/druntime/compare/88ca7b2...7daa1eb |
Copyright © 1999-2021 by the D Language Foundation