Open nvmsocool opened 3 years ago
ok, it seems like there are some specific project settings that need to be set when compiling the lua dll, starting from your sample project and replacing the 5.3 lua with 5.1 and recompiling seems to get the breakpoints working in a sample project, but still not my project, I will keep messing with it...
Hello, can you show the call stack with the name of the ldo.c function that is displayed?
Sure:
[External Code]
> lua51.dll!luaD_call(lua_State * L, lua_TValue * func, int nResults) Line 378 C
lua51.dll!lua_call(lua_State * L, int nargs, int nresults) Line 782 C
[Inline Frame] TestApp.exe!LuaPlus::LuaState::Call(int) Line 770 C++
TestApp.exe!MyApp::ScriptEventListener::CallLuaFunction(LuaPlus::LuaObject & eventData) Line 50 C++
TestApp.exe!MyApp::ScriptEventListener::HandleEvent(const MyApp::Event * event) Line 36 C++
[Inline Frame] TestApp.exe!MyApp::EventManager::TriggerEvent::__l2::<lambda_f5f0a79b761419670fd1d3b86f8a46b2>::operator()(std::pair<unsigned int const ,MyApp::EventListener *> &) Line 133 C++
[Inline Frame] TestApp.exe!std::for_each(std::_Tree_iterator<std::_Tree_val<std::_Tree_simple_types<std::pair<unsigned int const ,MyApp::EventListener *> > > >) Line 92 C++
TestApp.exe!MyApp::EventManager::TriggerEvent(MyApp::Event * event) Line 130 C++
TestApp.exe!MyApp::App::MainLoop() Line 475 C++
TestApp.exe!WinMainTry(HINSTANCE__ * hInstance, HINSTANCE__ *) Line 278 C++
TestApp.exe!wWinMain(HINSTANCE__ * hInstance, HINSTANCE__ * hPrevInstance, wchar_t * lpCmdLine, int nCmdShow) Line 292 C++
[External Code]
I have managed to get it to hit one breakpoint by compiling the LUA51 source code with the same project settings that your sample has with the following stack:
ntdll.dll!_NtWaitForMultipleObjects@20() Unknown
KernelBase.dll!WaitForMultipleObjectsEx() Unknown
KernelBase.dll!_WaitForMultipleObjects@16() Unknown
sixense.dll!01c211b8() Unknown
[Frames below may be incorrect and/or missing, no symbols loaded for sixense.dll] Unknown
[External Code]
[Inline Frame] TestApp.exe!Controller::ShutdownControllers() Line 319 C++
TestApp.exe!Controller::Disconnect() Line 154 C++
TestApp.exe!MyApp::VirtualApp::~VirtualApp() Line 353 C++
[External Code]
TestApp.exe!wWinMain(HINSTANCE__ * hInstance, HINSTANCE__ * hPrevInstance, wchar_t * lpCmdLine, int nCmdShow) Line 314 C++
[External Code]
but when I go to step into the code or continue to another breakpoint I get a "Source not Available" page
Hey there, just wanted to say thanks for sharing this plugin, if I can get it working it will save me a ton of time!
The issue I am experiencing is that I can't get the breakpoints to appropriately fire using VS 2017 and LUA 5.1.5. The sample project works, but when the breakpoints trip in my project it opens up Ido.c... I am using a pre-built LUA dll (built directly from the source, I believe), and I had to copy my lua51.pdb file into the executable folder.
Here is the top of my log: lua_dkm_debug_log.txt (Note: I removed a lot of the duplicate messages and redacted some paths) Some things I noticed comparing it to the working log:
Any ideas?
Edit: in the current version the file status is 'Loaded from file'