|
Archives
D Programming
DD.gnu digitalmars.D digitalmars.D.bugs digitalmars.D.dtl digitalmars.D.dwt digitalmars.D.announce digitalmars.D.learn digitalmars.D.debugger 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] trap to debugger?
It comes often that during programming, I'd like to add a breakpoint at =
source level. Since I don't use an IDE, having to specify breakpoints in=
file:line format every time I run Ddbg (the line numbers change, so the=
-cmd=3D parameter doesn't help much). It's common practice in other lan=
guages to add a "hard breakpoint", for example in case of a failed asser=
t (which should never fail anyway, as they are checked only in debug bui=
lds, so depending on them isn't right). This is done by simply inserting=
an "int 3" instruction in the code:
asm { int 3; }
However, Ddbg seems to just ignore these at the moment (while, when runn=
ing the executable as it is, a "Win32 Exception" is raised). Would it be=
hard to make Ddbg catch these exceptions and react as if a breakpoint w=
as hit?
P.S. I realise that this post may sound like it's written in an angry mo=
od, but I'm actually very grateful for your work, Jascha :) D projects w=
ould be considerably harder to maintain on Windows without Ddbg!
-- =
Best regards,
Vladimir mailto:thecybershadow gmail.com
Jul 08 2007
Vladimir Panteleev wrote:However, Ddbg seems to just ignore these at the moment Jul 08 2007
On Sun, 08 Jul 2007 21:12:13 +0300, Jascha Wetzel <firstname mainia.de> wrote:i'll take care of the int3-issue for the next relase. Jul 08 2007
Reply to Vladimir, Jul 08 2007
|