title: My site works on desktop but not on mobile. Lots of JavaScript involved. Any ideas how to diagnose this?
body: <p><a href="https://plutownium.github.io/ASCII-Pathfinding-Visualizer/" rel="nofollow noreferrer">https://plutownium.github.io/ASCII-Pathfinding-Visualizer/</a>?</p>
  
  <p>This is my ASCII Pathfinding Visualizer. I built it and it works fine on desktop, but on mobile...</p>
  
  <ul>
  <li>the "Visualize Dijkstra's" button does not work: You can place a Start Node and a Target Node, click the button, and have the visualizer fail to start.</li>
  <li>the "Generate Recursive division maze" button does not work: You can generate a random maze, you can generate a binary tree maze, but the Recursive Division maze button does nothing.</li>
  </ul>
  
  <p>To make things more confusing: As far as I can tell, it works on all 3 of Chrome, Brave and Firefox on my desktop. But when my phone loads it up, neither the Safari browser nor the Chrome browser works.</p>
  
  <p>I am stuck for how to debug it, because I don't have access to the Developer Tools (and hence not the console.log output either) on Mobile. </p>
  
  <p>Further I have no foundation of knowledge for <em>why</em> something would work fine on desktop but not on mobile. So while I am suspicious it is some kind of cross-compatibility issue (it must be right?),  I cannot begin to understand what part of the code would be causing the issue.</p>
  
  <p>I would show some code but I'm really not sure what part of the code to show. It is approximately a thousand lines of JavaScript between three files. Of course, two of the Maze Generation buttons work, so that narrows it down a lot, but... I am still stuck. Like, I can find plenty of StackOverflow links about "JavaScript doesn't work on mobile", but I'm not sure how those help me since I can't even access details about the cause of my problem -- I have no idea which lines of code are broken and I can't access that info (no dev tools on mobile).</p>
  
  <p>What do I do?</p>
  
  <p>edit: I still don't understand how code can work on desktop but not on mobile.</p>