Overview
Examples
Screenshots
Comparisons
Applications
Download
Documentation
Tutorials
Bazaar
Status & Roadmap
FAQ
Authors & License
Forums
Funding Ultimate++
Search on this site
Search in forums












SourceForge.net Logo
Home » U++ TheIDE » U++ TheIDE: Compiling, Linking, Debugging of your packages » Tip/feature request: Pause running program
Tip/feature request: Pause running program [message #37017] Thu, 09 August 2012 07:31 Go to next message
steffen is currently offline  steffen
Messages: 38
Registered: May 2007
Location: Denmark
Member

Hi,
This tip works when debugging with TheIde using GDB on Ubuntu.

When I'm debugging Upp programs, I often find myself wanting to add a new breakpoint to see some state somewhere in my code.
Until now I have always stopped program, set a breakpoint and restart program. I always missed the possibility to add breakpoints on the fly during execution, I can add them with F9, but GDB wont recognize it until it has stopped execution.
Also sometimes I miss a pause button to see whatever loop/deadlock causes my program to hang.

Solution:
From a terminal simply run:
kill -INT <process id>

Where the process id is the program being debugged.

Could this be implemented in the IDE as a pause button alongside the other debugging controls?
Or run automaticly if one inserts a breakpoint into a running program, like: <Pause><Add breakpoint><Continue>?
Re: Tip/feature request: Pause running program [message #37068 is a reply to message #37017] Tue, 14 August 2012 23:42 Go to previous message
mdelfede is currently offline  mdelfede
Messages: 1307
Registered: September 2007
Ultimate Contributor
Hi... I implemented it some time ago, but I had to remove again because of instability problems.
In detail, it crashed my whole X session, when running gdb in all-stop mode; running in non-stop mode did work but was not stable sometimes.

I'll try again in future, I still don't know if problems are because of GDB or due to upp process spawning.

Ciao

Max
Previous Topic: Compiling simple console app outside TheIDE
Next Topic: How to create a project which includes a static .a or dynamic library .dll
Goto Forum:
  


Current Time: Sat Apr 20 14:48:56 CEST 2024

Total time taken to generate the page: 0.03114 seconds