[TOOL] [GENERATE PROPER PROBLEM REPORTING FILES]

Discussion in 'High Sierra Laptop Support' started by black.dragon74, Oct 29, 2017.

  1. black.dragon74

    black.dragon74

    Joined:
    Jul 11, 2014
    Messages:
    357
    Motherboard:
    Asus A555LAB
    CPU:
    Intel Core i3 4005U
    Graphics:
    Intel HD 4400
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Oct 29, 2017 at 10:24 PM #1
    black.dragon74

    black.dragon74

    Joined:
    Jul 11, 2014
    Messages:
    357
    Motherboard:
    Asus A555LAB
    CPU:
    Intel Core i3 4005U
    Graphics:
    Intel HD 4400
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Last update: 04 Mar 2018
    Current Version: 4.2

    Hello guys,
    I have seen many instances where people start a thread with the problem they are facing on their hack.

    They try to describe the issue in their own way that most of the times, is not able to properly describe what's going wrong with their system.

    The developers and other members on tonymacx86 can point out the problem exactly when they have a set of files, called problem reporting files.

    These are basically a set of files that contain various logs and some other components.

    Many a times a normal user can not generate those files properly and it leads to a lot of wastage of good time, frustrated by this, I wrote a script to generate proper problem reporting files. You can have a look at the source code here

    The purpose of this guide is to tell the normal user on how to generate those files properly for debugging.

    I wrote a script that automatically installs that debug report generator script and then gives you a .zip output.

    If you are seeking help about a problem and you must attach problem reporting files as it saves a lot of time.

    How to generate debug report:-

    It is very simple, you just have to download the attached script and run it. The script in attachment will install the tool for you and will then prompt if you want to generate the files.

    If you want to generate files next time, you just have to invoke: "gen_debug" from terminal (without quotes)

    How to download and run attached script :-

    • Unzip the downloaded zip file
    • Open terminal
    • Assuming your script is in Downloads folder, type the following code :-
    Code:
    chmod a+x ~/Downloads/install_tools.sh
    ~/Downloads/install_tools.sh
    
    Args for gen_debug:

    You can use custom set of args for controlling gen_debug output, this list will be updated as new features become available

    • gen_debug -u || To update your copy (available from ver2.1+)
    • gen_debug -sysprofile || To include your system profile in the dump (available from ver2.2+)
    • gen_debug -sysprofile txt || To include system profile in the dump but in TXT format
    Note: Whenever you change anything, you should attach new output of gen_debug.

    Note 2: It is recommended to update your copy of gen_debug every alternate month (for fixes and new features). To do so, If you are running version 2.1 or above, you can simply type "gen_debug -u" (without quotes) in terminal. If you are running version 2.0 or less, you can use the attached installer script to update your copy.

    Updates 4.1 to 4.2:
    • Experimental support for Chameleon (and similar) boot-loaders.
    • Check for ACPI origin files age. Should not be older than 1 day.
    Updates 3.2 to 4.0:
    • Fix potential user's file deletion loophole
    • Make IOREG dump dynamic (time values are adjusted automatically for slower machines)
    • Include generic IOREG dump if normal IOREG dump fails more than 3 times.
    • Handle scenarios where CLOVER might not be installed.
    • Include kernel panic logs if exits.
    • Fixed issues with whitespaces in EFI pathname.
    • If root elevations fails, exit.
    • Include list of all loaded kexts in dump.
    Update 3.1 - 1 Jan 2018:
    • Mask MLB in RtVariables section of config.plist
    • Fixed STDERR for pledit
    Update 3.0 - 29 Dec 2017:
    • Fix conflicts with GNU date on some developer environments (Fix kernel log generation)
    Update 2.9 - 21 Dec 2017:
    • Fix kextcache output redunancy on 10.13.1+
    Update 2.8 - 13 Dec 2017:
    • Add NVRAM dump functionality.
    • Fix broken update functionality when using "-u" arg.
    Update 2.7 - 12 Dec 2017:
    • If a new update for the script it available, it will update automatically. (Helps to stay you up-to-date)
    • New IOReg dump mechanism for slow machines.
    • Include script version in the dump report.
    Update 2.6 - 11 Dec 2017:
    • IOREG dump will never ever fail again.
    Update 2.5 - 3 Dec 2017:
    • Check for IORegistryExplorer version 2.1
    Update 2.4 - 2 Dec 2017:
    • Script now also dumps your boot log
    Update 2.3 - 2 Dec 2017:
    • Fixed an issue where the time stamp of files was overwritten to current system time, reported by RehabMan.
    Update 2.2 - 27Nov 2017:
    • Added option to generate system information dump using -sysprofile arg
    Update 2.1 - 27Nov 2017:
    • Fixed an issue where IOREG was not saved on some machines
    • You can now update your copy of OSX-Debug by using "-u" arg, like gen_debug -u
    Regards
     

    Attached Files:

    Last edited: Mar 4, 2018
  2. black.dragon74

    black.dragon74

    Joined:
    Jul 11, 2014
    Messages:
    357
    Motherboard:
    Asus A555LAB
    CPU:
    Intel Core i3 4005U
    Graphics:
    Intel HD 4400
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Oct 29, 2017 at 10:25 PM #2
    black.dragon74

    black.dragon74

    Joined:
    Jul 11, 2014
    Messages:
    357
    Motherboard:
    Asus A555LAB
    CPU:
    Intel Core i3 4005U
    Graphics:
    Intel HD 4400
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Video Demo
     
    Daniel67, Argggh and JCG730 like this.
  3. fivos1996

    fivos1996

    Joined:
    Sep 9, 2011
    Messages:
    666
    Motherboard:
    HP 250 G5 (81EF) Clover UEFI
    CPU:
    Intel Core i3 5005U
    Graphics:
    Intel HD 5500 (1366x768)
    Mobile Phone:
    Android
    Oct 29, 2017 at 11:36 PM #3
    fivos1996

    fivos1996

    Joined:
    Sep 9, 2011
    Messages:
    666
    Motherboard:
    HP 250 G5 (81EF) Clover UEFI
    CPU:
    Intel Core i3 5005U
    Graphics:
    Intel HD 5500 (1366x768)
    Mobile Phone:
    Android
    Wow. Fantastic job! I just tried it and it did everything automatically. :)
     
    black.dragon74 likes this.
  4. rajuchacharuk

    rajuchacharuk

    Joined:
    Oct 7, 2016
    Messages:
    242
    Motherboard:
    Broadwell, UEFI
    CPU:
    Core i3-5005U
    Graphics:
    Intel HD 5500 (1366 x 768), AMD Radeon R5 M330 2GB
    Mobile Phone:
    Android, iOS
    Oct 30, 2017 at 8:13 AM #4
    rajuchacharuk

    rajuchacharuk

    Joined:
    Oct 7, 2016
    Messages:
    242
    Motherboard:
    Broadwell, UEFI
    CPU:
    Core i3-5005U
    Graphics:
    Intel HD 5500 (1366 x 768), AMD Radeon R5 M330 2GB
    Mobile Phone:
    Android, iOS
    great work :)
     
    black.dragon74 likes this.
  5. black.dragon74

    black.dragon74

    Joined:
    Jul 11, 2014
    Messages:
    357
    Motherboard:
    Asus A555LAB
    CPU:
    Intel Core i3 4005U
    Graphics:
    Intel HD 4400
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Oct 31, 2017 at 10:44 AM #5
    black.dragon74

    black.dragon74

    Joined:
    Jul 11, 2014
    Messages:
    357
    Motherboard:
    Asus A555LAB
    CPU:
    Intel Core i3 4005U
    Graphics:
    Intel HD 4400
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    @RehabMan This is the script I talked with you about. Worth adding to FAQ?
     
  6. carpentryplus25

    carpentryplus25

    Joined:
    Jan 26, 2014
    Messages:
    1,373
    Motherboard:
    Asus P5LP-LE
    CPU:
    Core 2 Duo
    Graphics:
    Nvidia GeForce GT 640
    Mac:
    Mac Pro
    Mobile Phone:
    iOS
    Oct 31, 2017 at 10:56 AM #6
    carpentryplus25

    carpentryplus25

    Joined:
    Jan 26, 2014
    Messages:
    1,373
    Motherboard:
    Asus P5LP-LE
    CPU:
    Core 2 Duo
    Graphics:
    Nvidia GeForce GT 640
    Mac:
    Mac Pro
    Mobile Phone:
    iOS
  7. carpentryplus25

    carpentryplus25

    Joined:
    Jan 26, 2014
    Messages:
    1,373
    Motherboard:
    Asus P5LP-LE
    CPU:
    Core 2 Duo
    Graphics:
    Nvidia GeForce GT 640
    Mac:
    Mac Pro
    Mobile Phone:
    iOS
    Oct 31, 2017 at 10:57 AM #7
    carpentryplus25

    carpentryplus25

    Joined:
    Jan 26, 2014
    Messages:
    1,373
    Motherboard:
    Asus P5LP-LE
    CPU:
    Core 2 Duo
    Graphics:
    Nvidia GeForce GT 640
    Mac:
    Mac Pro
    Mobile Phone:
    iOS
    Would be really nice if you'd merge it to an Apple script that is saved as an app a double click and there you go
     
  8. black.dragon74

    black.dragon74

    Joined:
    Jul 11, 2014
    Messages:
    357
    Motherboard:
    Asus A555LAB
    CPU:
    Intel Core i3 4005U
    Graphics:
    Intel HD 4400
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Oct 31, 2017 at 1:24 PM #8
    black.dragon74

    black.dragon74

    Joined:
    Jul 11, 2014
    Messages:
    357
    Motherboard:
    Asus A555LAB
    CPU:
    Intel Core i3 4005U
    Graphics:
    Intel HD 4400
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
  9. black.dragon74

    black.dragon74

    Joined:
    Jul 11, 2014
    Messages:
    357
    Motherboard:
    Asus A555LAB
    CPU:
    Intel Core i3 4005U
    Graphics:
    Intel HD 4400
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Oct 31, 2017 at 1:25 PM #9
    black.dragon74

    black.dragon74

    Joined:
    Jul 11, 2014
    Messages:
    357
    Motherboard:
    Asus A555LAB
    CPU:
    Intel Core i3 4005U
    Graphics:
    Intel HD 4400
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    I prefer BASH and Terminal over AppleScript. There is tad bit of apple script in this shell script too. Have a look at the source code and you will know.
     
  10. RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    185,283
    Motherboard:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Oct 31, 2017 at 1:32 PM #10
    RehabMan

    RehabMan Moderator

    Joined:
    May 3, 2012
    Messages:
    185,283
    Motherboard:
    Intel DH67BL
    CPU:
    Core i7-2600K
    Graphics:
    Intel HD 3000
    Mac:
    MacBook Air
    Mobile Phone:
    iOS
    Once I have time for testing and review.
     
    black.dragon74 likes this.

Share This Page

  1. This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
    By continuing to use this site, you are consenting to our use of cookies.
    Dismiss Notice