Code Monkey home page Code Monkey logo

Comments (7)

stuartwang avatar stuartwang commented on May 12, 2024 1

但是有一个小问题,在VSCode进入调试后(且运行时),会总是自动进行一次Break。
Break的位置是我未添加过断点的位置(应该是代码当前执行到的行)。

这个是正常的,可以设置 launch.json 中的 stopOnEntry 来修改。 stopOnEntry的作用是 设置是否在调试器启动后立刻停止。

from luapanda.

littlemaple avatar littlemaple commented on May 12, 2024

image

检查了一下,该so文件在该目录是存在的,加载Succeed,但是提示lua文件找不到

from luapanda.

littlemaple avatar littlemaple commented on May 12, 2024

已经解决了,需要手动引入libpdebug到项目中才可以,新手流程上建议追加这一步~

    [DllImport("libpdebug", CallingConvention = CallingConvention.Cdecl)]
    public static extern int luaopen_libpdebug(System.IntPtr L);

    [MonoPInvokeCallback(typeof(lua_CSFunction))]
    public static int LoadLuaPanda(System.IntPtr L)
    {
        return luaopen_libpdebug(L);
    }

from luapanda.

stuartwang avatar stuartwang commented on May 12, 2024

非常感谢~
我们在尝试复现这个问题。想了解一下,Unity 和 VSCode 是运行在同一台机器上么,是Win还是Mac呢?

from luapanda.

littlemaple avatar littlemaple commented on May 12, 2024

你好:
Unity和VSCode是运行在同一台机器上,Win。
这个问题在手动引入dll后解决了,目前已经不报错了。
但是有一个小问题,在VSCode进入调试后(且运行时),会总是自动进行一次Break。
Break的位置是我未添加过断点的位置(应该是代码当前执行到的行)。

非常感谢~
我们在尝试复现这个问题。想了解一下,Unity 和 VSCode 是运行在同一台机器上么,是Win还是Mac呢?

from luapanda.

littlemaple avatar littlemaple commented on May 12, 2024

但是有一个小问题,在VSCode进入调试后(且运行时),会总是自动进行一次Break。
Break的位置是我未添加过断点的位置(应该是代码当前执行到的行)。

这个是正常的,可以设置 launch.json 中的 stopOnEntry 来修改。 stopOnEntry的作用是 设置是否在调试器启动后立刻停止。

感谢。目前没有其他问题了:)

from luapanda.

stuartwang avatar stuartwang commented on May 12, 2024

感谢。目前没有其他问题了:)

也非常感谢提出问题。关于引用的问题我们会关注并尝试做一下异常处理~

from luapanda.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.