I want to debug the player creation, or birth process. I figure putting a breakpoint at line 43 in modules/example/class/Player.lua, right at the start of the Player:init function should do the trick. First, I need to attach the remdebug process to T-Engine, and decided to add the following code to engine/Birther.lua after the initial requires and before the module call:
Code: Select all
require "remdebug.engine"
remdebug.engine.start()
Second, I believe that I need to set up remdebug, specifically basedir. I am running Mac OSX, so everything is contained within the app directory and I think that is where I need to set the base directory. This could be where I am going wrong, but I am executing the following in the remdebug process:
Code: Select all
> basedir Applications/Games/T-Engine.app/Contents/Resources/game/
Code: Select all
> setb modules/example/class/Player.lua 43
> listb
Applications/Games/T-Engine.app/Contents/Resources/modules/example/class/Player.lua: 43
> run