debuggingvisual-studio-codedelphiomnipascal

Set breakpoints into Object Pascal code in Visual Studio Code


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. 

I can't set breakpoints into the Object Pascal code -> when clicking on the area on the left side of the line numbers, nothing happens => what should I do to be able to set the breakpoints into the Object Pascal code (and have the breakpoints used when debugging the file with GDB)?


Solution

  • None of these extensions have debug capabilities. According to this issue reported in OmniPascal, you could try this extension as an experimental way to debug FreePascal.