News:

Accounts with zero posts and zero activity during the last months will be deleted periodically to fight SPAM!

Main Menu

debugger issues

Started by killerbot, July 16, 2013, 01:45:13 PM

Previous topic - Next topic

killerbot

linux, rev 9212

Actually there are most probably 2-4 issues.

First : the goal :
Application which is a service, and can be (nicely) stopped by hitting ctrl-c (aka SIGINT).

Alternative 1 :
start the debugger, and try to enter in the "Debugger"-Tab, in the "command" entry "signal SIGINT"
==> not possible, the field doesn't want to take focus, so nothing can be entered

workaround : pause debugger ==> then you can put the focus on the field [PROBLEM : you can not copy/paste into it], and type it in

Alternative 2 :
Settings -> debugger -> Default -> Debugger initialization commands : add "handle SIGINT nostop print pass"
start the debugger and do the ctrl-c ==> debugger seems to do something (console window disappeared), pause/stop button still enabled
press the pause button => seems the ctrl-c gets processed and the clean (destructor path ..) gets being executed



Expected behavior :
Alternative 1 :
- allow copy/paste in the "command" field
- be able to type in it even while running (?)

Alternative 2 :
- would expect to no longer need to press pause

oBFusCATed

Quote from: killerbot on July 16, 2013, 01:45:13 PM
- allow copy/paste in the "command" field
Works here, at least I can ctrl+v something copied from the editor. But this is a problem caused by wxGTK unfortunately.

Quote from: killerbot on July 16, 2013, 01:45:13 PM
- be able to type in it even while running (?)
- would expect to no longer need to press pause
I don't think it is safe. The commands canbe executed only if the debugger has pause the debuggee.
So the plugin should do a pause, which is not as reliable operation as I want it to be.

(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]

crobar

Quote from: oBFusCATed on July 16, 2013, 02:04:01 PM
Quote from: killerbot on July 16, 2013, 01:45:13 PM
- allow copy/paste in the "command" field
Works here, at least I can ctrl+v something copied from the editor. But this is a problem caused by wxGTK unfortunately.


Doesn't (and has never) worked for me on multiple platforms, it's quite a frustrating niggle. I wish the right-click menu offered the paste option as an alternative.

oBFusCATed

#3
Argh... I hate this part of wx and c::b....
(most of the time I ignore long posts)
[strangers don't send me private messages, I'll ignore them; post a topic in the forum, but first read the rules!]