Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Lua Development Tools » [SOLVED] lua attach debugger not working
[SOLVED] lua attach debugger not working [message #1058913] Wed, 15 May 2013 17:52 Go to next message
luo dd is currently offline luo ddFriend
Messages: 6
Registered: May 2013
Junior Member
I am using the 0.9.0 ldt, and I have a win32 visual studio project, emmbed luajit 2.0 and some lua bindings in the project (including luaSocket).

I want to debug the lua script in my win32 app, so I follow the ldt user guide, add a debugger.lua(generated from ldt), add the code at the begining of my scripts:


local initconnection = require("debugger")
initconnection('127.0.0.1' , 10000 , 'luaidekey')

and create a default DBGp server in ldt.


When I launch the win32 app, I get this error:



LUA ERROR: E:/quick-cocos2d-x/sample/CoinFlip/scripts/debugger.lua:2622: E:/quic
k-cocos2d-x/sample/CoinFlip/scripts/debugger.lua:2556: calling 'getinfo' on bad
self (function or level expected)


Can anyone help me find out what the problem is , is there any configuration I am missing?


[Updated on: Thu, 16 May 2013 22:21] by Moderator

Report message to a moderator

Re: lua attach debugger not working [message #1058917 is a reply to message #1058913] Wed, 15 May 2013 18:21 Go to previous messageGo to next message
Julien Desgats is currently offline Julien DesgatsFriend
Messages: 6
Registered: August 2012
Junior Member
I'm not sure if LuaJIT were supported in v0.9. Can you try this one

gist.github.com/jdesgats/5383865/raw/56591f94f48a253a821a5610525b402206c3df96/debugger.lua

This is a custom version with a better support of LuaJIT FFI, see www.eclipse.org/forums/index.php/t/476088 for more details.
Re: lua attach debugger not working [message #1058920 is a reply to message #1058917] Wed, 15 May 2013 18:32 Go to previous messageGo to next message
luo dd is currently offline luo ddFriend
Messages: 6
Registered: May 2013
Junior Member
Damn it! It works~~!!!


Thanks man, Laughing Laughing Laughing Laughing Laughing
Re: lua attach debugger not working [message #1059109 is a reply to message #1058913] Thu, 16 May 2013 18:43 Go to previous message
Julien Desgats is currently offline Julien DesgatsFriend
Messages: 6
Registered: August 2012
Junior Member
Woops, I just realized that I posted a wrong `link` about debugger details

http://www.eclipse.org/forums/index.php/mv/msg/476088/1041188/#msg_1041188

This version contains some experimental patches that are not included in LDT 1.0, so please report any issues you may encounter. In particular it contains a plugin to inspect FFI data in LuaJIT.
Previous Topic:[SOLVED] Debugger attaches, but nothing else happens
Next Topic:A Truly Newbie Question - How to Get Started?
Goto Forum:
  


Current Time: Tue Apr 23 16:52:01 GMT 2024

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

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

Back to the top