Bug 23843 – Visual Studio no longer can be set to break on user-handled D exceptions

Status
NEW
Severity
enhancement
Priority
P1
Component
visuald
Product
D
Version
D2
Platform
x86
OS
Windows
Creation time
2023-04-16T20:00:46Z
Last change time
2023-10-18T20:22:31Z
Assigned to
No Owner
Creator
László Szerémi
Moved to GitHub: visuald#258 →

Comments

Comment #0 by laszloszeremi — 2023-04-16T20:00:46Z
Previously I was able to set Visual Studio to break on user-handled exceptions, however this no longer the case. I have selected it in the Exception Settings, and only affects unhandled ones in my experience. This made the previous habit of mine of checking unittests in a debugger more difficult, as AssertErrors in unittests already handled.
Comment #1 by r.sagitario — 2023-10-02T15:39:02Z
Maybe you switched to building 64-bit processes in the mean time? If built with dmd, this uses a custom exception handling mechanism unknown to the VS debugger. With 32-bit processes and with LDC, exception are regular Win32/C++ exceptions, and can be set to break on throwing exceptions (enable all exception to see which one triggers). The D-Exceptions only work when using the mago-debug-engine. This can only be selected with visualdproj projects as the debugger to use, but has become obsolete in all other aspects.
Comment #2 by robert.schadek — 2023-10-18T20:22:31Z
THIS ISSUE HAS BEEN MOVED TO GITHUB https://github.com/dlang/visuald/issues/258 DO NOT COMMENT HERE ANYMORE, NOBODY WILL SEE IT, THIS ISSUE HAS BEEN MOVED TO GITHUB