My example above was in context of running an uncompiled script, using _DebugOut(@ScriptName&": "&@ScriptLineNumber) at line# 94 within common.au3
It produces a log statement like this:
main.au3: 94
The line number is correct, but not the file name. I expect:
common.au3: 94
If I put a pause right after the debug statement, i.e. "While True Sleep (100) WEnd" the AutoIt TrayIconDebug tooltip has correct file name for that paused position in script. I would expect @ScriptName or some other macro could provide same thing:
The Au3Stripper tip for compilation is helpful, thanks. Running main.exe, I get:
main.exe: common:94/19557
... or if running main_stripped.au3:
main_stripped.au3: common:94/19557
But this seems like an inefficient extra steps that must be done with every change to original files.