fortran-plugin icon indicating copy to clipboard operation
fortran-plugin copied to clipboard

Does not stop at breakpoint

Open dikleins opened this issue 1 year ago • 9 comments

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

dikleins avatar Apr 04 '23 09:04 dikleins

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

satamas avatar Apr 04 '23 09:04 satamas

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.

dikleins avatar Apr 04 '23 09:04 dikleins

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

LecrisUT avatar May 02 '23 15:05 LecrisUT

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

dikleins avatar May 03 '23 07:05 dikleins

Hmm, can you share a small mwe for that?

LecrisUT avatar May 03 '23 07:05 LecrisUT

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

dikleins avatar May 03 '23 07:05 dikleins

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

program hello
  print *, 'Hello, World!'
end program hello

LecrisUT avatar May 03 '23 07:05 LecrisUT

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

dikleins avatar May 04 '23 09:05 dikleins

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.

LecrisUT avatar May 04 '23 10:05 LecrisUT