Forum > Debugger
Debugging console project
Anonymous:
I need to debug a simple pascal (not delphi) project.
I've configured the debugging option on my linux machine, but i don't know how add breakpoints, how add watches and how i can see output (function write) and how i can do input (function read).
It's urgent, please.
Marc:
Breakpoints:
1) Configure a dbugger in debugger options
2) goto the line you want a breakpoint on, press F5 or klick the left margin of the editor.
There is no console output window yet (it isn't fully implemented in the gdb-MI interface yet)
Getting passing imput is not possible. Before this will happen, the debugger interface has to become more stable. The reason for this is that there is no separate stream to pass usr input to. Both your app as gdb receive the chars you type. So it might be a gdb command, or just user input.
Anonymous:
acutally, even I have set gdb & breakpoint, but why program will run not debug? Do i need more configuration, I remember I can do this on windows without any configuration. THANKS.
Marc:
enable debug info and don't use strip/upx/etc
Anonymous:
//Getting passing imput is not possible. Before this will happen, the debugger
//interface has to become more stable. The reason for this is that there is no
//separate stream to pass usr input to. Both your app as gdb receive the chars
//you type. So it might be a gdb command, or just user input.
Hi Marc I am also trying to debug a simple console application in Lazarus and Linux. I can do that successfully with everything but readln, readkey and other commands that read input from console.
Did you say that It can't be done right now in Linux?
I tried debugging with readln in Windows and it worked.
If this is the case please tell me because I am searching everywhere to find the proper configurations!
Thanks in advance!
Navigation
[0] Message Index
[#] Next page