Can't attach debugger
Hello,
I needed today a good Debugger for Lua, and Decoda seems good ; so I wanted to try it.
So I made a little application :
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->#include <stdio.h>
extern "C" {
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
}
int main (int argc, char ** argv[]) {
lua_State * L = lua_open();
luaL_openlibs(L);
luaL_dofile(L, "test.lua");
lua_close(L);
getchar();
return 0;
}<!--c2--></div><!--ec2-->
With this lua script: [test.lua]
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->function add(x,y)
return x + y;
end
do
local x = 5;
local y = 4;
local k = add(x,y);
print ("> " .. x .. " + " .. y .. " = " .. k);
end<!--c2--></div><!--ec2-->
And here's what happened when I hit 'Debug' > 'Start' from Decoda :
<a href="http://img380.imageshack.us/img380/8515/decoda1fu1.jpg" target="_blank">First</a> and then <a href="http://img82.imageshack.us/img82/3786/decoda2ww2.jpg" target="_blank">Second</a>.
And if I try to attach it from VS, it just start an endless loop trying to inject LuaInject.dll (<a href="http://img505.imageshack.us/img505/6273/callstacksx8.jpg" target="_blank">Saw in the VS debugger</a>) in my application.
I'm out of solution ; I tried :
- Removing LuaBind and LuaJIT
- Creating a simpler application
- Moving solution directory to main hard drive root (C:)
- Disabling Visual Assist X
And finally, it still don't work. Am I doing something wrong ?
I hope you'll be able to help me <img src="style_emoticons/<#EMO_DIR#>/smile-fix.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile-fix.gif" />
I'm using Visual Studio Team System 2008 Trial, with Visual Assist X, and the lastest version of Decoda.
I needed today a good Debugger for Lua, and Decoda seems good ; so I wanted to try it.
So I made a little application :
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->#include <stdio.h>
extern "C" {
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
}
int main (int argc, char ** argv[]) {
lua_State * L = lua_open();
luaL_openlibs(L);
luaL_dofile(L, "test.lua");
lua_close(L);
getchar();
return 0;
}<!--c2--></div><!--ec2-->
With this lua script: [test.lua]
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->function add(x,y)
return x + y;
end
do
local x = 5;
local y = 4;
local k = add(x,y);
print ("> " .. x .. " + " .. y .. " = " .. k);
end<!--c2--></div><!--ec2-->
And here's what happened when I hit 'Debug' > 'Start' from Decoda :
<a href="http://img380.imageshack.us/img380/8515/decoda1fu1.jpg" target="_blank">First</a> and then <a href="http://img82.imageshack.us/img82/3786/decoda2ww2.jpg" target="_blank">Second</a>.
And if I try to attach it from VS, it just start an endless loop trying to inject LuaInject.dll (<a href="http://img505.imageshack.us/img505/6273/callstacksx8.jpg" target="_blank">Saw in the VS debugger</a>) in my application.
I'm out of solution ; I tried :
- Removing LuaBind and LuaJIT
- Creating a simpler application
- Moving solution directory to main hard drive root (C:)
- Disabling Visual Assist X
And finally, it still don't work. Am I doing something wrong ?
I hope you'll be able to help me <img src="style_emoticons/<#EMO_DIR#>/smile-fix.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile-fix.gif" />
I'm using Visual Studio Team System 2008 Trial, with Visual Assist X, and the lastest version of Decoda.
Comments
I needed today a good Debugger for Lua, and Decoda seems good ; so I wanted to try it.
So I made a little application :
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->#include <stdio.h>
extern "C" {
#include <lua.h>
#include <lualib.h>
#include <lauxlib.h>
}
int main (int argc, char ** argv[]) {
lua_State * L = lua_open();
luaL_openlibs(L);
luaL_dofile(L, "test.lua");
lua_close(L);
getchar();
return 0;
}<!--c2--></div><!--ec2-->
With this lua script: [test.lua]
<!--c1--><div class='codetop'>CODE</div><div class='codemain'><!--ec1-->function add(x,y)
return x + y;
end
do
local x = 5;
local y = 4;
local k = add(x,y);
print ("> " .. x .. " + " .. y .. " = " .. k);
end<!--c2--></div><!--ec2-->
And here's what happened when I hit 'Debug' > 'Start' from Decoda :
<a href="http://img380.imageshack.us/img380/8515/decoda1fu1.jpg" target="_blank">First</a> and then <a href="http://img82.imageshack.us/img82/3786/decoda2ww2.jpg" target="_blank">Second</a>.
And if I try to attach it from VS, it just start an endless loop trying to inject LuaInject.dll (<a href="http://img505.imageshack.us/img505/6273/callstacksx8.jpg" target="_blank">Saw in the VS debugger</a>) in my application.
I'm out of solution ; I tried :
- Removing LuaBind and LuaJIT
- Creating a simpler application
- Moving solution directory to main hard drive root (C:)
- Disabling Visual Assist X
And finally, it still don't work. Am I doing something wrong ?
I hope you'll be able to help me <img src="style_emoticons/<#EMO_DIR#>/smile-fix.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile-fix.gif" />
I'm using Visual Studio Team System 2008 Trial, with Visual Assist X, and the lastest version of Decoda.<!--QuoteEnd--></div><!--QuoteEEnd-->
It looks like you are doing everything correctly, and both LuaBind and LuaJIT should work with Decoda. If you would like to <a href="mailto:max@unknownworlds.com">email me</a> your application I'd be happy to look into it.
An email containing a sample application which don't work has normally been send to your email address.
Thank in advance.
I'm having the same problem running lua 5.1.4 and decoda 1.11 on 64 bit Vista.
Hope this new version will be available soon ; as I will finally be able to debug my application <img src="style_emoticons/<#EMO_DIR#>/smile-fix.gif" style="vertical-align:middle" emoid=":)" border="0" alt="smile-fix.gif" />
Thanks for it
<a href="http://www.pandorasale.ws" target="_blank">pandora sale uk</a>
<a href="http://www.pandorajewelry.ws" target="_blank">cheap pandora jewelry</a>
<a href="http://www.pandorajewelry.ca" target="_blank">cheap pandora jewelry</a>
<a href="http://www.pandora-jewelry.me" target="_blank">cheap pandora jewelry</a>