On 08/02/2012 16:44, Martin wrote:
On 08/02/2012 16:36, Everton Vieira wrote:
How can a debug an app in run time? Is there some how?

If you can not use any debugger, then the only way is lots of writeln (or LCLProc.Debugln) and DumpStack...

If it is just you can't use Lazarus to debug => you can still use gdb itself (Lazarus uses gdb too)

For example, if you code is executed in a http-server, gdb can "attach" to the already running server (Lazarus does not yet support that)

Another way is, if you cant debug your code on the life system, write a test case. A stand-alone app, that uses the units, and calls the code in question with simulated data. Then debug the test case


If the problem is that your app must not loose focus, so breakpoints can not be used:
They can. But you need Lazarus 0.9.31to make some use of it

Open the properties of a breakpoint.
deselect "Break"
add "Take snapshot"

--
_______________________________________________
Lazarus mailing list
Lazarus@lists.lazarus.freepascal.org
http://lists.lazarus.freepascal.org/mailman/listinfo/lazarus

Reply via email to