## 事象
[[AutoHotkey Plus Plus]]を使ってデバッグすると、[[VSCode]]の出力に以下のエラーが表示される。
```console
2022-12-08 15:56:18 Creating debug server, port is 9000
2022-12-08 15:56:18 Autohotkey Execute Bin Not Found : C:/Program Files/AutoHotkey/AutoHotkeyU64.exe
```
## 原因
[[AutoHotkey]]の実行ファイル(exe)の場所がデフォルト値で指定された場所にインストールされていないから。
## 解決方法
[[AutoHotkey]] v1の場合。
```json
"ahk++.file.interpreterPathV1": "${env:USERPROFILE}/scoop/apps/autohotkey-installer/current/AutoHotkeyU64.exe",
```
> [!trash]- #2023/11/05 削除
>> 設定で`ahk++.file.executePath`に実行ファイルの場所を指定する。
>
> ```json
> "ahk++.file.executePath": "${env:USERPROFILE}/scoop/apps/autohotkey-installer/current/AutoHotkeyU64.exe",
> ```
>
> #2023/01/02 時点では上記が正しかったが、[[AutoHotkey]]のv2がリリースされてから、v1とv2で設定を変えるため `ahk++.file.interpreterPathV1`と`ahk++.file.interpreterPathV2`に設定が変わった。
## 備考
他にも`Debug AHK Script`コマンドを実行したとき、アクティブなファイルが[[AutoHotkey]]スクリプトのエントリポイントになっていないとエラーになる。