Issues.00252 - lordmundi/wikidoctest GitHub Wiki
00252: add way to easily run edge inside a debugger
Summary: add way to easily run edge inside a debugger
Created: 2010–07–07 11:10
Status: Released
Category: Request
From: frankie
Version: 2.1
Released_In: 2.2
Description:
When debugging new plugins or seg faults in existing plugins, it is often really helpful to run doug inside a debugger such as gdb. Since there are some environment settings and command line options which need to be set before running in the debugger, this can be non-trivial.
To help, it would be nice if there was a simple way to run the current settings in gdb.
Comments
frankie July 07, 2010, at 11:13 AM: This will be available by setting an environment variable called "EDGE_DEBUG" and then running in the regular way. The startup scripts will check for existance of this variable, and if it exists, it will execute inside gdb and set up the run arguments for you so all you have to do is type "run" at the gdb prompt. To turn off the debugging mode, just "unsetenv EDGE_DEBUG".
Associated Commits
| commit | eeb9090adeea9b8b6f48652670223869642b23dd
link5 |
||
| Author: | Frank Graffagnino
|
| Date: | Wed Jul 7 11:14:15 2010 -0500
|
| Message: | [@Issue 00252: Added debug option to start scripts
Now, by setting EDGE_DEBUG before running, the scripts will automatically set up a debug environment for doug in gdb with all the proper arguments. @] |
Affected Files:
debug_shell | 8 ++++++++
run_blank_graphics | 20 +++++++++++++++++±-
run_client | 19 ++++++++++++++++±-
run_standalone | 19 ++++++++++++++++±-
4 files changed, 60 insertions(+), 6 deletions(-)