🎉 Celebrating 25 Years of GameDev.net! 🎉

Not many can claim 25 years on the Internet! Join us in celebrating this milestone. Learn more about our history, and thank you for being a part of our community!

Bug when calling `FindNextLineWithCode`

Started by
1 comment, last by WitchLord 3 years, 9 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

Advertisement

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