Can't attach debugger

TiftofTiftof Join Date: 2008-11-03 Member: 65371Posts: 3Members
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 :
CODE
#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;
}


With this lua script: [test.lua]
CODE
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


And here's what happened when I hit 'Debug' > 'Start' from Decoda :
First and then Second.

And if I try to attach it from VS, it just start an endless loop trying to inject LuaInject.dll (Saw in the VS debugger) 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 smile-fix.gif
I'm using Visual Studio Team System 2008 Trial, with Visual Assist X, and the lastest version of Decoda.
Post edited by Unknown User on

Comments

  • MaxMax Technical Director, Unknown Worlds Entertainment Join Date: 2002-03-15 Member: 318Posts: 1,650Super Administrators, Retired Developer, NS1 Playtester, Forum Moderators, NS2 Developer, Constellation, Subnautica Developer, Pistachionauts
    QUOTE(Tiftof @ Nov 3 2008, 09:37 AM) »
    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 :
    CODE
    #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;
    }


    With this lua script: [test.lua]
    CODE
    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


    And here's what happened when I hit 'Debug' > 'Start' from Decoda :
    First and then Second.

    And if I try to attach it from VS, it just start an endless loop trying to inject LuaInject.dll (Saw in the VS debugger) 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 smile-fix.gif
    I'm using Visual Studio Team System 2008 Trial, with Visual Assist X, and the lastest version of Decoda.

    It looks like you are doing everything correctly, and both LuaBind and LuaJIT should work with Decoda. If you would like to email me your application I'd be happy to look into it.
    Max McGuire
    Technical Director, Unknown Worlds Entertainment
  • TiftofTiftof Join Date: 2008-11-03 Member: 65371Posts: 3Members
    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: 66643Posts: 1Members
    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: 318Posts: 1,650Super Administrators, Retired Developer, NS1 Playtester, Forum Moderators, NS2 Developer, Constellation, Subnautica Developer, Pistachionauts
    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.
    Max McGuire
    Technical Director, Unknown Worlds Entertainment
  • TiftofTiftof Join Date: 2008-11-03 Member: 65371Posts: 3Members
    Finally =)
    Hope this new version will be available soon ; as I will finally be able to debug my application smile-fix.gif

    Thanks for it
  • cricketercricketer Join Date: 2010-04-05 Member: 71177Posts: 1Members
    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.




    pandora sale uk
    cheap pandora jewelry
    cheap pandora jewelry
    cheap pandora jewelry
    Post edited by Unknown User on
    cricketer
  • wosnkywosnky Join Date: 2011-04-12 Member: 92659Posts: 2Members
Sign In or Register to comment.