<h3 dir="auto">Preflight Checklist</h3>

<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h3 dir="auto">Issue Details</h3>
<ul dir="auto">
<li><strong>Electron Version:</strong>
<ul dir="auto">
<li>6.0.10</li>
</ul>
</li>
<li><strong>Operating System:</strong>
<ul dir="auto">
<li>Windows 7 / macOS 10.13.6</li>
</ul>
</li>
<li><strong>Last Known Working Electron version:</strong>
<ul dir="auto">
<li>4.1.5</li>
</ul>
</li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Electron Main Process should receive incoming <code class="notranslate">messages</code> from another process.</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">Electron Main Process can only send messages, but not receive</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">TBD</p>
<h3 dir="auto">Screenshots</h3>

<h3 dir="auto">Additional Information</h3>
<p dir="auto">Is there a reason anyone suspects this wouldn't work? I reviewed the changelog meticulously but I don't see anything that seems relevant in either 5.x or 6.x. I see the sandbox is enabled by default, but it seems to only apply to the <code class="notranslate">renderer</code> processes and not the <code class="notranslate">main</code> as far as I can tell. Currently I haven't a clue what the cause could be, but if any Electron Team dev or anyone else could point me in the right direction I'd appreciate it hugely.</p>
<h3 dir="auto">Preflight Checklist</h3>
<ul class="contains-task-list">
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have read the <a href="https://github.com/electron/electron/blob/master/CONTRIBUTING.md">Contributing Guidelines</a> for this project.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I agree to follow the <a href="https://github.com/electron/electron/blob/master/CODE_OF_CONDUCT.md">Code of Conduct</a> that this project adheres to.</li>
<li class="task-list-item"><input type="checkbox" id="" disabled="" class="task-list-item-checkbox" checked=""> I have searched the issue tracker for an issue that matches the one I want to file, without success.</li>
</ul>
<h1 dir="auto">Issue Details</h1>
<ul dir="auto">
<li><strong>Electron Version:</strong> <code class="notranslate">6.0.10</code></li>
<li><strong>Operating System:</strong> <code class="notranslate">Windows 7</code></li>
<li><strong>Last Known Working Electron version:</strong> <code class="notranslate">4.1.5</code></li>
</ul>
<h3 dir="auto">Expected Behavior</h3>
<p dir="auto">Debugger does not bug out and freeze/eat CPU indefinitely</p>
<h3 dir="auto">Actual Behavior</h3>
<p dir="auto">Debugging innocuous and functional code that was debuggable in Electron 4 can lead to freezes that require destroying the BrowserWindow or restarting Electron entirely.</p>
<h3 dir="auto">To Reproduce</h3>
<p dir="auto">No idea :(</p>
<h3 dir="auto">Screenshots</h3>

<p dir="auto"><a target="_blank" rel="noopener noreferrer nofollow" href="https://user-images.githubusercontent.com/6835891/65904339-4390cb00-e38c-11e9-8a70-9d0231dfb57c.png"><img src="https://user-images.githubusercontent.com/6835891/65904339-4390cb00-e38c-11e9-8a70-9d0231dfb57c.png" alt="image" style="max-width: 100%;"></a></p>
<h3 dir="auto">Additional Information</h3>
<p dir="auto">I upgraded and setting breakpoints in working code that was previously debuggable in Electron 4 there are issues. There's been no changes to that code and the debugger worked fine in Electron 4. I've been working on new code and figured that the issue was caused by a bug in my newly written code until just now.</p>
<p dir="auto">It will stop properly at the breakpoints (in a number of places in my code), and then CPU usage spikes and stays high, taking up 40-45% CPU on my dual core machine. It appears to respond, but if you resume or step ahead nothing happens. If you press Pause script execution, similarly nothing seems to happen except the UI updates. CPU usage remains the same throughout. This code also runs properly when not debugging and last time I ran it in React Native and debugged with React Native Debugger (based on Electron 1.8 I think?)</p>
<p dir="auto">Hitting Ctrl+P, the quick nav feature comes up as expected, but there's no files there except the HTML file loaded. Any additional files no longer appear.</p>
<p dir="auto">Electron 6 is based on Chromium 76, and on some machines Chrome 76 (and 77) shoots to using a full CPU core and doesn't stop until the process is ended. I wonder if perhaps I'm seeing the same thing here.</p>