LoginSignup
1
0

More than 3 years have passed since last update.

C++ Builder 10.2 Tokyo > IDE > bug > ブレークしない

Last updated at Posted at 2019-08-19
動作環境
RAD Studio 10.2 Tokyo Update 3 
Windows 10 v1903 

ブレークしない

void __fastcall TForm1::Button1Click(TObject *Sender)
{
    int idx=0;

    for(idx=0; idx < 10; idx++) {
        if (idx < 2 || idx >= 8) {
            continue; // 0,1ではブレークせず、8,9ではブレークする
        }
        int nop=1;
    }
}

コメント記載の通り、0,1ではブレークしない。
8,9ではブレークする。

0,1でのcontinueそのものは有効であり、あとの処理には進まない。

この不具合により、デバッグ時に希望のものが見れない。

continue;一行ではなく、複数行の実装にするとブレークするようだ。

XE4でも再現

Windows 7 + XE4でも再現する。

1
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
1
0