Thus far I've understood better what a workspace is, now have a .vscode folder in my workspace root folder, have a launch.json file and have figured out how to add a multiple configurations to it! So far so good. My launch.json file looks like:
Code: Select all
{
// Use IntelliSense to learn about possible attributes.
// Hover to view descriptions of existing attributes.
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
"version": "0.2.0",
"configurations": [
{
"name": "AutoHotkey v1 Debug",
"type": "autohotkey",
"request": "launch",
"runtime": "D:/AutoHotKey/ahk-pi-master/versions/AutoHotkey_1.1.33.10/AutoHotkeyU64.exe",
"program": "${file}",
"args": []
},
{
"name": "AutoHotkey v2 Debug",
"type": "autohotkey",
"request": "launch",
"runtime": "D:/AutoHotKey/ahk-pi-master/versions/AutoHotkey_2.0-beta.3/AutoHotkey64.exe",
"program": "${file}",
"args": []
},
{
"type": "pwa-node",
"request": "launch",
"name": "Launch Program",
"skipFiles": [
"<node_internals>/**"
],
"program": "${file}"
}
]
}
Code: Select all
#NoEnv ; Recommended for performance and compatibility with future AutoHotkey releases.
#Warn ; Enable warnings to assist with detecting common errors.
SendMode Input ; Recommended for new scripts due to its superior speed and reliability.
SetWorkingDir %A_ScriptDir% ; Ensures a consistent starting directory.
SetTitleMatchMode, 2 ;this allows comparison of substrings of Window Titles, rather than the full text.
#SingleInstance force ; This suppresses the warning dialogue that a newly launched script is already running.
DetectHiddenWindows On
MsgBox "hello world"
MsgBox, Current version of AHK = %A_AhkPath%\%A_AhkVersion%
ExitApp
In other words I don't seem to have the right syntax in the launch.json file to point to the version of autohotkey.exe I want to use to debug!
Hopefully someone can point out where I've gone wrong!