User forums > Using Code::Blocks
debugging libraries
wiseguyin:
Hi Gurus,
I am debugging a library and have set a host application for it. But on starting the debug, it exits immediately
with the message:
Process terminated with status 255 (0 minutes, 0 seconds)
If it helps: the host application is nautilus (since i am coding a nautilus extension)
Any ideas what I need to do ??
ollydbg:
Did you means this?
http://en.wikipedia.org/wiki/Nautilus_%28file_manager%29
Jenna:
--- Quote from: wiseguyin on July 02, 2009, 07:55:42 am ---Hi Gurus,
I am debugging a library and have set a host application for it. But on starting the debug, it exits immediately
with the message:
Process terminated with status 255 (0 minutes, 0 seconds)
If it helps: the host application is nautilus (since i am coding a nautilus extension)
Any ideas what I need to do ??
--- End quote ---
Is your host program a console application (Right click the project's properties goto "Build targets", chose your target and see which application type is chosen) ?
If yes, you need xterm to be installed on your system, or change the "Terminal to launch console programs:" in "Settings -> Environment... -> General settings".
The first works definitely, the second depends on the console-program and needs at least some tweaking of the parameters and might not work at all.
wiseguyin:
@ollydbg: Yeah thats the one...
@jens: Its a library - that I am coding... it gets called by nautilus..... which is the "windows explorer" for gnome ...
I can debug using gdb on my terminal ... but since I am new to Linux programming I don't want to spend time learning GDB too.
Regards,
Sunil
Jenna:
--- Quote from: wiseguyin on July 02, 2009, 05:29:50 pm ---@jens: Its a library - that I am coding... it gets called by nautilus..... which is the "windows explorer" for gnome ...
--- End quote ---
I know nautilus, even if I'm not using gnome.
I thought you have a test application for your library (overread that nautilus itself is the host app).
You can turn on the debuggers debug log ("Settings -> Compiler and debugger... -> Debugger settings -> Display debuggers debug log"), and post it's content, if the debug-session fails.
Navigation
[0] Message Index
[#] Next page
Go to full version