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. 

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)?

Wosi
  • 41,986
  • 17
  • 75
  • 82
Lukas Salich
  • 959
  • 2
  • 12
  • 30

1 Answers1

4

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.

alefragnani
  • 2,478
  • 11
  • 16
  • Thanks, I will try it. Because I know that Lazarus debugs Object Pascal with GDB, I thought that there must be a way, how to do it. If that Native Debug is the only way how to debug native applications compiled with "-g" in compilers, I will use it. – Lukas Salich Apr 12 '17 at 08:14
  • Wow, it works for quite complex helloWorld! I will try the debugger for our real project now. – Lukas Salich Apr 12 '17 at 09:53
  • Btw, can I build .groupproj via FPC somehow? I asked there: http://stackoverflow.com/questions/43371464/building-delphi-project-from-visual-studio-code – Lukas Salich Apr 12 '17 at 13:53