Debug get/set property

本文介绍了如何在Visual Studio中为特定函数设置断点的方法。通过选择菜单中的“调试-窗口-断点”,然后点击新建断点,输入相应函数名即可完成设置。尽管触发断点时可能会遇到“没有源代码可用”的提示,但仍然可以在调用堆栈中查看到断点的调用位置。

1. Select "Debug -> Windows -> Breakpoints" from VS menu. 

2. Click "New -> Break at Function...". 

3. For the get, type: ClassName.get_Counter()

    For the set, type: ClassName.set_Counter(int)

You'll get a "No Source Available" when the breakpoint is hit, but you'll get the calling location in the call stack.

 

转载于:https://www.cnblogs.com/fdyang/p/3504879.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值