D - D Debugger?
- J Anderson (58/58) Mar 31 2004 Just doing the preliminary fiddling with in D to try and get some sort
- J Anderson (4/12) Mar 31 2004 Gramma correction.
- J Anderson (5/8) Mar 31 2004 I should add that I only included the dmd include path. DEBUG_EVENT
- C (14/21) Mar 31 2004 t =
- J Anderson (5/24) Apr 01 2004 I'm having trouble getting this to work. Can you please send your make
- C (14/39) Apr 01 2004 Sure his the dideexport ( use import project ). Also found some old =
- C (15/50) Apr 01 2004 Also http://www.magma.ca/~wjr/ has a cool PE Viewer helps visually break...
- J Anderson (7/7) Apr 01 2004 If your there can you join me in D ICQ? I'm still having trouble with
- C (8/13) Apr 01 2004 What is D ICQ ? u mean irc.dprogramming.com ?
- J Anderson (4/6) Apr 01 2004 Sorry, IRC.
Just doing the preliminary fiddling with in D to try and get some sort of D debugger working but I've hit a few snags. 1) DEBUG_EVENT debugEv; //Causes linking error 2) When debug mode is turned on, either on creation or after creation, the program doesn't appear to activate. It runs fine when it is off. I first thought, right-o, the program is returning straight away and it needs to be continued. However a while loop with a ContinueDebugEvent in does not help at all. What am I doing wrong? //The test2 program is the simple hello world program with an infinite loop after that. import win32.winbase; void main () { STARTUPINFOA startup; startup.cb=startup.sizeof; PROCESS_INFORMATION output; //CreateProccessA seems to do nothing //int result = CreateProcessA (null, "\"C:\\Program Files\\DIDE\\Projects\\test\\test2.exe\"", null, null, false, DEBUG_PROCESS | DEBUG_ONLY_THIS_PROCESS, null, null, &startup, &output); //Causes program to return int result = CreateProcessA (null, "\"C:\\Program Files\\DIDE\\Projects\\test\\test2.exe\"", null, null, false, 0, null, null, &startup, &output); if ( !result ) printf("Error %d occurred", GetLastError()); if ( !DebugActiveProcess(output.dwProcessId) ) //If you get rid of this line the program being debugged will run to completion printf("Error %d occurred\n", GetLastError()); else printf("Debug Handle attached...\n"); //ContinueDebugEvent(output.dwProcessId, output.dwThreadId, DBG_CONTINUE); /*DEBUG_EVENT debugEv; //Causes linking error while ( true ) { WaitForDebugEvent(&debugEv, INFINITE); //Do stuff with debugEv //ie code is in http://msdn.microsoft.com/library/default.asp?url=/library/en-us/debug/base/writing_the_debu ger_s_main_loop.asp ContinueDebugEvent(output.dwProcessId, output.dwThreadId, DBG_CONTINUE); }*/ } BTW: Me and Charles are considering setting up a group to write an independent debugger for D, in D, that will plug into DIDE, appearing integrated. This project will be open to anyone who think they could be of help. Charles may give further details (and/or is tracing some lead in visual studios). -- -Anderson: http://badmama.com.au/~anderson/
Mar 31 2004
J Anderson wrote:Just doing the preliminary fiddling with in D to try and get some sort of D debugger working but I've hit a few snags. 1) DEBUG_EVENT debugEv; //Causes linking error 2) When debug mode is turned on, either on creation or after creation, the program doesn't appear to activate. It runs fine when it is off. I first thought, right-o, the program is returning straight away and it needs to be continued. However a while loop with ContinueDebugEvent in it, does not help at all.Gramma correction. -- -Anderson: http://badmama.com.au/~anderson/
Mar 31 2004
J Anderson wrote:Just doing the preliminary fiddling with in D to try and get some sort of D debugger working but I've hit a few snags. 1) DEBUG_EVENT debugEv; //Causes linking errorI should add that I only included the dmd include path. DEBUG_EVENT appears to be in winbase, so I can't see why it doesn't work. -- -Anderson: http://badmama.com.au/~anderson/
Mar 31 2004
On Wed, 31 Mar 2004 22:02:13 +0800, J Anderson = <REMOVEanderson badmama.com.au> wrote:J Anderson wrote:t =Just doing the preliminary fiddling with in D to try and get some sor=of D debugger working but I've hit a few snags. 1) DEBUG_EVENT debugEv; //Causes linking errorI should add that I only included the dmd include path. DEBUG_EVENT =appears to be in winbase, so I can't see why it doesn't work.Hmm odd, it seems to work when linking to win32.lib, but NOT win32a.lib = , = the ansi versions not working for some reason ( even though DEBUG_EVENT = seems to be in both ansi.winbase and win32a.lib ) . Heres the basic she= ll = ( from the original code ) I have so far ( attached. ). It compiles , n= ot = much else. C -- = D Newsgroup.
Mar 31 2004
C wrote:On Wed, 31 Mar 2004 22:02:13 +0800, J Anderson <REMOVEanderson badmama.com.au> wrote:I'm having trouble getting this to work. Can you please send your make file or DIDE instructions. Thanks. -- -Anderson: http://badmama.com.au/~anderson/J Anderson wrote:Hmm odd, it seems to work when linking to win32.lib, but NOT win32a.lib , the ansi versions not working for some reason ( even though DEBUG_EVENT seems to be in both ansi.winbase and win32a.lib ) . Heres the basic shell ( from the original code ) I have so far ( attached. ). It compiles , not much else. CJust doing the preliminary fiddling with in D to try and get some sort of D debugger working but I've hit a few snags. 1) DEBUG_EVENT debugEv; //Causes linking errorI should add that I only included the dmd include path. DEBUG_EVENT appears to be in winbase, so I can't see why it doesn't work.
Apr 01 2004
Sure his the dideexport ( use import project ). Also found some old = CodeView code thats no longer in the SDK ( attached ) . Also Im looking= = over wine I think they have some debugging stuff. I emailed brad think = hes setting up a project on dsource. C On Thu, 01 Apr 2004 16:18:16 +0800, J Anderson = <REMOVEanderson badmama.com.au> wrote:C wrote:On Wed, 31 Mar 2004 22:02:13 +0800, J Anderson =<REMOVEanderson badmama.com.au> wrote:J Anderson wrote:Just doing the preliminary fiddling with in D to try and get some ==sort of D debugger working but I've hit a few snags. 1) DEBUG_EVENT debugEv; //Causes linking errorI should add that I only included the dmd include path. DEBUG_EVENT=ib =appears to be in winbase, so I can't see why it doesn't work.Hmm odd, it seems to work when linking to win32.lib, but NOT win32a.l=, the ansi versions not working for some reason ( even though =s =DEBUG_EVENT seems to be in both ansi.winbase and win32a.lib ) . Here=the basic shell ( from the original code ) I have so far ( attached. =e =). It compiles , not much else. CI'm having trouble getting this to work. Can you please send your mak=file or DIDE instructions. Thanks.-- = D Newsgroup.
Apr 01 2004
Also http://www.magma.ca/~wjr/ has a cool PE Viewer helps visually break= = up the executable. I think theres a function liek = 'TranslateFunctionAddressToSymbol' that will give us the line & number = given the address in the executable, trying to find it. C On Thu, 01 Apr 2004 15:06:24 -0800, C <dont respond.com> wrote:Sure his the dideexport ( use import project ). Also found some old CodeView code thats no longer in the SDK ( attached ) . Also Im looki=ngover wine I think they have some debugging stuff. I emailed brad thin=khes setting up a project on dsource. C On Thu, 01 Apr 2004 16:18:16 +0800, J Anderson <REMOVEanderson badmama.com.au> wrote:TC wrote:On Wed, 31 Mar 2004 22:02:13 +0800, J Anderson <REMOVEanderson badmama.com.au> wrote:J Anderson wrote:Just doing the preliminary fiddling with in D to try and get some sort of D debugger working but I've hit a few snags. 1) DEBUG_EVENT debugEv; //Causes linking errorI should add that I only included the dmd include path. DEBUG_EVEN=libappears to be in winbase, so I can't see why it doesn't work.Hmm odd, it seems to work when linking to win32.lib, but NOT win32a.=es, the ansi versions not working for some reason ( even though DEBUG_EVENT seems to be in both ansi.winbase and win32a.lib ) . Her=the basic shell ( from the original code ) I have so far ( attached.=ke). It compiles , not much else. CI'm having trouble getting this to work. Can you please send your ma=-- = D Newsgroup.file or DIDE instructions. Thanks.
Apr 01 2004
If your there can you join me in D ICQ? I'm still having trouble with getting the debugger working. I've a feeling my win32.lib may be outdated (I don't even know where I got it from as its not part of dmd, at least anymore). Anyway good job on the debugger so far, its starting to take shape. -- -Anderson: http://badmama.com.au/~anderson/
Apr 01 2004
What is D ICQ ? u mean irc.dprogramming.com ? C On Fri, 02 Apr 2004 05:24:48 +0800, J Anderson = <REMOVEanderson badmama.com.au> wrote:If your there can you join me in D ICQ? I'm still having trouble with==getting the debugger working. I've a feeling my win32.lib may be =outdated (I don't even know where I got it from as its not part of dmd=, =at least anymore). Anyway good job on the debugger so far, its starting to take shape.-- = D Newsgroup.
Apr 01 2004
C wrote:What is D ICQ ? u mean irc.dprogramming.com ? CSorry, IRC. -- -Anderson: http://badmama.com.au/~anderson/
Apr 01 2004