VSCode fails with V2 Debugger

Get help with using AutoHotkey (v2 or newer) and its commands and hotkeys
BigJonMCMLXX
Posts: 1
Joined: 21 May 2024, 07:19

VSCode fails with V2 Debugger

Post by BigJonMCMLXX » 21 May 2024, 07:24

Hi, so yeah, im new to AutoHotKey, so i was trying to make the simplest of scripts - just the msg Hello World.
And i just couldnt get anything to work.
Using VSCode...
i eventually swapped the Debugger from v2 to v1 (it says so in launch.json)

Now it works.

Was this my mistake, or a bug?
User avatar
mikeyww
Posts: 27261
Joined: 09 Sep 2014, 18:38

Re: VSCode fails with V2 Debugger

Post by mikeyww » 21 May 2024, 07:39

Welcome to this AutoHotkey forum!

Probably your mistake, but if you have a script that does not work, you can post it in the forum to get specific feedback about it.
User avatar
CoffeeChaton
Posts: 37
Joined: 11 May 2024, 10:50

Re: VSCode fails with V2 Debugger

Post by CoffeeChaton » 21 May 2024, 09:10

1. It is recommended that you provide the complete .ahk code
2. provide .vscode/tasks.json
3. provide you use the ahk-Debug extension, like:
 thqby.vscode-autohotkey2-lsp
 zero-plusplus.vscode-autohotkey-debug
 helsmy.autohotkey-debug
User avatar
thqby
Posts: 431
Joined: 16 Apr 2021, 11:18
Contact:

Re: VSCode fails with V2 Debugger

Post by thqby » 21 May 2024, 19:43

thqby.vscode-autohotkey2-lsp is not a debugger extension. But it allows you to debug v2 scripts without additional settings after installing other debuggers.
User avatar
CoffeeChaton
Posts: 37
Joined: 11 May 2024, 10:50

Re: VSCode fails with V2 Debugger

Post by CoffeeChaton » 21 May 2024, 23:32

oops i forgot it
Post Reply

Return to “Ask for Help (v2)”