<p>I'm using the d programing language to write a program, and I'm trying to use ddbg to debug it.  When there is an exception, I want to have the program break whenever there is an exception thrown so that I can inspect the stack.</p>

<p>Alternatively, is there another debugger that works with d?  Is there another way to get a stack trace when there is an exception?</p>

[{'answer_id': 47847, 'author': 'VolkerK', 'author_id': 4833, 'author_profile': 'https://Stackoverflow.com/users/4833', 'pm_score': 0, 'selected': False, 'text': '<p>Haven\'t used ddbg yet, but according to the documentation at <a href="http://ddbg.mainia.de/doc.html" rel="nofollow noreferrer">http://ddbg.mainia.de/doc.html</a> there is the</p>\n\n<blockquote>\n  <p>onex &lt;cmd; cmd; ...&gt;               on exception execute list of commands</p>\n</blockquote>\n\n<p>command.</p>\n'}, {'answer_id': 47974, 'author': 'user4891', 'author_id': 4891, 'author_profile': 'https://Stackoverflow.com/users/4891', 'pm_score': 0, 'selected': False, 'text': "<p>I saw the onex command, but I couldn't find a break command.  The two commands below don't seem to work.</p>\n\n<pre><code>onex break\nonex b\n</code></pre>\n"}, {'answer_id': 73611, 'author': 'Baxissimo', 'author_id': 9631, 'author_profile': 'https://Stackoverflow.com/users/9631', 'pm_score': 1, 'selected': False, 'text': "<p>You want to break when there's any exception thrown or just uncaught exceptions?  Because I think the latter is already the default behavior.</p>\n\n<p>You probably know this, but you get the stack trace by typing 'us' (unwind stack) at the prompt.  Just trying to eliminate the obvious.</p>\n\n<p>Anyway, I've never had to use onex.  Never even heard of it.  Another thing you could try is forcing execution to stop by putting in asserts.</p>\n"}, {'answer_id': 91881, 'author': 'larsivi', 'author_id': 14047, 'author_profile': 'https://Stackoverflow.com/users/14047', 'pm_score': 1, 'selected': False, 'text': '<p>You can get stack traces on exceptions by modding the runtime, by the way. The best resource is probably <a href="http://petermodzelewski.blogspot.com/2008/01/development-in-d-with-use-of-backtrace.html" rel="nofollow noreferrer">this backtrace hack page</a></p>\n'}]
['https://Stackoverflow.com/questions/47420', 'https://Stackoverflow.com', 'https://Stackoverflow.com/users/4891/']