[fpc-devel] no break and stepping if ctheads is used (Lazarus)

Michael Schnell mschnell at lumino.de
Thu Mar 4 15:09:48 CET 2010

On 03/04/2010 02:29 PM, Graeme Geldenhuys wrote:
> I'm pretty sure it is a Lazarus IDE issue - console apps with Lazarus IDE
> is problematic. Alternatively try MSEide, it has a built-in terminal type
> window to display output, so gets around the problem of debugging console
> applications.

I now copied the project that works on that behalf then I replaces the
content of the lpr file by that of the test-program:

program test1;

{$mode objfpc}{$H+}

  {$IFDEF UNIX}{$IFDEF UseCThreads}
  { you can add units after this };

{$IFDEF WINDOWS}{$R test1.rc}{$ENDIF}


  writeln('Test 1');
  writeln('Test 2');

And after doing this (-dUseCThreadsw was set) the debugger stopped
working correctly.  :(

> I think the Lazarus wiki has a tutorial on this.
I'll take a look.


More information about the fpc-devel mailing list