在调试器下运行时,更改程序流程 [英] Changing the program flow when running under a debugger

查看:128
本文介绍了在调试器下运行时,更改程序流程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

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 ) {
  ...
}

这篇关于在调试器下运行时,更改程序流程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆