|
Archives
D Programming
digitalmars.Ddigitalmars.D.bugs digitalmars.D.dtl digitalmars.D.ide digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger D.gnu D C/C++ Programming
c++c++.announce c++.atl c++.beta c++.chat c++.command-line c++.dos c++.dos.16-bits c++.dos.32-bits c++.idde c++.mfc c++.rtl c++.stl c++.stl.hp c++.stl.port c++.stl.sgi c++.stlsoft c++.windows c++.windows.16-bits c++.windows.32-bits c++.wxwindows digitalmars.empire digitalmars.DMDScript electronics |
digitalmars.D.debugger - [ddbg] Unable to find source files
I ran into a problem the other day where ddbg 0.8.1 was telling me that it couldn't find line xxx of file yyy. But it knew there was a file yyy. It listed it in the modules list. Don't have time to narrow it down to a repro right now, but just wanted to see if anyone else had seen this. The source file in question was called OptMesh.d and I was running the debugger from a \data directory beneath that. It was finding the other files fine, so my thought was maybe there's a bug with mixed case filenames. The files that were working were all lowercase. Maybe just a coincidence, though. --bb May 28 2007
if you're using codeblocks, it happens rather frequently that CB messes up the linenumbers of breakpoints and issues them at some very high linenumber that doesn't exist. if you find that the linenumber ddbg is complaining about doesn't exist, it's probably this problem. else i'll need to reproduce this situation. i haven't seen any problem concerning case of filenames, yet. Bill Baxter wrote:I ran into a problem the other day where ddbg 0.8.1 was telling me that it couldn't find line xxx of file yyy. But it knew there was a file yyy. It listed it in the modules list. Don't have time to narrow it down to a repro right now, but just wanted to see if anyone else had seen this. The source file in question was called OptMesh.d and I was running the debugger from a \data directory beneath that. It was finding the other files fine, so my thought was maybe there's a bug with mixed case filenames. The files that were working were all lowercase. Maybe just a coincidence, though. --bb Jun 04 2007
Jascha Wetzel wrote:if you're using codeblocks, it happens rather frequently that CB messes up the linenumbers of breakpoints and issues them at some very high linenumber that doesn't exist. Jun 04 2007
Bill Baxter wrote:Jascha Wetzel wrote:if you're using codeblocks, it happens rather frequently that CB messes up the linenumbers of breakpoints and issues them at some very high linenumber that doesn't exist. Jun 07 2007
I am getting the same sort of error but my situation is almost entirely different :) I'm using code::blocks. I have: E:\Program Files\CodeBlocks E:\D\DMD E:\D\DMC E:\D\DMD\BIN <-ddbg installed here E:\D\src I followed the directions on the ddbg site to setup the debugger etc. I created a new project in CodeBlocks: E:\D\src\Sudoku\ adding 1 file E:\D\src\Sudoku\sudoku.d which I open and add 1 breakpoint, then I run and get:break "E:/D/src/Sudoku/sudoku.d:5" Jul 19 2007
Stopping CodeBlocks and starting it up again seems to have resolved all the problems, weird! Regan Jul 19 2007
Regan Heath wrote:Stopping CodeBlocks and starting it up again seems to have resolved all the problems, weird! Jul 19 2007
I have also been having problems with this, but now I'm getting another error using ddbg 0.10, descent 0.4, rebuild 0.70 and dmd 1.020 ->Soure file "C:\projects\nsd\src\nsd.d" not found Everything was working perfectly, but suddenly it stopped working. I've been debugging this project before, but after writing more code (no more files or anything) it just couldn't find the files anymore. The strange thing is that it is not happening for all the files in the project, just a couple of them... "Bill Baxter" <dnewsgroup billbaxter.com> wrote in message news:f3fpmd$2iis$1 digitalmars.com...I ran into a problem the other day where ddbg 0.8.1 was telling me that it couldn't find line xxx of file yyy. But it knew there was a file yyy. It listed it in the modules list. Don't have time to narrow it down to a repro right now, but just wanted to see if anyone else had seen this. The source file in question was called OptMesh.d and I was running the debugger from a \data directory beneath that. It was finding the other files fine, so my thought was maybe there's a bug with mixed case filenames. The files that were working were all lowercase. Maybe just a coincidence, though. --bb Aug 14 2007
Simen Haugen wrote:I have also been having problems with this, but now I'm getting another error using ddbg 0.10, descent 0.4, rebuild 0.70 and dmd 1.020 ->Soure file "C:\projects\nsd\src\nsd.d" not found Everything was working perfectly, but suddenly it stopped working. I've been debugging this project before, but after writing more code (no more files or anything) it just couldn't find the files anymore. The strange thing is that it is not happening for all the files in the project, just a couple of them... Aug 14 2007
Yup, command line too. C:\projects\nsdata\bin\Debug>ddbg sps2nsd.exe Ddbg 0.10 beta - D Debugger Copyright (c) 2007 Jascha Wetzel see http://ddbg.mainia.de/doc.html for documentation Loading symbols from sps2nsd.exe ->bp c:\projects\nsdata\src\nsd\nsd.d:1361 Soure file "c:\projects\nsdata\src\nsd\nsd.d" not found ->^C C:\projects\nsdata\bin\Debug>dir c:\projects\nsdata\src\nsd\nsd.d Volume in drive C is Partition_1 Volume Serial Number is 047C-6206 Directory of c:\projects\nsdata\src\nsd 14.08.2007 15:24 37 902 nsd.d 1 File(s) 37 902 bytes 0 Dir(s) 804 540 416 bytes free "Jascha Wetzel" <"[firstname]" mainia.de> wrote in message news:f9s52g$8mo$1 digitalmars.com...Simen Haugen wrote:I have also been having problems with this, but now I'm getting another error using ddbg 0.10, descent 0.4, rebuild 0.70 and dmd 1.020 ->Soure file "C:\projects\nsd\src\nsd.d" not found Everything was working perfectly, but suddenly it stopped working. I've been debugging this project before, but after writing more code (no more files or anything) it just couldn't find the files anymore. The strange thing is that it is not happening for all the files in the project, just a couple of them... Aug 14 2007
Simen Haugen wrote:Yup, command line too. C:\projects\nsdata\bin\Debug>ddbg sps2nsd.exe Ddbg 0.10 beta - D Debugger Copyright (c) 2007 Jascha Wetzel see http://ddbg.mainia.de/doc.html for documentation Loading symbols from sps2nsd.exe ->bp c:\projects\nsdata\src\nsd\nsd.d:1361 Soure file "c:\projects\nsdata\src\nsd\nsd.d" not found ->^C C:\projects\nsdata\bin\Debug>dir c:\projects\nsdata\src\nsd\nsd.d Volume in drive C is Partition_1 Volume Serial Number is 047C-6206 Directory of c:\projects\nsdata\src\nsd 14.08.2007 15:24 37 902 nsd.d 1 File(s) 37 902 bytes 0 Dir(s) 804 540 416 bytes free Aug 14 2007
Jascha Wetzel escribió:Simen Haugen wrote:Yup, command line too. C:\projects\nsdata\bin\Debug>ddbg sps2nsd.exe Ddbg 0.10 beta - D Debugger Copyright (c) 2007 Jascha Wetzel see http://ddbg.mainia.de/doc.html for documentation Loading symbols from sps2nsd.exe ->bp c:\projects\nsdata\src\nsd\nsd.d:1361 Soure file "c:\projects\nsdata\src\nsd\nsd.d" not found ->^C C:\projects\nsdata\bin\Debug>dir c:\projects\nsdata\src\nsd\nsd.d Volume in drive C is Partition_1 Volume Serial Number is 047C-6206 Directory of c:\projects\nsdata\src\nsd 14.08.2007 15:24 37 902 nsd.d 1 File(s) 37 902 bytes 0 Dir(s) 804 540 416 bytes free Aug 14 2007
Ary Manzana wrote:Will ddbg support it in the future? The easiest way from a "front-end to ddbg" point is to just configure the source paths, pass the absoulte filename, and let ddbg figure the relative path. Otherwise all front-ends will end up having this algorithm (duplicated) instead of having it in one place (the debugger). Also from a command-line point this is useful: instead of having the user "calculate" the relative path, she could copy the absoulte path and let ddbg figure it out. Aug 14 2007
Jascha Wetzel escribió:Ary Manzana wrote:Will ddbg support it in the future? The easiest way from a "front-end to ddbg" point is to just configure the source paths, pass the absoulte filename, and let ddbg figure the relative path. Otherwise all front-ends will end up having this algorithm (duplicated) instead of having it in one place (the debugger). Also from a command-line point this is useful: instead of having the user "calculate" the relative path, she could copy the absoulte path and let ddbg figure it out. Aug 14 2007
Can you send me the source code, or at least the hierarchy of the project with stub functions? That way we'll see if it's a problem with ddbg or with Descent. Simen Haugen wrote:I have also been having problems with this, but now I'm getting another error using ddbg 0.10, descent 0.4, rebuild 0.70 and dmd 1.020 ->Soure file "C:\projects\nsd\src\nsd.d" not found Everything was working perfectly, but suddenly it stopped working. I've been debugging this project before, but after writing more code (no more files or anything) it just couldn't find the files anymore. The strange thing is that it is not happening for all the files in the project, just a couple of them... "Bill Baxter" <dnewsgroup billbaxter.com> wrote in message news:f3fpmd$2iis$1 digitalmars.com...I ran into a problem the other day where ddbg 0.8.1 was telling me that it couldn't find line xxx of file yyy. But it knew there was a file yyy. It listed it in the modules list. Don't have time to narrow it down to a repro right now, but just wanted to see if anyone else had seen this. The source file in question was called OptMesh.d and I was running the debugger from a \data directory beneath that. It was finding the other files fine, so my thought was maybe there's a bug with mixed case filenames. The files that were working were all lowercase. Maybe just a coincidence, though. --bb Aug 14 2007
The problem seems to be with ddbg. Btw, Descent is great! I was using Code::Blocks for some time before, but it was crashing sometimes, other times it seemed the parser hung (didn't help with restart). The symbol browser didn't work nice. No rebuild support. Highlighting was outdated. Probably a lot of other things I can't remember right now too. "Ary Manzana" <ary esperanto.org.ar> wrote in message news:f9s6ah$h4q$1 digitalmars.com...Can you send me the source code, or at least the hierarchy of the project with stub functions? That way we'll see if it's a problem with ddbg or with Descent. Simen Haugen wrote:I have also been having problems with this, but now I'm getting another error using ddbg 0.10, descent 0.4, rebuild 0.70 and dmd 1.020 ->Soure file "C:\projects\nsd\src\nsd.d" not found Everything was working perfectly, but suddenly it stopped working. I've been debugging this project before, but after writing more code (no more files or anything) it just couldn't find the files anymore. The strange thing is that it is not happening for all the files in the project, just a couple of them... "Bill Baxter" <dnewsgroup billbaxter.com> wrote in message news:f3fpmd$2iis$1 digitalmars.com...I ran into a problem the other day where ddbg 0.8.1 was telling me that it couldn't find line xxx of file yyy. But it knew there was a file yyy. It listed it in the modules list. Don't have time to narrow it down to a repro right now, but just wanted to see if anyone else had seen this. The source file in question was called OptMesh.d and I was running the debugger from a \data directory beneath that. It was finding the other files fine, so my thought was maybe there's a bug with mixed case filenames. The files that were working were all lowercase. Maybe just a coincidence, though. --bb Aug 14 2007
Simen Haugen wrote:The problem seems to be with ddbg. Aug 14 2007
It worked using the path from lsm. Descent outputs the full pathname when as I printed on the command line. "Jascha Wetzel" <"[firstname]" mainia.de> wrote in message news:f9scg4$1iv3$1 digitalmars.com...Simen Haugen wrote:The problem seems to be with ddbg. Aug 14 2007
Simen Haugen wrote:It worked using the path from lsm. Descent outputs the full pathname when as I printed on the command line. Aug 14 2007
Jascha Wetzel wrote:Simen Haugen wrote:The problem seems to be with ddbg. Aug 14 2007
|