* switch statement has the last location in switch block which incurs an index error in BreakPoint insertion
* fix switch statement to have the start position after switch keyword
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* fix debugger to add breakpoint at the first line
* fix debugger not to insert any breakpoint when compiling dynamic code
* add some assertion code to detect undesirable cases
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
--command takes one string which contains commands to be executed at the start of the program.
The commands must be separated with semicolon.
Signed-off-by: Gergo Csizi gergocs@inf.u-szeged.hu
* Implement port option
* Set 'this' value correctly for eval in debugger
* Implement eval without stopping state
* Implement pumpDebuggerEvents function
* Remove useless variable m_thisExpressionIndex in class context information
Signed-off-by: Seonghyun Kim <sh8281.kim@samsung.com>
There was a crash in debugger when a not existing variable was printed or evaluated.
This patch will fix this issue.
Signed-off-by: Gergo Csizi gergocs@inf.u-szeged.hu
Since the debugger breakpoint generation requires a continuously increasing series of LOC indices
the statement node infos should be constructed in the beginning of their parsing functions.
Signed-off-by: Robert Fancsik <frobert@inf.u-szeged.hu>
The line info for each breakpoint can be calculated from the LOC index.
This patch resolves the problem, mentioned in #649.
Signed-off-by: Robert Fancsik <frobert@inf.u-szeged.hu>
Declarations with assignment should insert breakpoints, while
declarations without assignment should not.
Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
To use the Escargot Debugger test system.
First the Escargot needs to be build with the -DESCARGOT_DEBUGGER=1 option, then
run the ./tools/run-test.py with the escargot-debugger command
Signed-off-by: bence gabor kis <kisbg@inf.u-szeged.hu>