Skip to content

Debugging

Ben Bucksch edited this page Jan 15, 2025 · 4 revisions

How to run the debugger

Frontend

  1. In the Mustang main window, press F12 or Ctrl-Shift-I to start the Inspector
  2. Tab "Sources"
  3. Set breakpoints, on the bar on the left side of the source line, click on the red dot, which appears on hover
  4. The right panel has the debugger inspection

Backend

  1. Use netstat, look for LISTEN of port 5453 (backend port, on debug builds) or 5355 (release builds), and look for the process ID (PID) of the process.
  2. Use a debugger to connect to that process.

TODO Document how.

Tests

  1. Visual Studio Code
  2. App navigation bar, [Test] button
  3. Left sidebar, hover over a specific test file name
  4. [Debug test] (appears when you hover over the test file name)
  5. Set breakpoints in the source editor, on the left of the line number, clicking the red dot, which appears on hover
  6. Repeat step 4

TODO Alternatives to Visual Studio Code

Clone this wiki locally