delphi5中我设置了断点,怎么执行停不住啊?
我设置了,红色的小圆点,可一执行,立即变为带叉的红点了,怎么半?那里设置的不对吗?

解决方案 »

  1.   

    你最好把断点点在BEGIN后面的语句里。
      

  2.   

    procedure TForm1.Button1Click(Sender: TObject);
    var
        msg:array[1..50] of byte;
        msglen,i:integer;
        crchi,crclo,uindex:byte;begin
        //msg:=GetDataFromText(edit1.text);
        msg[1]:=$12;
        msg[2]:=$34;
        msglen:=length(edit1.text);
        edit2.text:=inttostr(msglen);
        crchi:=$ff;
        crclo:=$ff;
        msglen:=2;  <<<<<<<<<<<<<<<<<<<<<<<<<<断点
        if msglen>0 then
        begin
            uindex:=crchi xor msg[1];
            edit2.text:=inttostr(uindex);
            crchi:=crclo xor aucrchi[uindex];
            edit2.text:=inttohex(aucrclo[uindex],2);
            crclo:=aucrclo[uindex];
        end;
        edit3.text:=inttohex(crclo,2)+' '+inttohex(crchi,2);
    end;
      

  3.   

    我的程序,怎么没有人回答啊。
    是不是DELPHI本身的问题,我用的D5。
      

  4.   

    重启一下Delphi,或升级为更高版本,我用Delphi7就没有问题
      

  5.   

    程序无错,断点设置也没错!!试着升级到delphi6,在6中我试好用!!
      

  6.   

    在PAS程序窗口的左边,BUILD后有的行显示小蓝点,有的不显示,显示小蓝点的都能加断点,设置后就为带绿勾的红点,没有小蓝点的就不行,设置断点也是显示带叉的小红点。
    请问各位,DELPHI5中怎么解释这个啊?
      

  7.   

    我前几天刚刚问过这个问题
    有说是因为设置了优化编译的缘故
    但是我找不到这个优化编译选项在哪,最后只好重装了事。
    楼主可以找找
    不行的话重装一下Delphi吧