Invoke debugger in a running program

Even if fglrun has not been started with the -d option, it is possible to switch the running program to debug mode: On UNIX™ platforms, you must send a SIGTRAP signal to the process. On Windows™, you must use the CTRL-BREAK key in the console window which has started the program.

Example (UNIX):
shell 1> fglrun func
From another session, send the SIGTRAP signal to this process.
shell 2> kill -TRAP pid_of_fglrun
Then the instance running the program will receive this signal and enter in debugging mode. The (fgldb) prompt is displayed and waits for instructions.
shell 1> fglrun func
 func1() at func.4gl:15
 15          for g_cpt=1 to 1000000
(fgldb)
In production sites, you can avoid the runtime system to trap the debugger signal by setting the following FGLPROFILE entry:
fglrun.ignoreDebuggerEvent = true