Giter Site home page Giter Site logo

调试器没有找到文件 lua.lua 。 请检查launch.json文件中lua后缀是否配置正确, 以及VSCode打开的工程是否正确 about luapanda HOT 4 OPEN

Zheng-Hongyi avatar Zheng-Hongyi commented on June 19, 2024
调试器没有找到文件 lua.lua 。 请检查launch.json文件中lua后缀是否配置正确, 以及VSCode打开的工程是否正确

from luapanda.

Comments (4)

Zheng-Hongyi avatar Zheng-Hongyi commented on June 19, 2024

“调试器没有找到文件 lua.lua 。 请检查launch.json文件中lua后缀是否配置正确, 以及VSCode打开的工程是否正确”,然后在打断点的地方不会停住

from luapanda.

stuartwang avatar stuartwang commented on June 19, 2024

看起来是因为调试器获取到的文件名是lua, 这个名称应该是错误的。
加载lua文件时,接口会要求传入一个文件名,这个名称最终被调试器hook捕获,作为断点判断的依据。可以看一下框架这里传入的文件名是否有错误
image

from luapanda.

sweezt avatar sweezt commented on June 19, 2024

我也遇到了同样的问题,后来发觉是LuaConst.cs文件下面的openLuaDebugger = false没有打开,把这个变量设为true就行了,但是我在我另一台电脑上这样操作以后又出现了新的问题,调试的时候提示无法加载源len.lua,并会报一个“Lua文件名不匹配Lua/libpdebug.lua"的错

from luapanda.

lixiandea avatar lixiandea commented on June 19, 2024

我找到了这个问题的bug修复,一般情况下是你的luaFileExtention配置没有带上文件的分隔符,导致

function this.changePotToSep(filePath, ext)
    local idx = filePath:find(ext, (-1) * ext:len() , true)
    if idx then 
        local tmp = filePath:sub(1, idx - 1):gsub("%.", "/");
        filePath = tmp .. ext;
    end
    return filePath;
end

这个方法解析出来的路径是类似于dir/lua的形式。进而变成了文件名为lua.lua

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.