Skip to content
/ dbgp Public

DBGp client scripts for AutoHotkey

Notifications You must be signed in to change notification settings

Lexikos/dbgp

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

22 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

dbgp

DBGp client scripts for AutoHotkey.

These scripts run on AutoHotkey v2.0-beta.7+, but can receive connections from AutoHotkey v1 and possibly other debugger engines.

dbgp.ahk

Contains client functions for use by other scripts.

dbgp_console.ahk

Implements a basic debugger client using a command-line interface. This isn't very user-friendly; it's main uses are testing debugger engines and learning the protocol.

dbgp_listvars.ahk

Demonstrates asynchronous commands and variable retrieval.

This script is AutoHotkey-specific. It posts the AHK_ATTACH_DEBUGGER registered window message to all running scripts. Each script may respond by initiating a debugger connection. If there are successful connections, this test script queries and lists the variables of each connected script.

Note: AutoHotkey v1.1.09+ allows any command other than run/step to be sent asynchronously, but the spec does not require this. If a command is unavailable because the debugger is not in a break state, error 5 is returned.

dbgp_test.ahk

Demonstrates basic usage of the dbgp library.

When a connection is made, the client (this script) steps into the script being debugged. Each time the debugger breaks, the client logs the current line and instructs the debugger to step over one line. Stderr is redirected so that if OutputDebug is called, the output will be sent to the client.

Aside from basic usage, this test script hints at some possible uses for DBGp functions in a script. For example, this script could be extended to log variable values each time the debugger breaks, or at specific lines.

dbgp_benchmark.ahk

Implements a simple benchmark to measure overhead for simple commands, especially those SciTE4AutoHotkey uses when setting up a session.

About

DBGp client scripts for AutoHotkey

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published