diff --git a/nasal_dbg.h b/nasal_dbg.h index fa36a56..49d39e5 100644 --- a/nasal_dbg.h +++ b/nasal_dbg.h @@ -7,7 +7,7 @@ class nasal_dbg:public nasal_vm { private: std::vector parse(std::string&); - uint16_t get_fileindex(std::string); + uint16_t get_fileindex(std::string&); void err(); void help(); void interact(); @@ -37,7 +37,7 @@ std::vector nasal_dbg::parse(std::string& cmd) return res; } -uint16_t nasal_dbg::get_fileindex(std::string filename) +uint16_t nasal_dbg::get_fileindex(std::string& filename) { for(uint16_t i=0;i\n" <<"\th, help | get help\n" <<"\tbt, backtrace | get function call trace\n" - <<"\tr, run | run program until break point or exit\n" + <<"\tc, continue | run program until break point or exit\n" <<"\tg, global | see global values\n" <<"\tl, local | see local values\n" <<"\tu, upval | see upvalue\n" - <<"\tquit, exit | exit debugger\n"; + <<"\ta, all | show global,local and upvalue\n" + <<"\tn, next | execute next bytecode\n" + <<"\tq, exit | exit debugger\n" + <<"