2017-04-11 56 views
2
I installed OmniPascal and Language Pascal extensions into VSCode. 
I have already installed FPC and GDB. 
I already compiled the Object Pascal code and have executable file created with the FPC. 
I can set breakpoints and debug C++ code within VSCode.

我無法設置斷點到Object Pascal的代碼 - >上的行號的左側區域點擊時,沒有任何反應=>我應該怎麼是否可以將斷點設置爲Object Pascal代碼(並在使用GDB調試文件時使用斷點)?設置斷點到Visual Studio代碼在Object Pascal代碼

回答

3

這些擴展都沒有調試功能。根據OmniPascal中報告的this issue,您可以嘗試使用this extension作爲實驗方式來調試FreePascal。

+0

謝謝,我會試試看。因爲我知道Lazarus使用GDB調試Object Pascal,我認爲必須有一種方法,如何去做。如果該本地調試是如何在編譯器中調試使用「-g」編譯的本機應用程序的唯一方法,那麼我將使用它。 –

+0

哇,它適用於相當複雜的helloWorld! 我現在將嘗試用於我們真實項目的調試器。 –

+0

順便說一句,我可以通過FPC建立.groupproj嗎?我問那裏: http://stackoverflow.com/questions/43371464/building-delphi-project-from-visual-studio-code –