Add debug mode section for Fortran developers#7
Conversation
Added a section on running in debug mode with gdb, including a sample script.
|
Hi @stelais, thanks for extra documentation. I had a few comments/questions though. First, is there a reason you're running GDB via a script instead of interactively? I think for most people debugging something, it's probably easiest to use the debugger interactively. Usually when you're debugging something, you don't know exactly what the problem is, so you'll run new commands as needed to explore the problem and discover new things. Let me know if there's a reason you were thinking a script would be best here. Next, I think a couple of the parts of the script are a bit odd or unnecessary. You would probably want Let me know what you think. |
The reason I thought of running it via a script was to keep all the relevant information in one place, including the input and output filenames, to avoid any misuse. I was also trying to make sure the user understands the executable is in the build directory and that this is the version of the executable they should be using. I agree that it doesn’t have to be a script, we could also run the commands separately.
I can be wrong. But I thought using
I didn't know it was the default. Sounds good to remove this line.
I used the |
|
@stelais, Ah! Sorry, you're right about I do think listing the commands the user should use as a series of steps rather than writing it as a script might make more sense though, because that much more easily adapts to whatever problem the user is actually encountering. For the formatting, I'm not sure PyCharm does much for Shell scripts. I would only be speculating on why this is, but I'm guessing this would be because Shell scripts can sometimes have structure where a formatting engine has not way to determine nesting. |
|
Sounds good. Let me cancel this pull request, and send another one with adjustments. I can list the commands the user should use as a series of steps. This will also eliminate the |
|
Thanks! Sorry for the extra work! |
Added a section on running in debug mode with gdb, including a sample script.