1.在调试torch7时,在interpreter上要记得选择torch7.lua的解释器。
2.在适用zerobrand时,可通过修改user.lua文件来配置zerobrand的代码风格,debug模式下可调试,以及注意要在目录下呼叫zbstudio启动,才可保证不会找不到torch.lua的情况。
配置文件如下:
--[[--
Use this file to specify **User** preferences.
Review [examples](+/opt/zbstudio/cfg/user-sample.lua) or check [online documentation](http://studio.zerobrane.com/documentation.html) for details.
--]]--
styles = loadfile('cfg/tomorrow.lua')('TomorrowNight')
-- to have 4 spaces when TAB is used in the editor
editor.tabwidth = 2
-- to have TABs stored in the file (to allow mixing tabs and spaces)
editor.usetabs = true
-- to disable wrapping of long lines in the editor
editor.usewrap = false
-- to force execution to continue immediately after starting debugging;
-- set to `f