❔ 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?
2 Replies
RazorSharpFang
RazorSharpFang13mo ago
Part of why I ask is that we're repeatedly loading and unloading modules and I'm trying to diagnose why that happens
Accord
Accord13mo ago
Looks like nothing has happened here. I will mark this as stale and this post will be archived until there is new activity.