Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Visual Studio no longer can be set to break on user-handled D exceptions #258

Open
dlangBugzillaToGithub opened this issue Apr 16, 2023 · 1 comment

Comments

@dlangBugzillaToGithub
Copy link
Collaborator

laszloszeremi reported this on 2023-04-16T20:00:46Z

Transfered from https://issues.dlang.org/show_bug.cgi?id=23843

CC List

  • r.sagitario

Description

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.

@dlangBugzillaToGithub
Copy link
Collaborator Author

r.sagitario commented on 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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant