Hi @karmegancjk,
I see you are using an example from the RTD package, which S32DS & RTD version are you using? And which example are you running?
I tested Lpspi_Ip_HalfDuplexTransfer_S32K344 and it works as expected:

Also, could you share more information on what you mean by "While debugging the SPI example code without a breakpoint"? Are you disabling the breakpoint at main when connecting with the debugger?
Best regards,
Julián