對 VEXcode Pro V5 上的退出代碼 2 進行故障排除

The VEX Visual Studio Code Extension has replaced VEXcode Pro V5, which is now end-of-life.

VEXcode Blocks and VEXcode Text remain actively developed and supported for all VEX platforms.

使用退出程式碼 2 關閉進程通常是編譯/建置錯誤。


如何解決make錯誤2:

  • 每當您看到 make 程序因退出代碼 2 錯誤而關閉時,您可以閱讀輸出中的日誌以查看程式中的錯誤位置。 輸出可以提供以下資訊:
    • 錯誤位於文件中的哪一行/哪列
    • 錯誤原因是什麼

輸出訊息:

  • 錯誤位於文件中的哪一行/哪列

20-30.png

在以下範例中,輸出提供第 20 行(行)第 30 列有錯誤的資訊。 顯示為“20:30”。

錯誤原因是什麼...

Pasted_image_0__1_.png

輸出還提供了有關顯示錯誤原因的資訊。 表達式“Brain.Screen.print(“Hello”)”後面缺少分號

注意:如果您執行的是舊版的 VEXcode Pro V5 應用程序,則先前版本的 VEXcode Pro V5 允許在檔案名稱或專案名稱中使用特殊字元。

For more information, help, and tips, check out the many resources at VEX Professional Development Plus

Last Updated: