firefox-devtools / vscode-firefox-debug

VS Code Debug Adapter for Firefox
https://marketplace.visualstudio.com/items?itemName=firefox-devtools.vscode-firefox-debug
MIT License
397 stars 66 forks source link

Time Travel Debugging #87

Open rugk opened 6 years ago

rugk commented 6 years ago

Firefox Nightly supports time travel debugging, see https://wiki.mozilla.org/Time_Travel_Debugging and https://www.bleepingcomputer.com/news/software/firefox-is-testing-time-travel-debugging/.

So you may want to do so, too. :smile:

hbenl commented 6 years ago

That sounds awesome. I hope they make it available on other platforms soon, because I don't have a Mac...

rugk commented 6 years ago

AFAIK it's not limited to Mac, just to FF Nightly. Bleepingcomputers just wrong stupid stuff… :laughing:

https://gist.github.com/jasonLaster/1e220992c294a571dd9b59abd084ccf2#getting-started

At least i tried it on Linux and I had to create the about:config value, but the recording button was already there. Could not find out how to actually travel back then thopugh.

rugk commented 6 years ago

Okay, wrong: As stated here only the menu is added on Linux, the replay itself is really currently limited to Mac OS… well… I hope we'll get it soon. :smi

crazyquark commented 5 years ago

hello. was this implemented?

hbenl commented 5 years ago

@crazyquark No, this is only available in Firefox for Mac and I haven't seen any news about this for a year... If this becomes a standard feature on all platforms, I will add support for it to this adapter.

jasonLaster commented 5 years ago

Hi, here is the current roadmap it is currently experimental and not planned for release any time soon.

jasonLaster commented 5 years ago

It would be great to add support for replay in the adapter.

The way I see this working, in vscode's config you could enable replay, which would open firefox with recording available. When replay is enabled, vs code would add rewind and step back.

Here is a replay bug for adding any firefox functionality we need https://bugzilla.mozilla.org/show_bug.cgi?id=1581948

NOTE: I believe vs code has support for rewind and step back.

jasonLaster commented 5 years ago

Here is a useful link:

https://github.com/microsoft/vscode-debugadapter-node/blob/master/protocol/src/debugProtocol.ts#L747-L754

jasonLaster commented 5 years ago

supportsStepback will do this

https://github.com/microsoft/vscode-debugadapter-node/blob/master/protocol/src/debugProtocol.ts#L1353

https://twitter.com/jasonlaster11/status/1174091521345257473

jasonwilliams commented 4 years ago

Hey @jasonLaster what happened with this?

jasonLaster commented 4 years ago

We ended up taking web replay out of firefox.

Brian and I are working on something similar outside of mozilla though.