An example program that will crash is:
y = 0
x = 1/y
I want to create debugging symbols in the binary, so I can debug with gdb. This is a server, so I want it to crash and then automatically restart while running under systemd (I can have it generate a core file).
I'm using the C backend, 6.21 beta 9.
1. -ds by itself doesn't work, the debugging symbols aren't created.
2. -c -d -ds works, it will give me a source file and the debug symbols. However, it also prompts me to run the console debugger on crash (because of -d). How can I control that?
3. I want text printed to STDOUT. Calling OpenConsole() will attempt to trigger the console debugger, but will fail because STDIN can't be read:
Code: Select all
[Debugger Error] Fatal arithmetic error.
[Debugger Error] File: test.pb (Line: 3)
Fatal error. Do you want to open the Debugger console? (Yes, No)
(y,N)
[Debugger Error] Input error from stdin, program is exiting.