www.digitalmars.com         C & C++   DMDScript  

digitalmars.D.learn - Debugging in D?

reply Era Scarecrow <rtcvb32 yahoo.com> writes:
  I'm using dmd v2.048, WinDbg 5.1. 

  I seem to be having trouble, perhaps i can get this cleared up. I'm trying to
build a new structure type using math overloads (for testing). My asserts are
failing; i need to debug them but can't. I've run 'dmd -gc mysource.d' as per
the site, neither gdb nor windbg seems to want to accept it. When i use windbg
supplied all i get is this:

 g _Dmain
Module Load: D:\PROGS\D\STR_BIGNUM.EXE (symbol loading deferred) Thread Create: Process=0, Thread=0 Module Load: C:\WINDOWS\system32\NTDLL.DLL (symbol loading deferred) Module Load: C:\WINDOWS\SYSTEM32\KERNEL32.DLL (symbol loading deferred) Module Load: C:\WINDOWS\SYSTEM32\SHELL32.DLL (symbol loading deferred) Module Load: C:\WINDOWS\SYSTEM32\ADVAPI32.DLL (symbol loading deferred) Module Load: C:\WINDOWS\SYSTEM32\RPCRT4.DLL (symbol loading deferred) Module Load: C:\WINDOWS\SYSTEM32\SECUR32.DLL (symbol loading deferred) Module Load: C:\WINDOWS\SYSTEM32\GDI32.DLL (symbol loading deferred) Module Load: C:\WINDOWS\SYSTEM32\USER32.DLL (symbol loading deferred) Module Load: C:\WINDOWS\SYSTEM32\MSVCRT.DLL (symbol loading deferred) Module Load: C:\WINDOWS\SYSTEM32\SHLWAPI.DLL (symbol loading deferred) Module Load: C:\WINDOWS\system32\NTDLL.DLL (no symbols loaded) Module Load: D:\PROGS\D\STR_BIGNUM.EXE (symbols loaded) Module Load: C:\WINDOWS\WINSXS\X86_MICROSOFT.WINDOWS.COMMON-CONTROLS_6595B64144CCF1DF_6.0.2600.5512_X-WW_35D4CE83\COMCTL32.DLL (symbol loading deferred) Module Load: C:\WINDOWS\WINSXS\X86_MICROSOFT.WINDOWS.COMMON-CONTROLS_6595B64144CCF1DF_6.0.2600.5512_X-WW_35D4CE83\COMCTL32.DLL (symbol loading deferred) STR_BIGNUM!__Dmain+0x25: 0x004024c1 bed0404300 mov esi,004340d0 ^C <process stopping...>



      
Aug 26 2010
parent reply Trass3r <un known.com> writes:
You could try cv2pdb.
Aug 26 2010
parent reply Era Scarecrow <rtcvb32 yahoo.com> writes:
== Quote from Trass3r (un known.com)'s article
 You could try cv2pdb.
I'll look it up. I'm trying ddbg, and although it is working so far, there has to be something better (At least giving it commands and breakpoints)
Aug 26 2010
parent Trass3r <un known.com> writes:
 I'll look it up. I'm trying ddbg, and although it is working so far,  
 there has to be something better (At least giving it commands and  
 breakpoints)
Isn't ddbg dead? Your best shot is to debug on Windows using cv2pdb or the upcoming Mago Debugger plugin with Visual Studio.
Aug 26 2010