cs01 / gdbgui

Browser-based frontend to gdb (gnu debugger). Add breakpoints, view the stack, visualize data structures, and more in C, C++, Go, Rust, and Fortran. Run gdbgui from the terminal and a new tab will open in your browser.
https://gdbgui.com
GNU General Public License v3.0
9.86k stars 496 forks source link

How to set a breakpoint in gdbgui? #446

Open prusso630 opened 1 year ago

prusso630 commented 1 year ago

I have a fortran file that I compiled it in this fashion:

gfortran -g -fbacktrace -ffpe-trap=zero,overflow,underflow youcode.f90 -o run.exe

So I do have a run.exe file coming out. I started gdbgui --args run.exe. I found a place to load the .f90 file and have the fortran text come up. I looked all over for a way or button to set a breakpoint and run the .f90 file which is a working hello style fortran that prints a line of text to ther terminal. How might I set a breakpoint and have gdbgui run to that line?

ngzhian commented 1 year ago

With the file open, click on the left-hand column that lists the line number. Or you can go to the command panel (bottom left panel by default i think), and use b as per normal.