Well, I can't tell what your problem is from the general descriptions you have given. But the following link gives instructions on how to configure Windows so that whenever your application is launched it will be automatically run under the Visual Studio debugger.
Can I open a file from my file explorer and have it run my Visual Studio solution?
Trevor Youngman
1
Reputation point
Hello,
There is a bug in my app that only occurs when the app is started from the file explorer (double-clicking a file to open the app and file within the app)
Is there a way to have my Visual Studio solution run when opening from the file explorer?
I tried attaching the file explorer process to my app in debug but that did not seem to work, or I did not do that correctly.
Thanks.