I remember I could connect love2d to the IDE I used and debug lua just fine with it. Which IDE you were using?