vscode-firefox-debug icon indicating copy to clipboard operation
vscode-firefox-debug copied to clipboard

Time Travel Debugging

Open rugk opened this issue 5 years ago • 11 comments

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:

rugk avatar Aug 02 '18 16:08 rugk

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

hbenl avatar Aug 03 '18 19:08 hbenl

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 avatar Aug 03 '18 20:08 rugk

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

rugk avatar Aug 03 '18 20:08 rugk

hello. was this implemented?

crazyquark avatar Aug 01 '19 14:08 crazyquark

@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.

hbenl avatar Aug 02 '19 11:08 hbenl

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

jasonLaster avatar Aug 21 '19 20:08 jasonLaster

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 avatar Sep 17 '19 19:09 jasonLaster

Here is a useful link:

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

jasonLaster avatar Sep 18 '19 00:09 jasonLaster

supportsStepback will do this

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

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

jasonLaster avatar Sep 18 '19 01:09 jasonLaster

Hey @jasonLaster what happened with this?

jasonwilliams avatar Jul 16 '20 12:07 jasonwilliams

We ended up taking web replay out of firefox.

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

jasonLaster avatar Jul 16 '20 13:07 jasonLaster