Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Lua Development Tools » how debug with my own Interpreter in local
how debug with my own Interpreter in local [message #923883] Wed, 26 September 2012 09:23 Go to next message
vager wely is currently offline vager wely
Messages: 6
Registered: September 2012
Junior Member
I use v9.0

I try to creat an project and it's debuger.use interpreter: c:\lua\lua5.1.exe .it works good.

but I have a project need use an interpreter which is coded by myself. it's error like this:

E:\vs\myselfInterpreter.exe -e "require ('debugger')('192.168.1.118',10000,'dbgp_1348651176462');" E:\luacode\test\main.lua

what should I do?

I have watched the "Remote Debug" things. but I'm still convinced.
anybody can tech me step by step?

thanks a lot!
Re: how debug with my own Interpreter in local [message #923903 is a reply to message #923883] Wed, 26 September 2012 09:48 Go to previous messageGo to next message
Kevin KIN-FOO is currently offline Kevin KIN-FOO
Messages: 50
Registered: January 2010
Member
Hi,

In order to debug, we load some code before running yours, that's the:
-e "require ('debugger')('192.168.1.118',10000,'dbgp_1348651176462');" 

So, to be compliant to our debugger, does your custom interpreter implement standard Lua interpreters options, espescially -e?

Cheers
Re: how debug with my own Interpreter in local [message #923934 is a reply to message #923903] Wed, 26 September 2012 10:17 Go to previous messageGo to next message
vager wely is currently offline vager wely
Messages: 6
Registered: September 2012
Junior Member
no, I think.

lua source is used as a c++ lib, and lua engine is deep inside.

ps:
I used decoda。It can work.Just need two params: Command(interpreter),and working path.
But decoda interface is awful.
I like your software, but I think it a little complex.
Re: how debug with my own Interpreter in local [message #924172 is a reply to message #923934] Wed, 26 September 2012 15:24 Go to previous messageGo to next message
Kevin KIN-FOO is currently offline Kevin KIN-FOO
Messages: 50
Registered: January 2010
Member
Hi,

Thanks for the kind words.
About our debugger loading policy, you provide us a valuable use case, our team will truthfully think about it.
Could you file a bug about this? ( it will be an enhancement )
Anyway, your interpreter does not seem to handle -e, but there is a solution.
Configure your path as for attach debug.
Then add the following at the start of the file you attempt to debug ( in your case E:\luacode\test\main.lua ):
require ('debugger')('192.168.1.118',10000,'idekey')

Note: idekey is the one defined in Koneki LDT.

Cheers
Re: how debug with my own Interpreter in local [message #925046 is a reply to message #924172] Thu, 27 September 2012 10:28 Go to previous message
vager wely is currently offline vager wely
Messages: 6
Registered: September 2012
Junior Member
hi, I really can debug it ,but only "break on the first line"

It's seems like program run to the breakpoint,it crash.
But sometimes only need time

error:
Debug Assertion Failed!
Expression: _CrtIsValidHeapPointer(pUserData)
......
Previous Topic:Interpreter arguments
Next Topic:[version .9] Issues with Debug
Goto Forum:
  


Current Time: Mon Oct 20 21:26:12 GMT 2014

Powered by FUDForum. Page generated in 0.01787 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software