I am trying to work on a context menu handler following the app sample from Microsoft, but I am having difficulties because I am not sure how to debug it? How do you normally debug an MSVC++ context menu handler in Visual Studio so that you can step through the logic of it? I have tried looking online but I couldn't find anything that helps. Is there any way to make it request the debugger like there is in the .NET world?
Asked
Active
Viewed 326 times
0
-
1I've never written one, but I'd assume you debug it the same way you debug any other shell extension. Launch Explorer, and then attach the debugger to that process. – Cody Gray - on strike Jun 25 '16 at 13:34
-
1Use `::DebugBreak()` in the context handler to cause a break into the debugger. https://msdn.microsoft.com/en-us/library/windows/desktop/ms679297(v=vs.85).aspx – Richard Critten Jun 25 '16 at 13:42
-
@CodyGray OMG why didn't I think of that?! Yes, that makes sense; thank you, it worked. – Alexandru Jun 25 '16 at 13:49
-
1@RichardCritten Ah, even better. You guys are champs! – Alexandru Jun 25 '16 at 13:49