You can run Gideros Player directly from Visual Studio Code. If your project is a game client, you can call it every frame. To enable the Lua program to respond to commands from the debugger, such as setting a pause or a breakpoint, while running, set the following code to be called at appropriate intervals. If the debugger is not attached, enter here.Įnabling Debug Commands to be Processed During Execution Paste the following code at the location where you want to handle the error. Setting to Enter the Debugger When an Error Occurs ![]() Set the breakpoint by pressing F9 at the appropriate location in the program to be debugged. Open the folder that contains the program you want to debug in Visual Studio Code,Īnd edit the debugging settings accordingly. Print('debuggee start ->', startResult, breakerType) Local startResult, breakerType = debuggee.start(json) Local debuggee = require 'vscode-debuggee' Paste the following code into your program to run after all the Lua source code is loaded.ĭepending on which JSON library you are using, you may need to modify your code accordingly. Debugger Connectionĭownload a and put it in your project. If you have used mobdebug, you are familiar with it. In order to debug Lua programs with Lua Debugger, you have to put a in the program to be debugged.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |