[SOLVED] Debug output lazarus / 12-Debugger ---------------------------------------------------------------------- aradeonas · 2014-11-01 18:51 Hi, I have a problem with one of my functions and I need to pass some info for debug my app and I am not in console mode.used DebugLn but I dont know how get results. I searched every where but still I cant find a way to simply saw my debug massages for my self. ---------------------------------------------------------------------- Never · 2014-11-01 19:01 add [ {$apptype console} ] in project.lpr and use WriteLn ---------------------------------------------------------------------- aradeonas · 2014-11-01 19:24 Thank you Never but I am making a visual app and in my form there is a function that need send debug info. ---------------------------------------------------------------------- howardpc · 2014-11-01 19:41 Many developers maintain a console window to output debug info to, alongside their GUI app. However, if you want debug info only to appear in one of your GUI forms, you have several options. The most intrusive is to use ShowMessageFmt() (so you have to click away modal message windows). Or you could put a memo on your form and send debug messages to it... or to almost any other visual control that displays text. ---------------------------------------------------------------------- aradeonas · 2014-11-01 19:54 No,no , its seems I am bad in explaining! I know simple ways like these,I want to sen Debug info in my classes and its hard to make notification or dialogs every where. I saw in sources DebugLn but I dont know how can I get the output. ---------------------------------------------------------------------- Never · 2014-11-01 21:04 @aradeonas assuming u r on win try this go to project /project options/compiler options/config and target/ [target sepcific options] uncheck win32 gui app add in uses [ LazLogger ] and you can use debugln ---------------------------------------------------------------------- aradeonas · 2014-11-01 21:08 YES! Thank you It works. For last question : Is there other way like a view to show that and I have to do this? ---------------------------------------------------------------------- Never · 2014-11-01 21:11 sorry i didn't understand the question ---------------------------------------------------------------------- howardpc · 2014-11-01 21:57 Perhaps aradeonas is looking for something like the debugserver application (.../lazarus\tools\debugserver\debugserver.lpi). The readme.txt file in that folder explains its use. It provides a separate window (in a separate process) for debug output - is that what you mean by 'view'? ---------------------------------------------------------------------- Jurassic Pork · 2014-11-01 23:20 hello, there is  a wiki page about debugserver here ---------------------------------------------------------------------- aradeonas · 2014-11-02 04:38 Yes,Now I can saw debug logs. Thank you @Never,@howardpc and @Jurassic Pork.