How does one debug in Android?

Discussion in 'RPG Maker MV Deployment' started by masterlobo, Apr 17, 2017.

  1. masterlobo

    masterlobo Veteran Veteran

    Messages:
    146
    Likes Received:
    77
    Location:
    Seattle, WA
    Hello,

    My game crashes with TypeError: undefined is not a function in the Title Screen.

    This doesn't happen in Desktop.

    Since this is a hard problem to track... how can I have a debugging console in Android so I can see what's going on?

    For reference I did capture logcat, but the game's console calls are not captured by logcat.
     
    Last edited: Apr 17, 2017
    #1
  2. Andar

    Andar Veteran Veteran

    Messages:
    28,689
    Likes Received:
    6,596
    Location:
    Germany
    First Language:
    German
    Primarily Uses:
    RMMV
    there is a short plugin that will force-open the console on an error. Unfortunately I don't have a link, but it was developed exactly for this reason.
    Please search for it.
     
    #2
  3. masterlobo

    masterlobo Veteran Veteran

    Messages:
    146
    Likes Received:
    77
    Location:
    Seattle, WA
    I actually have Yanfly's CoreEngine script open console by default, but I get an error before I can even see the console (unless that just doesn't work in Android).

    Would the script you describe be any different?
     
    Last edited: Apr 17, 2017
    #3
  4. Zalerinian

    Zalerinian Jack of all Errors Veteran

    Messages:
    4,695
    Likes Received:
    924
    Location:
    The Internet.
    First Language:
    English
    Primarily Uses:
    N/A
    Look into Chrome's Remote Debugging. You need to compile the app with a slightly different configuration, but then you can access the regular debug tools found in the desktop executable on an Android device.
     
    #4
    masterlobo likes this.
  5. masterlobo

    masterlobo Veteran Veteran

    Messages:
    146
    Likes Received:
    77
    Location:
    Seattle, WA
    I tried that actually, but got no logs.

    I assume it's because I didn't compile the app with a slightly different configuration.

    Can you elaborate on that please?
     
    #5
  6. Zalerinian

    Zalerinian Jack of all Errors Veteran

    Messages:
    4,695
    Likes Received:
    924
    Location:
    The Internet.
    First Language:
    English
    Primarily Uses:
    N/A
  7. masterlobo

    masterlobo Veteran Veteran

    Messages:
    146
    Likes Received:
    77
    Location:
    Seattle, WA
    #7

Share This Page