Comments (6)
Quoting @andysterland from #16
The adapter doesn't yet implement them all but they are all on the short term to do list as the platform in Edge has the capabilities (though setScriptSource only works when not at a breakpoint).
Does this mean the following scenario will not work?
- Set breakpoint at line 0 of myscript.js
- Rewrite myscript.js with setScriptSource
- Resume execution
This is somewhat key to the feature being useful, otherwise you'll get unreachable code in that it will have closures you cannot reach and missing captures.
from edge-diagnostics-adapter.
@caspervonb you are correct.
Though with any live editing scenario, at a breakpoint or not, you can always get into a state that is nothing like would happen if the edit was applied and the page reloaded. Specifically changing the code doesn't' change the DOM nor does it reverse any affect the code had. Say, if you had a global function named foo
and then deleted the code for it the function would still be there and could still be invoked. As you mention closures further complicate the matter :(.
But, you are very right the really useful scenario is when you hit an exception, spot the typo, change it and then set the statement (set statement is awesome!) back one and continue. Alas, it's just not supported in Chakra right now :(.
from edge-diagnostics-adapter.
This is somewhat key to the feature being useful, otherwise you'll get unreachable code in that it will have closures you cannot reach and missing captures.
I was referring to an explicit case in my use case, which is basically rewrite scripts as they are parsed to inject instrumentation)
So to be clear, Chakra's edit and continue feature, cannot actually do edit and continue? What can it do then?
from edge-diagnostics-adapter.
Chakra has edit on idle. Not edit and continue. They are working on having edit and continue but it requires a large refactor on their side to make it work.
from edge-diagnostics-adapter.
So basically it takes effect on the next call rather than the current call stack?
from edge-diagnostics-adapter.
@caspervonb exactly. The edit itself won't be carried out till the engine goes back to idle, that is the current stack finishes executing.
from edge-diagnostics-adapter.
Related Issues (20)
- Deprecated module usage HOT 1
- msbuild fails HOT 3
- Add travis.yml to validate that at least typescript builds work HOT 1
- Add some tests to edge diagnostics adapter
- NPM distribution is broken due to removed files-attribute in package.json HOT 2
- Building native extension throws exception HOT 4
- Breakpoints fails to be set for some files
- Page.navigate returns wrong frameId HOT 1
- Process can't be killed with CTRL+C HOT 2
- Roadmap? HOT 1
- Is there a way to create tabs from the API?
- Build Addon using VS2017 HOT 2
- Roadmap, project support and uses. HOT 1
- Fails to attach to 64 bit tabs by returning HTTP 400 on WS connections HOT 4
- New NPM release? HOT 2
- cmd line output shows wrong port HOT 2
- Create release 0.6.0 with signed binaries HOT 1
- Attemping to attach fails HOT 1
- TypeError when trying to connect to open tab HOT 1
- This repo is missing important files HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from edge-diagnostics-adapter.