Can't attach debugger

TiftofTiftof Join Date: 2008-11-03 Member: 65371Members
edited November 2008 in Decoda
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.

Comments

  • MaxMax Technical Director, Unknown Worlds Entertainment Join Date: 2002-03-15 Member: 318Super Administrators, Retired Developer, NS1 Playtester, Forum Moderators, NS2 Developer, Constellation, Subnautica Developer, Pistachionauts, Future Perfect Developer
    <!--quoteo(post=1692251:date=Nov 3 2008, 09:37 AM:name=Tiftof)--><div class='quotetop'>QUOTE(Tiftof @ Nov 3 2008, 09:37 AM) <a href="index.php?act=findpost&pid=1692251"><{POST_SNAPBACK}></a></div><div class='quotemain'><!--quotec-->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.<!--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.
  • TiftofTiftof Join Date: 2008-11-03 Member: 65371Members
    Well, ty =)
    An email containing a sample application which don't work has normally been send to your email address.
    Thank in advance.
  • clockworkclockwork Join Date: 2009-03-06 Member: 66643Members
    Was a resolution found for this issue?
    I'm having the same problem running lua 5.1.4 and decoda 1.11 on 64 bit Vista.
  • MaxMax Technical Director, Unknown Worlds Entertainment Join Date: 2002-03-15 Member: 318Super Administrators, Retired Developer, NS1 Playtester, Forum Moderators, NS2 Developer, Constellation, Subnautica Developer, Pistachionauts, Future Perfect Developer
    This was followed up through e-mail, but the resolution was that it will be fixed in the next release (Decoda 1.12). The problem also affects 32-bit Windows when the application is loaded at an address which is different than the default address specified in the executable image.
  • TiftofTiftof Join Date: 2008-11-03 Member: 65371Members
    Finally =)
    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
  • cricketercricketer Join Date: 2010-04-05 Member: 71177Members
    edited March 2011
    Will alien structures grow as they are built? For example, if a resource tower is placed, it could initially be small (like the size of a skulk egg). As it is built, it would get larger. The easiest way would be to just use the same model but scale it. For future updates (post 1.0), the egg could become more complex or change colors as it is built.




    <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>
  • wosnkywosnky Join Date: 2011-04-12 Member: 92659Members
    Was a resolution found for this issue?
Sign In or Register to comment.