Thread: Re: [Dev-C++] Debugger not working? 4.9.8.7
Open Source C & C++ IDE for Windows
Brought to you by:
claplace
|
From: Javier <jm...@ug...> - 2004-02-16 22:17:59
|
As far as I remember that happened to me too. I recall I have read something about a bug in the gdb version shipped with Dev-Cpp 4.9.8.0. The solution was to replace the original gdb with a new version (5.2.1). You can download and install the full gdb package from www.mingw.org and then copy the gdb.exe to the Dev-Cpp\bin directory or download a zipped version of the gdb.exe (only this file is needed) from http://www-etsi2.ugr.es/depar/ccia/mp1/software.html and uncompress it in Dev-Cpp\bin. You can also find there a small Dev-Cpp instalation manual although it is in spanish only (sorry). Just backup your gdb.exe before replacing it just in case. Good luck. Javier > > ------------------------------------------------------------------------ > > Asunto: > Re: [Dev-C++] Re: Dev-cpp-users digest, Vol 1 #1887 - 11 msgs > De: > "Emiliano" <sky...@fa...> > Fecha: > Tue, 17 Feb 2004 09:19:04 +0100 > Para: > <dev...@li...> > > Para: > <dev...@li...> > > >----- Original Message ----- >From: "Jens Tusche" <Tu...@gm...> >To: <dev...@li...> >Sent: Monday, February 16, 2004 8:59 AM >Subject: [Dev-C++] Re: Dev-cpp-users digest, Vol 1 #1887 - 11 msgs > > > > >>< Subject: [Dev-C++] Debugger not working? 4.9.8.7 >>< >><As in the subject, it won't work at all on my winxp system. The project >>gets >><compiled, the debugging window is there, but no "step" button does what >> >> >it > > >><should, the step-by step execution doesn't start. In the output of gdb >> >> >I've > > >><noticed this: >>< >><frames-invalid >>< >><What is the last version with debugger know to work? >> >>This sounds like the problem that I had. It seems that the debugger must >> >> >be > > >>manually coerced to generate the necessary debug information. Somebody >> >> >told > > >>me to put a "-g3" as a parameter to the compiler options. After I'd done >> >> >this > > >>everything has been working fine. >> >> > >First of all, thank you very much for your answer. I was loosing hope on >this mailing list :) > >I've noticed that option was already present in the compiler prompt. I've >also tried to add it as you suggested, but I still get the same problem. > >this is the complete gdb output: > >(gdb) >prompt >post-prompt >breakpoints-invalid >Breakpoint 2 at 0x40169c: file main.cpp, line 202. >pre-prompt >(gdb) >prompt >post-prompt >Starting: "path/name.exe" > >Snooping with FileMonitor, I've noticed that there's an executable starting >somewhere, but then nothing happens (no steps, no window opening, and so >on...). The only effect is that debug window gets ghosted when I click twice >on "Next Step" or "Debug" itself. Everything else simply does nothing. > >Also, if I open the cpu window, it goes in "wait timeout for debug command" >error. As if the debugger is not there anymore... > >What can I do? :) > >regards >Emiliano Esposito > > > > |
|
From: Emiliano <sky...@fa...> - 2004-02-16 23:15:42
|
----- Original Message ----- From: "Javier" <jm...@ug...> To: <dev...@li...> Sent: Monday, February 16, 2004 11:13 PM Subject: Re: [Dev-C++] Debugger not working? 4.9.8.7 > As far as I remember that happened to me too. I recall I have read > something about a bug in the gdb version shipped with Dev-Cpp 4.9.8.0. > The solution was to replace the original gdb with a new version (5.2.1). > You can download and install the full gdb package from www.mingw.org and > then copy the gdb.exe to the Dev-Cpp\bin directory or download a zipped > version of the gdb.exe (only this file is needed) from > http://www-etsi2.ugr.es/depar/ccia/mp1/software.html and uncompress it > in Dev-Cpp\bin. You can also find there a small Dev-Cpp instalation > manual although it is in spanish only (sorry). > > Just backup your gdb.exe before replacing it just in case. > > Good luck. Thank you so much!!! Now it seems to work, well, still behaves strangely, but at least the debugger starts and breakpoints work (I've noticed that the "next step" button go backwards sometimes [?]). I was sick to use "MessageBox()" to print blocking output messages... a real shame :). A different question... is there a way to open a console window when using the WinAPI? Of course simple "printf"s won't work. Windows has plenty of simple and powerful functions, but too often it lets you think it has been written for kids :))) - and by kids maybe... kind regards, Emiliano |
|
From: Per W. <pw...@ia...> - 2004-02-16 23:23:31
|
If all you want is to emit trace output from your program, you can use the OutputDebugString() function in Windows. This will send the debug text either to a debugger, or to a dedicated debug log program, such as DebugView which may be downloaded from www.sysinternals.com By the way - a lot of commercial programs still have a number of debug output that may be viewed by the DebugView program. /Per W On Tue, 17 Feb 2004, Emiliano wrote: > > ----- Original Message ----- > From: "Javier" <jm...@ug...> > To: <dev...@li...> > Sent: Monday, February 16, 2004 11:13 PM > Subject: Re: [Dev-C++] Debugger not working? 4.9.8.7 > > > > As far as I remember that happened to me too. I recall I have read > > something about a bug in the gdb version shipped with Dev-Cpp 4.9.8.0. > > The solution was to replace the original gdb with a new version (5.2.1). > > You can download and install the full gdb package from www.mingw.org and > > then copy the gdb.exe to the Dev-Cpp\bin directory or download a zipped > > version of the gdb.exe (only this file is needed) from > > http://www-etsi2.ugr.es/depar/ccia/mp1/software.html and uncompress it > > in Dev-Cpp\bin. You can also find there a small Dev-Cpp instalation > > manual although it is in spanish only (sorry). > > > > Just backup your gdb.exe before replacing it just in case. > > > > Good luck. > > Thank you so much!!! > > Now it seems to work, well, still behaves strangely, but at least the > debugger starts and breakpoints work (I've noticed that the "next step" > button go backwards sometimes [?]). > > I was sick to use "MessageBox()" to print blocking output messages... a real > shame :). > > A different question... is there a way to open a console window when using > the WinAPI? Of course simple "printf"s won't work. > > Windows has plenty of simple and powerful functions, but too often it lets > you think it has been written for kids :))) - and by kids maybe... > > kind regards, > Emiliano > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > |
|
From: Emiliano <sky...@fa...> - 2004-02-17 23:03:35
|
Thanks for your info. I'm still a beginner about Windows programming, not on other systems. Regards. Emiliano ----- Original Message ----- From: "Per Westermark" <pw...@ia...> To: "Emiliano" <sky...@fa...> Cc: <dev...@li...> Sent: Tuesday, February 17, 2004 12:19 AM Subject: Re: [Dev-C++] Debugger not working? 4.9.8.7 PLUS console under WinAPI... is it possible? > If all you want is to emit trace output from your program, you can use the > OutputDebugString() function in Windows. > > This will send the debug text either to a debugger, or to a dedicated > debug log program, such as DebugView which may be downloaded from > www.sysinternals.com > > By the way - a lot of commercial programs still have a number of debug > output that may be viewed by the DebugView program. > > /Per W > > On Tue, 17 Feb 2004, Emiliano wrote: > > > > > ----- Original Message ----- > > From: "Javier" <jm...@ug...> > > To: <dev...@li...> > > Sent: Monday, February 16, 2004 11:13 PM > > Subject: Re: [Dev-C++] Debugger not working? 4.9.8.7 > > > > > > > As far as I remember that happened to me too. I recall I have read > > > something about a bug in the gdb version shipped with Dev-Cpp 4.9.8.0. > > > The solution was to replace the original gdb with a new version (5.2.1). > > > You can download and install the full gdb package from www.mingw.org and > > > then copy the gdb.exe to the Dev-Cpp\bin directory or download a zipped > > > version of the gdb.exe (only this file is needed) from > > > http://www-etsi2.ugr.es/depar/ccia/mp1/software.html and uncompress it > > > in Dev-Cpp\bin. You can also find there a small Dev-Cpp instalation > > > manual although it is in spanish only (sorry). > > > > > > Just backup your gdb.exe before replacing it just in case. > > > > > > Good luck. > > > > Thank you so much!!! > > > > Now it seems to work, well, still behaves strangely, but at least the > > debugger starts and breakpoints work (I've noticed that the "next step" > > button go backwards sometimes [?]). > > > > I was sick to use "MessageBox()" to print blocking output messages... a real > > shame :). > > > > A different question... is there a way to open a console window when using > > the WinAPI? Of course simple "printf"s won't work. > > > > Windows has plenty of simple and powerful functions, but too often it lets > > you think it has been written for kids :))) - and by kids maybe... > > > > kind regards, > > Emiliano > > > > > > > > ------------------------------------------------------- > > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > > Build and deploy apps & Web services for Linux with > > a free DVD software kit from IBM. Click Now! > > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > > _______________________________________________ > > Dev-cpp-users mailing list > > Dev...@li... > > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users > > > > > > ------------------------------------------------------- > SF.Net is sponsored by: Speed Start Your Linux Apps Now. > Build and deploy apps & Web services for Linux with > a free DVD software kit from IBM. Click Now! > http://ads.osdn.com/?ad_id=1356&alloc_id=3438&op=click > _______________________________________________ > Dev-cpp-users mailing list > Dev...@li... > TO UNSUBSCRIBE: http://www23.brinkster.com/noicys/devcpp/ub.htm > https://lists.sourceforge.net/lists/listinfo/dev-cpp-users |