ahk.lua (line 545) with the correct sequence :
Code: Select all
for i,LibDir in ipairs({LocalLib, UserLib, GlobalLib}) do
Code: Select all
for i,LibDir in ipairs({LocalLib, UserLib, GlobalLib}) do
Code: Select all
Size: 1,880 KB
MD5: a03243ee7c40761c9e69d24923a27bf7
SHA1: b2c45e000d81c8c7f0dff8e3432d8a452df51e74
SHA256: 59770ba956ec114265909d9fe97546052c7c7c322e58228e3de2341629ff3c5d
SHA512: be7494aeb8da845c15be97f0088e4765359471619ec4ffc1e3cecfa2ffbd9e8b6311e53a642f74b878cb85ff60b1a77fb9c99de98fd02ab626c51f41542316b0
Thank you for your reply, however, I can't use the "Tools -> Debug a currently running script" option because the script requires/expects to receive a command line param to run, so starting it without a param triggers the "test for params" code which displays a error followed by quitting. I want to test/debug the processing of the command line params.lexikos wrote:Start the script, then use Tools -> Debug a currently running script...
You can change the command for debugging via the command.build.$(file.patterns.ahk) property, but your script is launched by SciTEDebug.ahk, not by SciTE. Even if you override it to pass parameters (e.g. $(1) $(2) $(3) $(4) covers the parameters set by the Shift+F8 dialog), you would need to also edit SciTEDebug.ahk to pass those parameters on to your script.
It explains how to make it possible to do exactly what you want to do...: use the Parameters dialog to specify parameters and ensure those parameters are used when the debugger starts your script.Xennon wrote:As for the 2nd part of your reply, I'm sorry but i have no idea what you're saying here or how it can help me.
So you're telling me that I need to make changes to the operating files for SciTE4AutoHotkey in order to debug a script that takes command line params?lexikos wrote:It explains how to make it possible to do exactly what you want to do...: use the Parameters dialog to specify parameters and ensure those parameters are used when the debugger starts your script.
The capability to set parameters to use when launching the script in debugging mode does not exist (in the current download), so if that's what you want, then yes, you would need to make changes to SciTE4AutoHotkey to get that.Xennon wrote:So you're telling me that I need to make changes to the operating files for SciTE4AutoHotkey in order to debug a script that takes command line params?
Code: Select all
; Tell SciTE to debug THIS script.
; You must launch this script externally, not from SciTE.
if WinExist("ahk_class SciTEWindow") {
; Activate SciTE
WinActivate
; Show the dialog
Send ^+{F7}
WinWaitActive Select running script to debug ahk_class AutoHotkeyGUI
; Select this script (the first column shows the script's HWND)
Send %A_ScriptHwnd%
; Send a double-click message (lack of keyboard accessibility...)
PostMessage 0x203, 1, -1, SysListView321
; Wait for the debugger (or Sleep 1000 would probably suffice)
while A_DebuggerName = ""
Sleep 100
}
Hence the second paragraph in my initial reply.The parameters dialog under the view menu does appear to pass the params entered there to the script when you RUN the script, but not when you want to line-by-line debug the script.
I think it's like that because users were modifying them for the wrong reasons, like to change settings that can be easily overridden in other ways. The notice in each properties file tells you how to override settings without editing the file. SciTEDebug.ahk is the only file you would need to edit, and it doesn't appear to contain any warnings. (I know a message box pops up sometimes if you open that file in SciTE, but for some reason I'm not getting it right now.)I'm not comfortable making any such changes given the numerous and prominent warnings scattered across virtually all of those files
Following those links indicates that 2 file were changed to add that support (platforms.properties & SciTEDebug.ahk) so I did as you suggested and downloaded just those 2 files and replaced my copies - unfortunately, this didn't work and broke SciTE which now throws up errors when i try to debug a AHK script - it complains that "AutoHotKey executable doesn't exist" as soon as I hit the debug button. It will however Run the script per the PLAY button.lexikos wrote:I was going to make the change just to show how simple it is, but it turns out the change was already made in May last year. fincs just hasn't pushed out an update. You can manually update by downloading the source and copying the contents of the "source" folder over your SciTE installation. (Replacing just tools\SciTEDebug.ahk might be enough.)
Hey fincs, can you somehow disable syntax highlighting and auto completion in places where they are not needed? For example, after the MsgBox command, etc. Or do people want this functionality there?fincs wrote: Syntax highlighting
Users browsing this forum: No registered users and 44 guests