PDA

View Full Version : debug messages appear in console only



slenkar
23-11-2010, 06:32 AM
I have a program that crashes on startup, the error message appears in the console,
but the console disappears in 1 second so I cant read it.

How do I redirect debug messages to the Lazarus IDE?

User137
23-11-2010, 07:43 AM
Best option maybe is putting a breakpoint at the start of program and continue line by line. Also make sure you have all necessary debug information set in compilation options. Optimizations may reduce debug ability.

slenkar
23-11-2010, 01:57 PM
I got the breakpoints window up and right-clicked it
I chose ADD but the 'source' option was greyed out.

slenkar
23-11-2010, 02:08 PM
hmm now the console stays open,
I have to manually end the GDB process in task manager