Skip to content

Add TypeScript proxy to support JrS debugging w/ Chrome DevTools #4

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 24, 2018

Conversation

grgustaf
Copy link
Contributor

Basic debugging features of step over, step in , step out, continue, stop,
add/remove breakpoints, provide backtrace at breakpoint, and evaluate watch
expressions are all working.

A few low-hanging features still missing:

  • passthrough of output to CDT console
  • reporting exceptions
  • verbosity control

Other features of CDT will require enhancement to JrS debugger, e.g.:

  • scope chain
  • inspectable eval output (e.g. JSON, not just strings)
  • memory analysis
  • profiling

Significant level of unit testing provided via jest.

Thanks to Martijn The martijn.the@intel.com for initial TS code skeleton,
some unit tests, 'step out' feature, and tons of review!

JerryScript-DCO-1.0-Signed-off-by: Geoff Gustafson geoff@linux.intel.com

@grgustaf
Copy link
Contributor Author

grgustaf commented Apr 17, 2018

@martijnthe you could check my attempt to merge the package.json and README.md to make sure they make sense.

Also, Travis failed I think because we haven't done yarn install. Not sure off-hand where the right place to put that is.

@martijnthe martijnthe self-assigned this Apr 17, 2018
@martijnthe martijnthe added the Feature New feature label Apr 17, 2018
@martijnthe
Copy link

martijnthe commented Apr 17, 2018

Also, Travis failed I think because we haven't done yarn install. Not sure off-hand where the right place to put that is.

I had added yarn which is the shorthand for yarn install.
The yarn.lock file is missing, that's why it's not working, I think.

@martijnthe
Copy link

@knightburton we've moved over the PR from jerryscript-project/jerryscript#2205 to here. Can you take another review pass? I've asked @akosthekiss to add you to the team. Thanks.

@martijnthe martijnthe changed the base branch from initialize to master April 17, 2018 13:29
@martijnthe
Copy link

@grgustaf actually, there's more missing:

  • tsconfig.json
  • tslint.json
  • yarn.lock
  • jerry-debugger.sh

@grgustaf grgustaf force-pushed the initial-code-drop branch from e0b0fb1 to 86d39b4 Compare April 17, 2018 16:02
@grgustaf
Copy link
Contributor Author

Yep, missed those files - just updated with the additions.

@grgustaf grgustaf force-pushed the initial-code-drop branch from 86d39b4 to 5fb883c Compare April 17, 2018 16:46
@martijnthe
Copy link

LGTM

Copy link
Member

@knightburton knightburton left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@martijnthe I've ran through the changes again.

this.delegate.onMessage(new Uint8Array(data));
}

send(data: ArrayBuffer) {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe I am wrong, however I think this data parameter should be Uint8Array.

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yeah, you're right, thanks for catching.
I'm a bit surprised the TypeScript compiler didn't throw an error about this.

@grgustaf will you fix it up?

@grgustaf
Copy link
Contributor Author

Thanks yeah I'll be back tomorrow and will take care of that, sorry for the delay.

Basic debugging features of step over, step in , step out, continue, stop,
add/remove breakpoints, provide backtrace at breakpoint, and evaluate watch
expressions are all working.

A few low-hanging features still missing:
- passthrough of output to CDT console
- reporting exceptions
- verbosity control

Other features of CDT will require enhancement to JrS debugger, e.g.:
- scope chain
- inspectable eval output (e.g. JSON, not just strings)
- memory analysis
- profiling

Significant level of unit testing provided via jest.

Thanks to Martijn The <martijn.the@intel.com> for initial TS code skeleton,
some unit tests, 'step out' feature, and tons of review!

JerryScript-DCO-1.0-Signed-off-by: Geoff Gustafson geoff@linux.intel.com
@grgustaf grgustaf force-pushed the initial-code-drop branch from 5fb883c to 1836ff1 Compare April 20, 2018 17:45
@grgustaf
Copy link
Contributor Author

Fixed that line, thanks...

@martijnthe
Copy link

LGTM, thanks.

@knightburton OK now?

@knightburton
Copy link
Member

@martijnthe @grgustaf Yes, all good! :) LGTM

@martijnthe
Copy link

@zherczeg @akosthekiss @yichoi Do you have an interest in reviewing this?
If not, we'll go ahead and merge this. Myself and @knightburton have reviewed it already and have +1'd it.

@akosthekiss
Copy link
Member

@martijnthe I've skimmed through the patch, and as much as an expert I am with TS, the patch LGTM

@zherczeg
Copy link
Member

You can setup your own reviewing policies for this project. The only requirement is apache 2.0 license and DCO for clear reusability.

@grgustaf
Copy link
Contributor Author

OK, thanks...

@grgustaf grgustaf merged commit ed66d7d into jerryscript-project:master Apr 24, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature New feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants