Advertisement

Bug when calling `FindNextLineWithCode`

Started by September 08, 2020 12:11 AM
1 comment, last by WitchLord 4 years, 2 months ago

Hey,

I believe there is a bug when calling `FindNextLineWithCode`. I'm using the debugger add-on to debug some scripts, which is calling `FindNextLineWithCode` in `debugger.cpp:262`. I'm running Angelscript 2.34.0 on Windows 10 64 bit, and using Visual Studio 2019.

A sample failing test case is:

class Test
{
    private int a = 0;

    Test()
    {
        a = 100;

        test();
    }

    void test()
    {
        a = 200;

        test2();
    }

    bool temp = false;
    void test2()
    {
        a = 300;
    }

}

If you put a breakpoint on line 14, the debugger will end up stopping at line 19. If you comment out line 19, it works as expected.

Please let me know if you need any further information.

Cheers

Jarrett

Thanks for letting me know about this.

I'll look into it as soon as I can.

AngelCode.com - game development and more - Reference DB - game developer references
AngelScript - free scripting library - BMFont - free bitmap font generator - Tower - free puzzle game

This topic is closed to new replies.

Advertisement