条件断点不起作用 [英] Conditional breakpoint not working
问题描述
上面的代码在其底行以黄色设置了条件断点,然后是断点设置"对话框,该对话框应适用于: item.Value ==一天"
The above code has a conditional breakpoint set at its bottom line in yellow followed by the Breakpoint Settings dialog which should work with: item.Value == "aday"
但是,如果出现以下错误,我已经在网上搜索了此信息,但找不到任何失败的原因.我正在使用VS 2015 Pro.
However I get the below error, I have searched online for this and can't find any reason why this should fail. Im using VS 2015 Pro.
编辑-感谢您指出我的明显错误,我通常使用C#编写代码. 但是现在我只用一个'='就可以了吗? 我以为我等于一个作业,加上括号也无济于事?
EDIT- Thank you for pointing out the obvious error on my part, I do normally code in C#. But now using a single '=' I get this??????? I assume that I it equates to an assignment, and adding parenthesis didn't help either?
推荐答案
If item.Value.Equals("aday") Then 'Temp If please remove
Debugger.Break()
end if
实际上可以在严格模式下工作,喘着粗气!!!!
Actually works in strict mode, Gasp!!!!
感谢所有贡献,非常感谢:)
Thanks to all contributions, greatly appreciated :)
这篇关于条件断点不起作用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!