I'm trying to setup a debugger for Notepad++/AutoHotkey on my work computer.
I use AutoHotkey at work, however I am not permitted to run any commands that require administrator privileges. I use a lot of portable apps to bypass this restriction.
I have AutoHotkey and Notepad++ both extracted to separate folders, and I'm trying to use the DBGp plugin for Notepad++ but I don't know what I'm doing.
Can someone please help me get a debugger working in Notepad++? Thanks!
I have chosen the AutoHotkey.exe file as the default "Open With..." application to run ".ahk" script files with executed.
I've also installed the DBGp plugin for Notepad++.
I don't know what I'm supposed to do to enable the debugging. I use the "RunMe" plugin usually to run the script from Notepad++ with the default application with a click of a button.
Until now, I always use MsgBox, ToolTip, etc for my debugging purposes, but would like to finally start using a debugger tool.
Notepad++ Debugger
Re: Notepad++ Debugger
I just posted a few days ago my AHK Project Manager in the script section of this Forum. It makes use of the debug plugin of npp.
You may try it.
Besides that you could also just run AHK with the /debug option. Then it should automatically connect with the DBGp within NPP.
You may try it.
Besides that you could also just run AHK with the /debug option. Then it should automatically connect with the DBGp within NPP.
ciao
toralf
toralf
Re: Notepad++ Debugger
When I try to launch AutoHotkey.exe /Debug the AutoHotkey.chm file is launched and the debugger is still not connecting.
Re: Notepad++ Debugger
That shows the AutoHotkey icon in the tray/notification area. It refuses to show a menu on right-click.
Reloading the script with #SingleInstance, Force results in error Could not close the previous instance of this script. Keep waiting?
I have to close the process from the task manager.
No luck. Not detecting the debugger in Notepad++.
Also, every time I run the plugin I get this message:
It does not work.
Reloading the script with #SingleInstance, Force results in error Could not close the previous instance of this script. Keep waiting?
I have to close the process from the task manager.
No luck. Not detecting the debugger in Notepad++.
Also, every time I run the plugin I get this message:
Code: Select all
---------------------------
PluginsManager::runPluginCommand Exception
---------------------------
Unlisted exception
---------------------------
OK
---------------------------
It does not work.
Re: Notepad++ Debugger
Please try a very simple script that will run for sure, e.g. only 3 lines with message boxes and a few variables
ciao
toralf
toralf
Re: Notepad++ Debugger
Npp has to be 32 bit I believe for some plugins to work. IIRC DBGp is one of them.
ciao
toralf
toralf
Re: Notepad++ Debugger
AutoHotkey 1.1.32.00 (32-bit)
DBGp 0.0.13.27
Notepad++ 7.7.1 (32-bit)
DBGp 0.0.13.27
Notepad++ 7.7.1 (32-bit)
Code: Select all
#SingleInstance, Force
#Persistent
OutputDebug, Testing...
Re: Notepad++ Debugger
Do not use ouputdebug.
Just msg box
And what are your settings for DBGp?
Just msg box
And what are your settings for DBGp?
ciao
toralf
toralf
Re: Notepad++ Debugger
I have npp 7.8.2 but I have been using older versions as well with dbgp.
How did you install dbgp?
Maybe start installation of npp and dbgp from scratch again.
How did you install dbgp?
Maybe start installation of npp and dbgp from scratch again.
ciao
toralf
toralf
Re: Notepad++ Debugger
CommandLine Example: "C:\Users\Username\...\AutoHotkey\AutoHotkey.exe" /Debug "C:\Users\Username\Downloads\New AutoHotkey Script.ahk"
I downloaded the latest version of N++ portable and installed the plugin again using the built-in plugin manager and same issue...
DBGp settings attached.
Code: Select all
#SingleInstance, Force
#Persistent
MsgBox, Testing...
DBGp settings attached.
Re: Notepad++ Debugger
You either have to set a break point in the script or check break on first line
ciao
toralf
toralf
Re: Notepad++ Debugger
The problem seems to be the AutoHotkey executable.
Whenever I attempt to launch the script AutoHotkey.exe /Debug YourScript.ahk, the icon appears in the notification/tray area and it's not possible to interact with the icon. The program is crashed possible and I must manually exit from the task manager.
Whenever I attempt to launch the script AutoHotkey.exe /Debug YourScript.ahk, the icon appears in the notification/tray area and it's not possible to interact with the icon. The program is crashed possible and I must manually exit from the task manager.
Who is online
Users browsing this forum: chubbychub, JoeWinograd and 43 guests