-
Notifications
You must be signed in to change notification settings - Fork 517
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
IDE can't debug 64 bit application (Windows) #756
Comments
@Zueuk, you shouldn't change the library to a 64bit one as it's used by ZeroBrane Studio itself (and since it's a 32bit application, you get the error); you should put the 64bit libraries in the folder of your application and set the I'll update the documentation to cover this. |
Instruction unclear, getting "lua module 'copas' not found" now. I'm using Torch located in C:\SomePath\Torch, which has luajit.exe in Torch\bin, but apparently I have to launch it using Torch\luarocks\systree\bin\th.bat |
@Zueuk, this is probably because you replaced whatever path/cpath you had, but you only need to prepend the cpath to 64bit luasocket libs in your application to make sure they are loaded instead of 32bit libs: package.cpath="d:/path/to/64bit/clibs/?.dll;"..package.cpath
Doesn't matter where you put it as long as it's the same that you set in |
Ok... Apparently I don't understand something about Lua debugging. Another thing: I printed the existing package.cpath, and it already has a lot of Torch-related directories in it. I tried putting the 64-bit core.dll in these, but the result is the same as before. |
You are correct; I assumed you are starting the application from outside of the IDE or from the IDE using Run/F6 command. It's not going to work the way I suggested when you are using F5/Debug, so the current workaround is to use Run command (and include
This should work as long as the path with your 64bit core.dll is the first one being picked up by the |
Aha! So it was looking for "socket/core.dll", not just the dll. |
Sounds good; will make sure it's covered in the documentation. |
@xianzhiliao, you should not be replacing modules in the IDE folders as some of them are used by the IDE itself (and in this case you replaced a 32bit module with a 64bit version, which caused a conflict and the error). You should put the modules into its own folder where your application can access them. |
I had an error like this
and fixed it by replacing the said dll with a 64-bit version provided in the issue #500.
This worked for some time, but now I have a similar error every time I try to start ZBStudio:
![default](https://cloud.githubusercontent.com/assets/5717247/24871451/b019d70a-1e2a-11e7-8839-360c910a0ff1.png)
Restoring the old dll makes it work, but obviously debugging now gives the same error as before.
The text was updated successfully, but these errors were encountered: