Add breakpoint on the start of the first source code line so that module file imports can be debugged.
Also extend debugger test script since Escargot uses realpaths with modules.
Signed-off-by: Ádám László Kulcsár <kuladam@inf.u-szeged.hu>
Processing VSCode watches skips waitForResolvingPendingBreakpoints
(previously having multiple watches in VSC would call this when
processing the first watch, which would process pending messages while
trying to wait for break point changes while in eval mode (not in
waiting mode) and cause and Invalid message error and the closure of the
debgger connection when hitting the second watch message)
Allow '*.mjs' files in the python debugger
Add watches to the python debugger, add test
Signed-off-by: Máté Tokodi mate.tokodi@szteszoftver.hu
* 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>