Mega Code Archive

 
Categories / Delphi / Ide Indy
 

Debug console programs with Kylix

Title: debug console programs with Kylix? As with Delphi you can use Kylix to write console applications even though many people think that's not important. ;-) When you start a console program in the Delphi Debugger it automatically opens a console window ("DOS command prompt") where you can see the output of e.g. the writeln command. Kylix doesn't do that automatically and if you don't look hard enough you might think it is impossible to debug console applications with it. But if you open the run / parameters dialog you will find an entry called "Use Launcher Application" that is prefilled with xconsole. Just tick this option and there you go. {***} Kylix erlaubt wie auch Delphi das Erstellen von Console-Programmen, auch wenn das von vielen nicht als wichtig angesehen wird. Unter Delphi wird beim Start des Programms im internen Debugger automatisch eine Konsole ("Dos Fenster") geoeffnet, auf die z.B. mit WriteLn ausgegeben werden kann. Bei Kylix passiert das nicht automatsich und wenn man nicht genau hinsieht, koennte man glauben, das man keine Console-Programme im Debugger starten kann. Es gibt jedoch im Menu Run / Parameters (Deutsch: Starten / Parameter ?) einen Eintrag namens "Use Launcher Application", der bereits mit xconsole vorgefuellt ist. Dort einfach ein Haekchen rein, und schon klappts.