Bug 342245 - Pressing "Continue" should start "Debug", if program is not running
Summary: Pressing "Continue" should start "Debug", if program is not running
Status: RESOLVED FIXED
Alias: None
Product: kdevelop
Classification: Applications
Component: general (show other bugs)
Version: unspecified
Platform: unspecified Linux
: NOR wishlist
Target Milestone: ---
Assignee: kdevelop-bugs-null
URL:
Keywords: junior-jobs
Depends on:
Blocks:
 
Reported: 2014-12-27 11:08 UTC by Ori Avtalion
Modified: 2017-02-26 23:58 UTC (History)
4 users (show)

See Also:
Latest Commit:
Version Fixed In:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ori Avtalion 2014-12-27 11:08:19 UTC
If I have a keybinding set to the "Continue" debug action. It doesn't do anything while the program is not debugging - to start debugging a program, you have to explicitly perform the "Debug" action.

It would be useful if "Continue" automatically started running the program in debug mode, and if it's already running, perform the regular "Continue" action.

This is how Visual Studio does it, with the command called "Debug, Continue" [1]

[1] http://msdn.microsoft.com/en-us/library/y740d9d3.aspx

Reproducible: Always
Comment 1 Nicolai Hähnle 2014-12-27 16:43:55 UTC
Dear Ori,

thank you for your report. I agree that this would be useful to have; I've been pondering the usability of Debug & Continue as well. I have much higher priority things to work on right now, so anybody who reads this should feel free to try their hands at creating a patch :)
Comment 2 deoakshay 2016-04-25 03:04:56 UTC
Is this bug fixed? I am new to open source and would like to contribute to this bug.
Comment 3 Damir Porobic 2017-01-27 06:31:55 UTC
I'm looking into this.
Comment 4 Damir Porobic 2017-01-29 13:56:01 UTC
Proposed patch https://phabricator.kde.org/D4334
Comment 5 Albert Astals Cid 2017-02-26 23:58:37 UTC
Git commit c6e8f386aeb599112f592b981a3601b2949bfd4b by Albert Astals Cid, on behalf of Damir Porobic.
Committed on 26/02/2017 at 23:58.
Pushed by aacid into branch 'master'.

Pressing "Continue" starts "Debug" if program is not running

Changes the kdevdebuggershellui to make the "continue" action visible when the debugger is not running, otherwise the "continue" action would be disabled.
Triggering the "continue" action when while no debug is running will have the same effect as triggering "debug" action. The "continue" action for running debugs remains the same as before.
Differential Revision: https://phabricator.kde.org/D4334

M  +33   -6    shell/debugcontroller.cpp
M  +1    -0    shell/debugcontroller.h
M  +5    -3    shell/debugger/kdevdebuggershellui.rc

https://commits.kde.org/kdevplatform/c6e8f386aeb599112f592b981a3601b2949bfd4b