after looking around for a solution i found this settings, Run->Run Parameters->Use Launching application, and after ticking the box i got this line -> /usr/bin/konsole -T 'Lazarus Run Output' -e $(LazarusDir)/tools/runwait.sh $(TargetCmdLine).
i saved and tried running the code againt and got this message
Debugger error
Ooops, the debugger entered the error state
save your work now!
Hit stop, and hope for the best, we're pulling the plug.
the debugger could not set a breakpoint on the application's entry point.
this may be caused by missing debug info.
The GDB command:
"info address main"
returned the error:
",msg="No symbol \"main\" in current context.""