OnScriptDebug hook in version 4.4.10a. Each time the script debug window is shown my editor will also
show the corresponding line of the script currently being debugged.
gvim (vim) is my editor of choice, you will need to adapt this script to your editor.
Some explanations about gvim:
gvim --servername NAME --remote-silent FILE
edits FILE in an already existing instance of gvim named NAME
gvim +LINE
sets the line number
gvim --remote-send KEYS
sends keystrokes to gvim, in the script below it's sending the commands to move to an absolute line
number (LINE followed by G followed by carriage return).
Create a command list called OnScriptDebug with one item
[EMAIL PROTECTED](arg(1),arg(2),arg(3),arg(4))
Then save the following script as TestScript.powerpro
;--- script begin ---
@OnScriptDebug
args path name line breaktext
; EXPERIMENTAL: trace execution with gvim
static scriptdebugpathname, editorpath
if(not editorpath)
editorpath=?"c:\bin\vim\vim70\gvim.exe"
local pathname=path++??\?++name
if( scriptdebugpathname != pathname )do
; --- CHANGE LINES BELOW FOR YOUR FAVORITE EDITOR ---
file.runwait(1, editorpath, "--servername gPPRODEBUG --remote-silent +"++line++?? "?
++pathname++??.powerpro"?)
else
file.runwait(1, editorpath, "--servername gPPRODEBUG --remote-send "++line++"G<CR>")
scriptdebugpathname=pathname
endif
quit
;--- script end ---
Then start the script debugger
exec.scriptdebug(1)
My next experiment will the using the COM plugin.
Attention: PowerPro's Web site has moved: http://www.ppro.org
YAHOO! GROUPS LINKS
- Visit your group "power-pro" on the web.
- To unsubscribe from this group, send an email to:
[EMAIL PROTECTED]
- Your use of Yahoo! Groups is subject to the Yahoo! Terms of Service.
