我在调试时,要在我的程序中内存分配的第20个模块时,设置断点,怎么设?? 我在调试时,要在我的程序中内存分配的第20个模块时,设置断点,怎么设?? 解决方案 » 免费领取超大流量手机卡,每月29元包185G流量+100分钟通话, 中国电信官方发货 也可用条件断点:声明并赋值条件表达式变量把光标定位在赋值后一行Ctrl+B调出断点对话框,在BreakAt编辑框后的按钮选择光标位置,然后“Condition”命令开始可用,单击命令,设置条件,如( true==dbg_bJustCallNew20Times ){ pitemTemp = new CDataItem(); if (NULL==pitemTemp || NULL==m_listBuffer.AddTail(pitemTemp)) { if (pitemTemp) delete pitemTemp; return false; } #ifdef _DEBUG bool dbg_bJustCallNew20Times = (20 == m_listBuffer.GetCount()); ASSERT (dbg_bJustCallNew20Times); //Or use this to stop the routing. bool dbg_bStopForCheckContext = true; // <= place focus here #endif ... if (...){ __asm { int 3; {} insert code like this:if (...){ __asm { int 3; {} C++里面怎么取整 帮忙看一下这个if语句咋回事!! 送分题 VC多文档程序运行时,如何自动新建一个最大化文档 如何设置组合框的默认值???多谢 关于Jpeg文件头的问题 VC中求一个double数的平方用什么函数? 关于图形处理的问题 关于VC+COM的前途 编译时图片不更新 如何以class wizard自动产生的view类为基类派生新类,并来替换原来的基类 ,请各位指教? C程序如何应用到我的VC程序里 windows 服务程序写远程磁盘失败,请指教
声明并赋值条件表达式变量
把光标定位在赋值后一行
Ctrl+B调出断点对话框,在BreakAt编辑框后的按钮选择光标位置,然后“Condition”命令开始可用,单击命令,设置条件,如( true==dbg_bJustCallNew20Times ){
pitemTemp = new CDataItem();
if (NULL==pitemTemp || NULL==m_listBuffer.AddTail(pitemTemp))
{
if (pitemTemp)
delete pitemTemp;
return false;
} #ifdef _DEBUG
bool dbg_bJustCallNew20Times = (20 == m_listBuffer.GetCount());
ASSERT (dbg_bJustCallNew20Times); //Or use this to stop the routing. bool dbg_bStopForCheckContext = true; // <= place focus here
#endif ...
{
__asm
{
int 3;
{
}
if (...)
{
__asm
{
int 3;
{
}