Using gflags "Show loader snaps" with Visual Studio

Cosmin Mihai 35 Reputation points
2023-09-05T09:20:14.4233333+00:00

I'm trying to set "Show Loader Snaps" system wide in order to see verbose logs when dll's are loaded by Visual Studio, but I don't see any additional logs in the Output Console.

'WindowsProject1.exe' (Win32): Unloaded 'C:\Windows\System32\rpcrt4.dll'
'WindowsProject1.exe' (Win32): Unloaded 'C:\Windows\System32\oleaut32.dll'

This is how I do the setup:

Screenshot 2023-09-05 011543

Is this enough? There is the same option under the "Kernel Flags" but, in that tab, the option cannot be saved.(Although I have admin rights when running gflags).

Is there a way to check that loader snaps are enabled? What could be wrong?

Windows for business | Windows Client for IT Pros | User experience | Other
Developer technologies | Visual Studio | Other
Developer technologies | Visual Studio | Other
A family of Microsoft suites of integrated development tools for building applications for Windows, the web, mobile devices and many other platforms. Miscellaneous topics that do not fit into specific categories.
0 comments No comments
{count} votes

Answer accepted by question author
  1. RLWA32 51,361 Reputation points
    2023-09-05T10:29:21.7766667+00:00

    For the Visual Studio debugger to display loader snaps you must use gflags to set the option for an application, not the system as a whole. So after clicking the Image File tab see -

    gflags

    VS debugger output pane upon running WindowsSnapDemo.exe under the debugger -

    VSoutput

    0 comments No comments

0 additional answers

Sort by: Most helpful

Your answer

Answers can be marked as 'Accepted' by the question author and 'Recommended' by moderators, which helps users know the answer solved the author's problem.