1. How to locate ex.err

Hi,

If I run a Euphoria program from a Euphoria-based IDE is there an unambiguous way of knowing the actual path where ex.err gets written in the case of a program (not IDE) crash? The (3rd party) program probably will never refer to any of the crash routines but I could do so in the IDE, if needed.

TIA

Spock

new topic     » topic index » view message » categorize

2. Re: How to locate ex.err

ex.err should be written to the directory that the program was executed from. I realize this could vary greatly depending on the IDE but I would assume most would launch from the directory your main source file is located in?

Jeremy

new topic     » goto parent     » topic index » view message » categorize

3. Re: How to locate ex.err

jeremy said...

ex.err should be written to the directory that the program was executed from. I realize this could vary greatly depending on the IDE but I would assume most would launch from the directory your main source file is located in?

Jeremy

Hi Jeremy,

Thanks for the prompt rely. I tried these 4 experiments just now:

1) I opened the target file then I opened another file in a different folder then I ran the first file. The ex.err file was written to the other folder.

2) Opening the target file and running it immediately caused ex.err to be placed in the same folder as the file.

3) I modified the program so that as it was running it would open then close a file in some arbitrary folder. Ex.err went to that arbitrary folder.

4) I repeated test 3 under the same principle as 1. The result was the same as in 1.

I have Eu 4 but it is not the very latest version (I don't think that matters). It seems to be that if I (re)open the target file immediately just before executing it the ex.err should be placed in the same folder (in most cases). When I write code I usually have quite a few files open (not in the io sense) in the IDE so it'd be better to make the IDE responsible for knowing where to look rather than me. I'll check this out further when I have time.

Spock

new topic     » goto parent     » topic index » view message » categorize

4. Re: How to locate ex.err

I believe in Windows the ex.err file will be written to the current directory. Initially this will usually be in the application folder. But an application can change this at any time, either directly or with a file open dialog. If you want an always predictable location you can specify it with the crash_file() procedure.

new topic     » goto parent     » topic index » view message » categorize

Search



Quick Links

User menu

Not signed in.

Misc Menu