Is there a quick way to do this, e.g. bytes we can look at, or a string we can search for in the file?
An executable would be nice but I’m looking for more “check for a sequence of bytes” so I could put it in a python script.
This is a relatively minor thing, but sometimes I’ve gotten confused why a test run misfires, and later I realize it’s because I had a release build (to send to testers, and it don’t have my programmer-testing commands) instead of a debug build.
If you have a transcript, you can look for “SD” after the Inform version in the banner. It should look something like…
Story Title Here
Story Headline by Author Name
Release 0 / Serial number 221027 / Inform 7 build 6M62 (I6/v6.41 lib 6/12N) SD
Those last two letters mean that Inform 6 was run with the “strict” and “debugging” flags turned on. A release version won’t have those.
If you’re using this in an automated testing script, you can also insert a harmless debugging command and see if it succeeds or fails. SHOWHEAP, for example, prints a single line of memory usage statistics in a debug file but is not recognized in a release file.
There might be a way to detect it from the binary itself, but I don’t know of one.
will output something like “Release 1 / Serial number 220127 / Inform 7 build 6M62 (I6/v6.36 lib 6/12N) SD” for the Debug case and return a non-0 exit code (and typically no output) in the Release case. Whether or not the echo "quit\ny" bit works as hoped depends on whether or not the game immediately offers a command prompt, of course.
And you could look for ShowHeap as @Draconis suggested by uploading the binary to glulx-strings (despite the name it’s a game polyglot).
True, you could extract the strings from the binary and look for “showheap” and the like. It’s highly unlikely that string would appear in a release file.
Of course, if it’s your own game, you could also put in a section not for release that says “THIS IS A DEBUG BUILD” in big letters when play begins.
That was so long ago! Man, he was a good sport about it. I threw some tough requests at him, and he fixed them quickly. I’ve come to take it for granted.
What I really like is, it can be used locally, and I have a link to it from my local starter page.
Oh, wow, nice find! Yeah, this knocks things out. I’ll try and build things some day. I suspect the “no license” is inaccurate, but we might not want to upload anything to ifarchive until it’s filled in.