Skip to content
This repository was archived by the owner on Oct 12, 2022. It is now read-only.

support sourcemaps in vm.runIn*Context#22

Closed
hayes wants to merge 1 commit into
microsoft:masterfrom
yavascript:master
Closed

support sourcemaps in vm.runIn*Context#22
hayes wants to merge 1 commit into
microsoft:masterfrom
yavascript:master

Conversation

@hayes

@hayes hayes commented Dec 9, 2015

Copy link
Copy Markdown

Currently the node debugger requires that you compile your code with sourcemaps and save the compile source to the filesystem in order for sourcemaps to work.

It would be really cool, and useful, if it could also support runtime compilation. This would allow launching an application with a tool that patches require to automatically compiles files as they are required. It could also allow debugging of dynamically generated code (but thats a more complicated topic).

I spiked out something that works. It probably still needs some work, but wanted to get some initial feedback, and see if it is something you would consider merging into the debugger before I do too much more work on it.

I also created a minimal test case to demonstrate what I am trying to support.

clone: https://github.com/yavascript/runtime-compile-debug-example
npm install. start debug server, and set a breakpoint in foo.es6. run the launch script. this will not break on master, but should work on my branch.

@weinand

weinand commented Dec 15, 2015

Copy link
Copy Markdown
Contributor

@hayes This looks very interesting. I hope to find some time over the holidays to try this... Right now we are finishing the December release.

@weinand weinand self-assigned this Dec 9, 2016
@hayes

hayes commented Jan 10, 2017

Copy link
Copy Markdown
Author

This is very out of date, and probably can be made to work much better with the node2 debugger. Going to close this and create a new PR if I ever find a need or have the time

@hayes hayes closed this Jan 10, 2017
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants