Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Does not stop at breakpoint #94

Open
dikleins opened this issue Apr 4, 2023 · 9 comments
Open

Does not stop at breakpoint #94

dikleins opened this issue Apr 4, 2023 · 9 comments

Comments

@dikleins
Copy link

dikleins commented Apr 4, 2023

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

@satamas
Copy link
Owner

satamas commented Apr 4, 2023

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
Copy link
Author

dikleins commented Apr 4, 2023

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
Copy link
Contributor

LecrisUT commented May 2, 2023

@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
Copy link
Author

dikleins commented May 3, 2023

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

@LecrisUT
Copy link
Contributor

LecrisUT commented May 3, 2023

Hmm, can you share a small mwe for that?

@dikleins
Copy link
Author

dikleins commented May 3, 2023

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

@LecrisUT
Copy link
Contributor

LecrisUT commented May 3, 2023

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

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

@dikleins
Copy link
Author

dikleins commented May 4, 2023

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

@LecrisUT
Copy link
Contributor

LecrisUT commented May 4, 2023

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants