C#C
C#3y ago
2 replies
RazorSharpFang

❔ Visual Studio break when Module Loaded

We occasionally get requests for the ability to break when a module loads. WinDbg (the other debugger that Microsoft produces) exposes this as an exception (see the 'sx' command), although it isn't really an exception. Ideally, I think this should be a special kind of breakpoint.

VS doesn't support this as a first class feature, but as long as you know what module you want to break on, this is very easy to do.
-- greggm, 2004
Is the above quoted text writen in 2004 still relevant?
I've been trying to figure out how to get visual studio to break when a module is attempted to be loaded but this is the best answer I have
And it's from 2004
Can this be done in modern visual studio debuggers?
image.png
Was this page helpful?