is it possible to obtain the current file via a code constant? In C++ you can get the with __FILE__. Could this be done in Pascal/Delphi?

The reason I ask is for debugging purposes. I want the file name + line where the code breaks to speed up the development process.