On Wed, Aug 25, 2010 at 9:09 AM, AndreArpin <ar...@kingston.net> wrote:
> In the debug menu of the editor there is an attach entry.
> lets assume that we have the following test.lua program
> print(1)
> print(2)
> print(3)
> -------------
> Run up the editor
> /Debug/Attach
> -----------------> looking at TCP I have a listener on MyComputer:1551
> (also the editor specifies to use this port)
>
> issue command
> wxLua -dMyComputer:1551 -c -r test.lua
>
> ----------------> Now I have TCP communication establish between
> the editor and wxlua which has the test.lua ready to run (I guess)

Not really, the Lua program name is ignored after the -d switch since
the wxLua executable immediately tries to contact the debugger server
as the debuggee.

> What can we do at this point I must be missing something.

Nothing useful. I forgot to remove it when I changed the debugger to
work by sending the Lua program over TCP to the debugee. Previously
you had to save the Lua program to disk from the debugger and when you
start the debuggee it loaded it from disk. I wanted to make it
possible to quickly run/debug unsaved test programs. I can't think of
any very useful reason to have this so I will probably remove the menu
item. It can be simply changed to allow you to start the debuggee from
the command line by changing the code below, but I don't think that
has any use.

frame:Connect(ID_ATTACH_DEBUG, ...
    --debuggerServer = wxlua.wxLuaDebuggerServer(debuggerPortNumber)
    --if debuggerServer then
    --    ok = debuggerServer:StartServer()
    --end
    debuggerServer = CreateDebuggerServer()
    if debuggerServer then ...


Regards,
    John Labenski

------------------------------------------------------------------------------
Sell apps to millions through the Intel(R) Atom(Tm) Developer Program
Be part of this innovative community and reach millions of netbook users 
worldwide. Take advantage of special opportunities to increase revenue and 
speed time-to-market. Join now, and jumpstart your future.
http://p.sf.net/sfu/intel-atom-d2d
_______________________________________________
wxlua-users mailing list
wxlua-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wxlua-users

Reply via email to