verifed as implemented in version 2.5.x, thanks a lot Eran!
Hint: option added into debugger settings
Bug: setting breakpoints in DLLs/Shared Objects
- kspes
- CodeLite Enthusiast
- Posts: 41
- Joined: Sat Jan 30, 2010 2:18 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
-
- CodeLite Enthusiast
- Posts: 24
- Joined: Wed Oct 07, 2009 8:41 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Bug: setting breakpoints in DLLs/Shared Objects
still a problem on windows xp sp2, v 2.5.2.4031
Breakpoints are failing to set in a .dll sourcefile, even after I have successfully stepped into that sourcefile (<fullpathto>/utilexc.cpp) and codelite is displaying it. Similar to one of OP's reports, I'm getting the message indicating failure to find the source file that codelite has me positioned in.
Suggestions?
(p.s. other problem, appears that 'break at main' is ignored if one of the 'pending', or perhaps its 'wait til main to set up bps' options is selected, I haven't tried to isolate specific cause of that failure.)
Breakpoints are failing to set in a .dll sourcefile, even after I have successfully stepped into that sourcefile (<fullpathto>/utilexc.cpp) and codelite is displaying it. Similar to one of OP's reports, I'm getting the message indicating failure to find the source file that codelite has me positioned in.
(I'm trying to figure out a problem I'm having with wxExecute/wxProcess and have a locally built version of wxwidgets I'm working with. FWIW, the build is BUILD=debug MONOLITHIC=1 UNICODE=0 shared=1)DEBUG>>00001213-break-insert "\"C:/dev/wxwidgets/wxWidgets-2.8.10/src/msw/utilsexc.cpp:284\""
DEBUG>>00001213^error,msg="No source file named C:/dev/wxwidgets/wxWidgets-2.8.10/src/msw/utilsexc.cpp."
Breakpoint creation unsuccessful
ERROR: failed to place breakpoint: "^error,msg="No source file named C:/dev/wxwidgets/wxWidgets-2.8.10/src/msw/utilsexc.cpp.""
No source file named C:/dev/wxwidgets/wxWidgets-2.8.10/src/msw/utilsexc.cpp.
Suggestions?
(p.s. other problem, appears that 'break at main' is ignored if one of the 'pending', or perhaps its 'wait til main to set up bps' options is selected, I haven't tried to isolate specific cause of that failure.)
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Bug: setting breakpoints in DLLs/Shared Objects
to set breakpoints after application started, codelite inserts a temporary breakpoint into main, and once hit it will apply all breakpoints and then issues a continue.dlh wrote:(p.s. other problem, appears that 'break at main' is ignored if one of the 'pending', or perhaps its 'wait til main to set up bps' options is selected, I haven't tried to isolate specific cause of that failure.)
This is probably the symptom you see
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 24
- Joined: Wed Oct 07, 2009 8:41 am
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Bug: setting breakpoints in DLLs/Shared Objects
Hmm, I found the 'Use file name only for breakpoints (NO full paths)' option and enabled it, and now it appears the breakpoints can be set.
What''s history of that option ????
What''s history of that option ????
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Bug: setting breakpoints in DLLs/Shared Objects
by default codelite sets breakpoints with full paths (since the Makefile produced by codelite are using full paths) - however, if you are using some custom makefile the paths of the files kept in the debugging symbols *may* not be a full path and gdb might fail in finding the file. However, I came to realize that gdb may succeed in finding the file if we set it without any path at all, just the file name - this is why this option exists
Eran
Eran
Make sure you have read the HOW TO POST thread
-
- CodeLite Enthusiast
- Posts: 10
- Joined: Mon Mar 22, 2010 1:59 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Bug: setting breakpoints in DLLs/Shared Objects
Hi,
I'm also experiencing problems with debugging a DLL.
"Apply breakpoints after main function is hit" seems to do the trick. The downside is: I have to set the breakpoint
over and over again. CL seems to "forget" the breakpoint after the debugging session has ended.
Regards,
Fredo
I'm also experiencing problems with debugging a DLL.
"Apply breakpoints after main function is hit" seems to do the trick. The downside is: I have to set the breakpoint
over and over again. CL seems to "forget" the breakpoint after the debugging session has ended.
Regards,
Fredo
- eranif
- CodeLite Plugin
- Posts: 6375
- Joined: Wed Feb 06, 2008 9:29 pm
- Genuine User: Yes
- IDE Question: C++
- Contact:
Re: Bug: setting breakpoints in DLLs/Shared Objects
Strange, this seems to be working fine hereMorkel wrote:Hi,
I'm also experiencing problems with debugging a DLL.
"Apply breakpoints after main function is hit" seems to do the trick. The downside is: I have to set the breakpoint
over and over again. CL seems to "forget" the breakpoint after the debugging session has ended.
Regards,
Fredo
can you provide more details? OS/codelite version/maybe a reproduction workspace
Eran
Make sure you have read the HOW TO POST thread