AraBlocks / ara-file-manager

Electron-based desktop app to publish and purchase content with ARA
https://ara.one/app
GNU Lesser General Public License v3.0
26 stars 4 forks source link

Get log output from installed file manager #594

Open zootella opened 4 years ago

zootella commented 4 years ago

User is in contact with us, file manager isn't working, user doesn't have source code or terminal

  1. User makes folder named lara (log ara) in their home directory
  2. In that folder, a file with a name like run.txt sets additional environment variables
  3. User runs built and installed file manager the regular way, off the Start menu or dock
  4. File manager reads ~/lara/run.txt to set additional environment variables
  5. File manager saves logs in text files in the lara folder, using the date and time and process id in the file name to avoid collisions

And, you can open Atom or Sublime to view the lara folder, and watch additional logs appear in the text files as the file manager runs. Not exactly the same as seeing the logs on the command line, but a similar experience.

Standard debugging practices assume that the software can be tested in the lab, and then shipped to the field, where it will perform equivalently well. If this is the case, debugging tools can be removed for the shipped version. With distributed apps, this may not be the case--so brainstorming ways to get the same tools working before and after shipping.