Detecting if a program was run by Visual Studio, as opposed to run from Windows Explorer

后端 未结 6 1389
萌比男神i
萌比男神i 2020-12-14 15:25

Is there a way to detect if your program was loaded through Visual Studio vs. whether it was started as a standalone executable?

Our software has a bug reporting fea

6条回答
  •  孤街浪徒
    2020-12-14 15:55

    Instead of tracking by process tree, I would add a configuration flag that enables the reporting feature. The flag can always default to "true" unless you are in your DEV environment then you set it to "false".

提交回复
热议问题