Bay 12 Games Forum
Other Projects => Curses => Topic started by: SlatersQuest on February 28, 2014, 07:58:11 pm
-
Hi!
I've been trying to debug certain functions in LCS for my upcoming mod, but I've run into a stumbling block: I don't have a working debugger.
I have ddd, but ddd doesn't seem to take or wait for normal input, which means I never know what's going on in the game while ddd is running with it. Does anybody know of a Mac/Unix debugger that I could use to debug new LCS code?
-
I use gdb in Linux. From what I find it appears available on Mac too.
-
Well, huh - I know that ddd uses gdb as its engine. How do you run/what command do you use to make gdb let you see the LCS interface while debugging?
-
To not have gdb's output over LCS's interface you can run gdb in another terminal and attach it to crimesquad's process. The command in gdb is:
attach <crimesquad's pid>
Although I have to sudo gdb to make that work.
-
And I assume that "pid" stands for process identification number? That I can find out easily enough!
Thank you very much! :)
-
Aha, found the solution!
When running ddd, there is a View menu, and one of the options is Execution Window. This will display the LCS console and allow play.
:)