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

Debugger starts but immediately closes with Fortran code #20

Open
omcecil opened this issue May 20, 2017 · 5 comments
Open

Debugger starts but immediately closes with Fortran code #20

omcecil opened this issue May 20, 2017 · 5 comments

Comments

@omcecil
Copy link

omcecil commented May 20, 2017

When trying to debug some Fortran code, the GUI panels open and immediately close when I try to start a debugging session. I've confirmed that gdb is working properly with the project by running from the command line.

@ProPuke
Copy link
Member

ProPuke commented May 21, 2017

It wounds like your program may just be running and then finishing quickly?

dbg-gdb doesn't pause on start, so you will need to add breakpoints (click in the gutter) if you want to interrupt it (and it's not interrupted by an error of some sort)

@omcecil
Copy link
Author

omcecil commented May 23, 2017

I'm pretty sure I had a break point set (as indicated by a red dot in the gutter). Now however, output-panel fails to activate upon starting atom, see 31i73/atom-output-panel#5

@DamSenViet
Copy link

Same here for me. I'm using MinGW on windows and it closes immediately, even when I set breakpoints in the gutter (multiple breakpoints).

@DawidKopys
Copy link

It is probably caused because you did not compile your source code properly.
In order to debug a file you need to generate a file containing additional data for the debugger, to do that add "-g" option while compiling, for example:
gcc -g mycode.c

Hope this helps anyone sumbling upon this issue.

@HasanBolu
Copy link

@Dewke thank you so much for your comment. I had the same problem @DamSenViet said and solved by adding "-g" option @Dewke said.

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

5 participants