satamas / fortran-plugin

Fortran language plugin for IntelliJ Idea
Apache License 2.0
80 stars 18 forks source link

Does not stop at breakpoint #94

Open dikleins opened 1 year ago

dikleins commented 1 year ago

Clion does not stop at breakpoint during debug run. (Ubuntu 22.04, CLion 2022.3.3, fortran-plugin 2022.3)

satamas commented 1 year ago

I need some additional details. I tried it in the latest version of CLion and breakpoint worked for me. There were no changes in this part, only support for the new IDE version so I don't think that I will be abe to reproduce it in the previous CLion version

dikleins commented 1 year ago

The code has been built with the '-g' option (make FFLAGS=-g). A breakpoint is set in the main program. Then a debug will be started -> does not stop at the breakpoint.

LecrisUT commented 1 year ago

@dikleins Is it a cmake configuration, autotools or something else? I think most tests are done around cmake and there I can use the breakpoints (with cmake handling the flags). Can you provide a mwe for how it fails on your side?

dikleins commented 1 year ago

This is a Makefile project. The source code is located outside of the build path (VPATH = ../../src).

LecrisUT commented 1 year ago

Hmm, can you share a small mwe for that?

dikleins commented 1 year ago

mwe??? I don't understand what you want me to share.

LecrisUT commented 1 year ago

Sorry, Minimum Working Example. Just confirm what Makefile causes that with a program file like:

program hello
  print *, 'Hello, World!'
end program hello
dikleins commented 1 year ago

Well, I cannot reproduce the problem I have with the other project. I think the Makefile Configuration of that project is not correct.

LecrisUT commented 1 year ago

Don't know if it is helpful, but there are some problems with jumping from one language to another where the breakpoint becomes misaligned. It still breaks at the correct part, it just reports it in the wrong place.