Branch: refs/heads/master Author: LarsGit223 lars_paulsen@web.de Committer: LarsGit223 lars_paulsen@web.de Date: Mon, 25 Feb 2019 18:50:51 UTC Commit: da30c36dfdd56ea68835c21f4d70794aa8845559 https://github.com/geany/geany-plugins/commit/da30c36dfdd56ea68835c21f4d7079...
Log Message: ----------- scope: show error message if no executable is set
If the user tries to start debugging and no executable is set an error message appears: 'No executable set. Please set an executable under "Debug/Setup Program".'
Modified Paths: -------------- scope/src/debug.c
Modified: scope/src/debug.c 10 lines changed, 7 insertions(+), 3 deletions(-) =================================================================== @@ -487,9 +487,13 @@ void on_debug_run_continue(G_GNUC_UNUSED const MenuItem *menu_item) { if (gdb_state == INACTIVE) { - if (check_load_path(program_executable, TRUE, R_OK | X_OK) && - check_load_path(program_working_dir, FALSE, X_OK) && - check_load_path(program_load_script, TRUE, R_OK)) + if (program_executable == NULL || strlen(program_executable) == 0) + { + show_error(_("No executable set. Please set an executable under "Debug/Setup Program".")); + } + else if (check_load_path(program_executable, TRUE, R_OK | X_OK) && + check_load_path(program_working_dir, FALSE, X_OK) && + check_load_path(program_load_script, TRUE, R_OK)) { load_program(); }
-------------- This E-Mail was brought to you by github_commit_mail.py (Source: https://github.com/geany/infrastructure).