[fpc-devel] Conditional Breakpoints using FPC and GDB

Graeme Geldenhuys graemeg.lists at gmail.com
Fri Aug 13 13:04:58 CEST 2010


Op 2010-08-13 12:43, dmitry boyarintsev het geskryf:
> 
> Duby only allowed to view integer variables. I couldn't get any
> further because the proper expression and value evaluation is
> required. I've started with the pascal expression parser (now
> contributed to passrc).

I thought the expression parser will come in handy. :)

BTW:
I got an Duby update, and had to make one minor change to get dubyline to
compile under 64-bit Linux. See patch below.

Anyway, I simplified your instruction on integrating Duby with Lazarus IDE
as well. Simply add the following to the "Tools > Configure Build Lazarus >
Advanced tab > Other" dialog and edit box. Obviously change the paths to
match your environment.

  -Fu/opt/git/duby_svn/dubylib -Fu/opt/git/duby_svn/dubylaz

Then simply add 'dubydebugger' to uses clause of the DebugManager.pas unit
included with Lazarus IDE.

No need to copy Duby units to the Lazarus source directories - keeps things
a bit more tidy, and development in Duby can continue, and when Lazarus
gets rebuilt, Duby updates are automatically included (again no copying of
units required). :-)

Duby appeared in the debugger list of Lazarus IDE, but I couldn't get it to
debug a program though. I couldn't start my application via the IDE. :-/
Any hints?


-------------[ minor.patch ]-----------------------
diff --git a/dubylib/nixdbgtypes.pas b/dubylib/nixdbgtypes.pas
index 965a003..1dded15 100644
--- a/dubylib/nixdbgtypes.pas
+++ b/dubylib/nixdbgtypes.pas
@@ -2,7 +2,11 @@ unit nixDbgTypes;

 { Linux base debugging type }

-{$mode objfpc}{$H+}
+{$ifdef fpc}
+{$mode delphi}{$H+}
+{$else}
+{$apptype CONSOLE}
+{$endif}

 interface

---------------------------------------------------



Regards,
  - Graeme -

-- 
fpGUI Toolkit - a cross-platform GUI toolkit using Free Pascal
http://opensoft.homeip.net/fpgui/




More information about the fpc-devel mailing list