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

1 Answer 1

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.

Sign up to request clarification or add additional context in comments.

3 Comments

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.
Wow, it works for quite complex helloWorld! I will try the debugger for our real project now.
Btw, can I build .groupproj via FPC somehow? I asked there: stackoverflow.com/questions/43371464/…

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.