在调试器下运行时,更改程序流程流程、调试器、程序

2023-09-03 16:14:14 作者:高雅昵称

有没有什么办法的检测调试器在内存中运行?

Is there any way of detecting that a debugger is running in memory?

和这里来的表格加载伪code。

and here comes the on Form Load pseudocode.

if debugger.IsRunning then
Application.exit
end if

编辑:的原标题是发现一个已经在内存中的调试器

The original title was "Detecting an in memory debugger"

推荐答案

请尝试以下

if ( System.Diagnostics.Debugger.IsAttached ) {
  ...
}