What about running strace? I am not sure if it's appropriate for what you are doing, but if this is something that can be started from command line, you could see what went wrong with it by using strace.
syntax to put the output on file called /mnt/card/STRACEOUTPUT would be:
strace -f -v -s 100 -o /mnt/card/STRACEOUTPUT e-wm &
Output can be huge, and this might be a crazy suggestion if you can't start e-wm from command line, but what the heck.
Output can also be a challenge to decipher, you can check man page on it and also the "-s 100" can be changed to ask for more or less characters per string output for each line. "-s 60" is more standard but I've found it isn't always long enough if something important gets cut off.
sdjf