至於怎樣調試,這個很簡單:運行壹下,成功就OK了不成功,下方會有壹個英文提示:
xxxxxxxxxxxx(x,y)xxxxxxxxxx
xxxxxx是英文(x,y)是坐標,x是第幾行,y是第幾個格
那些英文也不是沒用的,是錯誤代碼,告訴妳為什麽錯,錯誤代碼如下:
錯誤代碼及錯誤信息 錯誤釋義
error 1: Out of memory 內存溢出
error 2: Identifier expected 缺標識符
error 3: Unknown identifier 未定義的標識符
error 4: Duplicate identifier 重復定義的標識符
error 5: Syntax error 語法錯誤
error 6: Error in real constant 實型常量錯誤
error 7: Error in integer constant 整型常量錯誤
error 8: String constant exceeds line 字符串常量超過壹行
error 10: Unexpected end of file 文件非正常結束
error 11: Line too long 行太長
error 12: Type identifier expected 未定義的類型標識符
error 13: Too many open files 打開文件太多
error 14: Invalid file name 無效的文件名
error 15: File not found 文件未找到
error 16: Disk full 磁盤滿
error 17: Invalid compiler directive 無效的編譯命令
error 18: Too many files 文件太多
error 19: Undefined type in pointer def 指針定義中未定義類型
error 20: Variable identifier expected 缺變量標識符
error 21: Error in type 類型錯誤
error 22: Structure too large 結構類型太長
error 23: Set base type out of range 集合基類型越界
error 24: File components may not be files or objectsfile 分量不能是文件或對象
error 25: Invalid string length 無效的字符串長度
error 26: Type mismatch 類型不匹配
error 27:error 27:Invalid subrange base type 無效的子界基類型
error 28:Lower bound greater than upper bound 下界超過上界
error 29:Ordinal type expected 缺有序類型
error 30:Integer constant expected 缺整型常量
error 31:Constant expected 缺常量
error 32:Integer or real constant expected 缺整型或實型常量
error 33:Pointer Type identifier expected 缺指針類型標識符
error 34:Invalid function result type 無效的函數結果類型
error 35:Label identifier expected 缺標號標識符
error 36:BEGIN expected 缺BEGIN
error 37:END expected 缺END
error 38:Integer expression expected 缺整型表達式
error 39:Ordinal expression expected 缺有序類型表達式
error 40:Boolean expression expected 缺布爾表達式
error 41:Operand types do not match 操作數類型不匹配
error 42:Error in expression 表達式錯誤
error 43:Illegal assignment 非法賦值
error 44:Field identifier expected 缺域標識符
error 45:Object file too large 目標文件太大
error 46:Undefined external 未定義的外部過程與函數
error 47:Invalid object file record 無效的OBJ文件格式
error 48:Code segment too large 代碼段太長
error 49:Data segment too large 數據段太長
error 50:DO expected 缺DO
error 51:Invalid PUBLIC definition 無效的PUBLIC定義
error 52:Invalid EXTRN definition 無效的EXTRN定義
error 53: Too many EXTRN definitions 太多的EXTRN定義
error 54:OF expected 缺OF
error 55:INTERFACE expected 缺INTERFACE
error 56:Invalid relocatable reference 無效的可重定位引用
error 57:THEN expected 缺THEN
error 58:TO or DOWNTO expected 缺TO或DOWNTO
error 59:Undefined forward 提前引用未經定義的說明
error 61:Invalid typecast 無效的類型轉換
error 62:Division by zero 被零除
error 63:Invalid file type 無效的文件類型
error 64:Cannot read or write variables of this type 不能讀寫此類型變量
error 65:Pointer variable expected 缺指針類型變量
error 66:String variable expected 缺字符串變量
error 67:String expression expected 缺字符串表達式
error 68:Circular unit reference 單元UNIT部件循環引用
error 69:Unit name mismatch 單元名不匹配
error 70:Unit version mismatch 單元版本不匹配
error 71:Internal stack overflow 內部堆棧溢出
error 72:Unit file format error 單元文件格式錯誤
error 73:IMPLEMENTATION expected 缺IMPLEMENTATION
error 74:Constant and case types do not match 常量和CASE類型不匹配
error 75:Record or object variable expected 缺記錄或對象變量
error 76:Constant out of range 常量越界
error 77:File variable expected 缺文件變量
error 78:Pointer expression expected 缺指針表達式
error 79:Integer or real expression expected 缺整型或實型表達式
error 80:Label not within current block 標號不在當前塊內
error 81:Label already defined 標號已定義
error 82:Undefined label in preceding statement part 在前面未定義標號
error 83:Invalid @ argument 無效的@參數
error 84:UNIT expected 缺UNIT
error 85: ";" expected 缺“;”
error 86: ":" expected 缺“:”
error 87: "," expected 缺“,”
error 88: "(" expected 缺“(”
error 89: ")" expected 缺“)”
error 90: "=" expected 缺“=”
error 91: ":=" expected 缺“:=”
error 92: "[" or "(." Expected 缺“[”或“(.”
error 93: "]" or ".)" expected 缺“]”或“.)”
error 94: "." expected 缺“.”
error 95: ".." expected 缺“..”
error 96:Too many variables 變量太多
error 97:Invalid FOR control variable 無效的FOR循環控制變量
error 98:Integer variable expected 缺整型變量
error 99:Files and procedure types are not allowed here 該處不允許文件和過程類型
error 100:String length mismatch 字符串長度不匹配
error 101:Invalid ordering of fields 無效域順序
error 102:String constant expected 缺字符串常量
error 103:Integer or real variable expected 缺整型或實型變量
error 104:Ordinal variable expected 缺有序類型變量
error 105:INLINE error INLINE錯誤
error 106:Character expression expected 缺字符表達式
error 107:Too many relocation items 重定位項太多
error 108:Overflow in arithmetic operation 算術運算溢出
error 112:CASE constant out of range CASE常量越界
error 113:Error in statement 表達式錯誤
error 114:Cannot call an interrupt procedure 不能調用中斷過程
error 116:Must be in 8087 mode to compile this 必須在8087模式編譯
error 117:Target address not found 找不到目標地址
error 118:Include files are not allowed here 該處不允許INCLUDE文件
error 119:No inherited methods are accessible here 該處繼承方法不可訪問
error 121:Invalid qualifier 無效的限定符
error 122:Invalid variable reference 無效的變量引用
error 123:Too many symbols 符號太多
error 124:Statement part too large 語句體太長
error 126:Files must be var parameters 文件必須是變量形參
error 127:Too many conditional symbols 條件符號太多
error 128:Misplaced conditional directive 條件指令錯位
error 129:ENDIF directive missing 缺ENDIF指令
error 130:Error in initial conditional defines 初始條件定義錯誤
error 131:Header does not match previous definition 和前面定義的過程或函數不匹配
error 133:Cannot evaluate this expression 不能計算該表達式
error 134:Expression incorrectly terminated 表達式錯誤結束
error 135:Invalid format specifier 無效格式說明符
error 136:Invalid indirect reference 無效的間接引用
error 137:Structured variables are not allowed here 該處不允許結構變量
error 138:Cannot evaluate without System unit 沒有System單元不能計算
error 139:Cannot access this symbol 不能存取符號
error 140:Invalid floating point operation 無效的符號運算
error 141:Cannot compile overlays to memory 不能編譯覆蓋模塊至內存
error 142:Pointer or procedural variable expected 缺指針或過程變量
error 143:Invalid procedure or function reference 無效的過程或函數調用
error 144:Cannot overlay this unit 不能覆蓋該單元
error 146:File access denied 不允許文件訪問
error 147:Object type expected 缺對象類型
error 148:Local object types are not allowed 不允許局部對象類型
error 149:VIRTUAL expected 缺VIRTUAL
error 150: Method identifier expected 缺方法標識符
error 151:Virtual constructors are not allowed 不允許虛構造函數
error 152:Constructor identifier expected 缺構造函數標識符
error 153:Destructor identifier expected 缺析構函數標識符
error 154:Fail only allowed within constructors 只能在構造函數內使用Fail標準過程
error 155:Invalid combination of opcode and operands 操作數與操作符無效組合
error 156:Memory reference expected 缺內存引用指針
error 157:Cannot add or subtract relocatable symbols 不能加減可重定位符號
error 158:Invalid register combination 無效寄存器組合
error 159:286/287 instructions are not enabled 未激活286/287指令
error 160:Invalid symbol reference 無效符號指針
error 161:Code generation error 代碼生成錯誤
error 162:ASM expected 缺ASM
error 166:Procedure or function identifier expected 缺過程或函數標識符
error 167:Cannot export this symbol 不能輸出該符號
error 168:Duplicate export name 外部文件名重復
error 169:Executable file header too large 可執行文件頭太長
error 170:Too many segments 段太多
二、Pascal運行錯誤信息中英文對照表
運行錯誤是指程序運行時出現的錯誤,當發生時,Turbo Pascal顯示如下信息:
RUNTIME ERROR NNNN AT XXXX:YYYY
其中,NNNN是運行錯誤代碼,XXXX是錯誤發生的程序段,YYYY是錯誤地址偏移。
運行錯誤分為四類:1-99為DOS錯誤;100-149為I/O錯誤,發生I/O後,如果使用了編譯開關{$I+},程序將終止執行,否則編譯開關為{$I-},程序繼續執行,並由IOResult函數返回錯誤信息; 150-199為嚴重錯誤,200-255為致命錯誤,致命錯誤將立即終止程序執行。
錯誤代碼及錯誤信息 錯誤釋義
error 1:Invalid function number 無效函數號
error 2:File not found 文件未找到
error 3:Path not found 找不到路徑
error 4:Too many open files 打開文件太多
error 5:File access denied 文件不允許訪問
error 6:Invalid file handle 無效文件句柄
error 12:Invalid file access code 無效文件存取代碼
error 15:Invalid drive number 無效驅動器號
error 16:Cannot remove current directory 不能刪除當前目錄
error 17:Cannot rename across drives 不能跨驅動器改名
error 18:No more files 沒有文件了
error 100:Disk read error 讀磁盤錯
error 101:Disk write error 寫磁盤錯
error 102:File not assigned 文件變量未賦值
error 103:File not open 文件未打開
error 104:File not open for input 文件未打開為寫方式
error 105:File not open for output 文件未打開為讀方式
error 106:Invalid numeric format 無效數值格式
error 150:Disk is write-protected 磁盤寫保護
error 151:Bad drive request struct length 錯誤的驅動器請求結構長度
error 152:Drive not ready 驅動器未準備好
error 154:CRC error in data 數據CRC校驗錯
error 156:Disk seek error 磁盤定位錯
error 157:Unknown media type 未知的介質類型
error 158:Sector Not Found 找不到扇區
error 159:Printer out of paper 打印機缺紙
error 160:Device write fault 設備寫錯誤
error 161:Device read fault 設備讀錯誤
error 162:Hardware failure 硬件故障
error 200:Division by zero 被零除
error 201:Range check error 範圍檢查出錯
error 202:Stack overflow error 棧溢出
error 203:Heap overflow error 堆溢出
error 204:Invalid pointer operation 無效的指針操作
error 205:Floating point overflow 浮點運算上溢
error 206:Floating point underflow 浮點運算下溢
error 207:Invalid floating point operation 無效的浮點運算
error 208:Overlay manager not installed 未安裝覆蓋管理程序
error 209:Overlay file read error 讀覆蓋文件錯誤
error 210:Object not initialized 對象未初始化
error 211:Call to abstract method 調用抽象方法
error 212:Stream registration error 流註冊錯誤
error 213:Collection index out of range 集合下標越界
error 214:Collection overflow error 集合上溢
error 215:Arithmetic overflow error 算術運算上溢
error 216:General Protection fault 壹般保護性錯誤