如何在编译代码中创建调试断点 [英] How do you create a debug breakpoint in compiled code

查看:26
本文介绍了如何在编译代码中创建调试断点的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我尝试创建一个编译器,在该编译器上编译我在 c#.net 中编写的代码.我正在开发调试器,我已经创建了编译器,但是有没有一种方法可以让我在我的代码文件上放置一个断点,当单击运行"按钮时,它将在我放置断点的地方停止 请告诉我是否有人知道我们如何将断点放在程序 c# 文件上的代码

I tried to create a complier on which Complile my code wriiten in c#.net. I am working on debugger i have create complier but is there is a way through which i can put a break point on my code file and when click on the Run button it will be stop where i put break point Please tell me if any body knows the code how we put the break point on the program c# files

推荐答案

断点不是编译后的二进制文件的一部分 - 尽管您可以注入对 Debugger.Break 进入您的代码.

Break points aren't part of the compiled binary - although you could inject calls to Debugger.Break into your code.

您可能想查看 调试器API.

这篇关于如何在编译代码中创建调试断点的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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