VS 2917 Can't show variable value in switch-case with debug: Program Database (/Zi) option

  • Thread starter Thread starter abdulbadii
  • Start date Start date
A

abdulbadii

Guest
VS 2917 Can't show some variables value within switch-case with debug: Program Database (/Zi) option



case IDC_NEXT_DOC : {

if (::GetFocus()==_findReplaceDlg.getHFindResults()){
switchEditViewTo(MAIN_VIEW);
break;
}
size_t nbDoc;
nbDoc = viewVisible(MAIN_VIEW)? _mainDocTab.nbItem(): viewVisible(SUB_VIEW)? _subDocTab.nbItem() : 0;

(BP) bool doTaskList = NppParameters::getInstance().getNppGUI()._doTaskList;
_isFolding = true;
if (nbDoc > 1)
{
bool direction = id==IDC_NEXT_DOC? dirDown : dirUp;
if (!doTaskList)
activateNextDoc(direction);
else if (!TaskListDlg::_instanceCount)
{
TaskListDlg tld;
HIMAGELIST hImgLst = _docTabIconList.getHandle();
tld.init(_pPublicInterface->getHinst(), _pPublicInterface->getHSelf(), hImgLst, direction);
tld.doDialog();
}
}



(BP) is added to tell where the breakpoint is.

Cannot yield nbDoc and doTasklist value, please help!

Continue reading...
 
Back
Top