CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Installation

How should one debug a solver using KDevelop

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools Display Modes
Old   March 8, 2008, 15:56
Default Hello, what would you advice
  #1
kar
Senior Member
 
Kārlis Repsons
Join Date: Mar 2009
Location: Latvia
Posts: 111
Rep Power: 8
kar is on a distinguished road
Hello,
what would you advice for a beginner? I did partially recompiled OpenFOAM with debug (ran into paraview problems). Can build an app using
EXE_INC = \
-I$(LIB_SRC)/finiteVolume/lnInclude -DFULLDEBUG -g -O0

Kārlis
kar is offline   Reply With Quote

Old   March 11, 2008, 09:30
Default Hello again, now I have more
  #2
kar
Senior Member
 
Kārlis Repsons
Join Date: Mar 2009
Location: Latvia
Posts: 111
Rep Power: 8
kar is on a distinguished road
Hello again,
now I have more appointed problem: when I compile program and run it in gdb, I can debug it, but when start that app by KDevelop's "Debug->Start"(which also uses GDB by defaul) it just exits quickly.

Debugging versions are supposed to be much slower, right?

Switch between debug / opt version of build is "-DFULLDEBUG -g -O0" options or I've missed something?

What debugging environment have you found useful?

Some knowledge about debug will be appreciated here!

K.
kar is offline   Reply With Quote

Old   March 11, 2008, 11:13
Default Wrong, WM_COMPILE_OPTION is a
  #3
kar
Senior Member
 
Kārlis Repsons
Join Date: Mar 2009
Location: Latvia
Posts: 111
Rep Power: 8
kar is on a distinguished road
Wrong, WM_COMPILE_OPTION is a switch!
kar is offline   Reply With Quote

Old   July 26, 2008, 16:13
Default Karlis, I have had the same
  #4
New Member
 
Kent S Kapitan
Join Date: Mar 2009
Posts: 3
Rep Power: 8
kent_kapitan is on a distinguished road
Karlis,

I have had the same problem. Have you found a solution ?

Kent Kapitan
kent_kapitan is offline   Reply With Quote

Old   July 27, 2008, 05:37
Default Kent, that was not very impor
  #5
kar
Senior Member
 
Kārlis Repsons
Join Date: Mar 2009
Location: Latvia
Posts: 111
Rep Power: 8
kar is on a distinguished road
Kent,
that was not very important for me, so I used GDB through console sometimes. That can give useful information, but I missed something to integrate with KDevelop...
kar is offline   Reply With Quote

Old   July 28, 2008, 16:36
Default Karlis, Thanks. Fortunat
  #6
New Member
 
Kent S Kapitan
Join Date: Mar 2009
Posts: 3
Rep Power: 8
kent_kapitan is on a distinguished road
Karlis,

Thanks. Fortunately, I managed to figure it out and actually got it to work. I have posted a summary of the solution for others if your interested. Just search the message board for KDevelop. The trick turns out to be leaving the "Debugger Executable" blank in the Project Options Debugger dialog in KDevelop.
kent_kapitan is offline   Reply With Quote

Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Wmake C and KDevelop for a Foam project roncresswell OpenFOAM Installation 21 January 27, 2010 13:00
debug in Fluent Miriam Main CFD Forum 0 September 2, 2008 05:21
About "debug=T" sammi Phoenics 0 June 14, 2008 07:18
Manage openfoam solver project in KDevelop probably the last linker error any suggestion is welcome lakeat OpenFOAM Installation 0 July 7, 2007 10:01
Why can not set breakpoints in debug lee Main CFD Forum 0 October 24, 2006 04:00


All times are GMT -4. The time now is 00:13.