On Mo, 2014-03-17 at 17:22 +0000, Mark Morgan Lloyd wrote: > Marc Santhoff wrote: > > Hi, > > > > the FAQ gives instructions for debugging FCL from within lazarus. > > > > http://wiki.lazarus.freepascal.org/Lazarus_Faq#How_can_I_debug_FCL_components_from_packages_with_Lazarus > > > > Does this work for RTL packages as well? > > > > I need to set breakpoints inside serial.pp to see what data SerRead and > > SerWrite really get. > > I'm fairly sure that I used Lazarus to set breakpoints in that unit, but > when I was working on it I'd have been using a copy in my project's > working directory. > > The patch at http://mantis.freepascal.org/view.php?id=18946 contains a > test program that you might find useful, it's quirky but I used it > heavily when testing the unit for Linux/Solaris/Windows.
Many thanks, it will be useful. :) But some questions popping up: In the patch report you write SerFlush() is non-destructive and the new SerFlushInput/Output() are destructive. What does this mean exactly? >From my memory using "flush" on a file descriptor is used to force writing the pending contents through to the disk or file or whatever is connected. Regarding serial ports there mostly is a hardware function for emptying the read oder write queue while throwing away anything in there. Is that the difference in the flushing you're talking about? -- Marc Santhoff <m.santh...@web.de> -- _______________________________________________ Lazarus mailing list Lazarus@lists.lazarus.freepascal.org http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus