- Use routing table for request dispatch in DebuggerHttpRouter, for
handling choosing which debugger stack to use based on the http
upgrade request:
- DebuggerEscargot for the python debugger and VSCode
- DebuggerDevtools for connecting to Chrome Devtools
- Parse mesasges with 16bit message size
- Reply to the first few messages chrome sends
- Refactor Debugger:
- Rename DebuggerRemote to DebuggerEscargot
- DebuggerEscargot and DebuggerDevtools inherit from
DebuggerTcp which inherits from Debugger
- Add debugger info to README.md
Signed-off-by: Máté Tokodi <mate.tokodi@szteszoftver.hu>
* shared structure `BreakpointLocationsInfo` between debuggger and ByteCodeBlock can cause memory leaks
* correctly delete each `BreakpointLocationsInfo`
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* ErrorThrowCallback is invoked when an Error is thrown
* ErrorThrowCallback overwrites the result of ErrorCreationCallback
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* if ErrorCreationCallback is registered and this callback already inserts `stack` property for evert created ErrorObject,
we just ignore adding `stack` data into ErrorObject
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* PromiseRejectCallback is invoked when a Promise is rejected but it does not have any reject handler
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
If Escargot is compiled with debugger but run without the debug server
then the Escargot will crash. This patch will fix this problem.
Signed-off-by: Gergo Csizi gergocs@inf.u-szeged.hu
- The debugger callbacks are implemented as class
- Using std::vector for storing data
Signed-off-by: Zoltan Herczeg zherczeg.u-szeged@partner.samsung.com
* rename data related to PropertyHandler
* refactoring ObjectWithPropertyHandler to handle NamedProperty and IndexedProperty both
* add cctest
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* update to common PropertyHandler data and strucuture to represent IndexedProperty and NamedProperty both
* check property name in each ObjectWithPropertyHandler method
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* usually property name is delivered as Value format
* replace `TemplatePropertyName` with `ObjectStructurePropertyName` to handle Value format nicely
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* add simple syntax checker method in parser to check parameters and body string
* fix it to check parameters and body string seperately
* add several TCs for this patch too
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* according to api, ObjectTemplate should inherit its parent's NativeDataAccessorProperties of InstanceTemplate too
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>
* divide BackingStore structure into NonShared and Shared
* update BackingStoreRef API to clarify its usage
Signed-off-by: HyukWoo Park <hyukwoo.park@samsung.com>