Check out the New Error reporting in v2❗ Cool improvements 😍
Channel: AUTOHOTKEY Gurus
Date: 2022-09-20

Some really cool improvements to the error reporting in AutoHotkey Version 2.  AutoHotkey V1 has an ugly msgbox type report which is very plain looking while V2 has colors, highlights, some extra buttons as well as access to the callstack (regardless of your debugger)

Summary: AutoHotkey v2 has improved error reporting features to make debugging easier.

1. 00:00 🐞 AutoHotkey v2 now has an improved error reporting interface for easier debugging.
 1.1 In AutoHotkey version 2, a new interface for reporting errors has been added to make debugging easier.

2. 01:24 🔍 AHK Version 2 of the remap offers improved features for easier troubleshooting.
 2.1 Version 2 of the remap provides a more compact message box, highlights the problematic line, and allows users to select and copy just that one thing.

3. 02:36 🐞 Debugging complex scripts is made easier with the call stack, which shows a list of functions and methods called.
 3.1 You can either ignore the error and continue executing, or abort the operation and keep the app running.
 3.2 The call stack shows a list of functions and methods called, with the last one called at the top and the first one at the bottom, which is useful for debugging complex scripts.

4. 04:48 📸 Run the Snipping Tool to take a screenshot and get more debugging info, colors, and a help button with the new editor.
 4.1 The new version of the editor is better than the old one, as it provides more debugging information, different colors, and a help button to quickly search for particular things.
 4.2 Run the Snipping Tool to take a screenshot and move it to the side.

5. 06:46 🤔 AHK Version 2 can identify the file an error occurs in.
 5.1 If an error occurs in a different file, Version 2 will tell you which file it is in.

6. 08:19 🔧 Control G 931 to fix script error, then reload.
 6.1 Control G 931 to spot the little dash that was causing the error, then reload the script to fix it.

7. 09:58 ⚠️ An error was thrown and not handled, so the app must be reloaded, exited, or aborted.
 7.1 A warning is given when a line of code is not executed due to something else, and the font color should be changed to indicate this.
 7.2 An error was thrown and not handled, so the app must be reloaded, exited, or aborted.

8. 11:56 🐞 AHK Version 2 of the interface for errors is more complex, but will become easier with time - check out our videos on debugging for help!
 8.1 Version 2 of the interface for errors has improved and is more complex, but after some time it will become easier to use.
 8.2 Check out our videos on debugging for help with errors and subscribe if you found them useful.


Summary for https://youtu.be/KocqKBp2iVY by www.eightify.app
If you're new to AutoHotkey and want to learn amazing tips & tricks Check out this Amazing AutoHotkey Tutorial for Beginners: https://www.youtube.com/watch?v=hZRggm8RkhM