views:

13

answers:

0

I'm using MySQL proxy and the following Lua script to view all the queries that will be send from my program to MySQL.

function read_query( packet )
    if string.byte(packet) == proxy.COM_QUERY then
        print(string.sub(packet, 2))
        print()
    end
end

Is it somehow possible to pause the script each time a query had been received and wait for the user to press a key before continue in order to step through the queries?