User forums > Using Code::Blocks

debug codeblocks source code

<< < (2/2)

MortenMacFly:

--- Quote from: mmkider on September 29, 2008, 02:20:45 pm ---The original gdb of my computer is 6.8 version.

--- End quote ---
To my knowledge this version of GDB cannot debug into wxWidgets code. So the downgrade is correct if you want to debug wxWidgets applications.

mmkider:
I build target  code-completion and  have set Host application to "devel\codeblocks.exe"

but I got follow list

"No source file named D:/CodeBlocks_sc/src/plugins/codecompletion/codecompletion.cpp.
Breakpoint 2 ("D:/CodeBlocks_sc/src/plugins/codecompletion/codecompletion.cpp:1666) pending."

How to add codecompletion.dll info into gdb?

thx  :D

Pecan:
The source code location and breakpoint will be resolved _after_ the dll is loaded by CB. The plugin must be in the location CB expects to load it; ie, ...trunk/src/plugins or .../trunk/src/plugins/contribs/plugin_name .

Even though I get the "No source file named" message, the breakpoint still breaks in my plugin.


--- Code: ---Building to ensure sources are up-to-date
Build succeeded
Selecting target:
default
Adding source dir: C:\Usr\Proj\cbBeta\trunk\src\plugins\contrib\dragscroll\
Adding source dir: C:\Usr\Proj\cbBeta\trunk\src\plugins\contrib\dragscroll\
Adding file: ..\..\..\devel\codeblocks.exe
Starting debugger:
done
Registered new type: wxString
Registered new type: STL String
Registered new type: STL Vector
Setting breakpoints
Debugger name and version: GNU gdb 6.3
No source file named C:/Usr/Proj/cbBeta/trunk/src/plugins/contrib/dragscroll/dragscroll.cpp.
Breakpoint 1 ("C:/Usr/Proj/cbBeta/trunk/src/plugins/contrib/dragscroll/dragscroll.cpp:112) pending.
Child process PID: 3608
Pending breakpoint ""C:/Usr/Proj/cbBeta/trunk/src/plugins/contrib/dragscroll/dragscroll.cpp:112" resolved
At c:/Usr/Proj/cbBeta/trunk/src/plugins/contrib/dragscroll/dragscroll.cpp:112


--- End code ---

Navigation

[0] Message Index

[*] Previous page

Go to full version