Although there is a ready-made code for the inverse Laplace transform in Mathematica, I want to manually write the code to define the inverse Laplace transform so I can modify it. This is my attempt:
Remove["Global`*"]
myInverseLaplaceTransform[F_, s_, t_] := (1/(2*Pi*I))* Integrate[F*Exp[s*t], {s, -I*Infinity, I*Infinity}]
myInverseLaplaceTransform[1/s, s, t]
(* Integrate::idiv: Integral of E^(s t)/s does not converge on {(-I) ∞,I ∞}. *)
But the result appeared as follows:

How can I solve this problem?
ilfixedin the linked post i.e.ilfixed[1/s, s, t]will give you the desired result. $\endgroup$ilfixed, then as mentioned above, the functionilfixedcan be found in the linked post, please have a look. If you can't spot it, press Ctrl+F and search in the page. $\endgroup$