Open Bug 1528595 Opened 5 years ago Updated 2 years ago

debugger shows old version of (JS) code

Categories

(DevTools :: Debugger, defect, P3)

65 Branch
defect

Tracking

(Not tracked)

UNCONFIRMED

People

(Reporter: david.balazic, Unassigned)

References

(Blocks 2 open bugs)

Details

Attachments

(1 file)

Attached image screenshot of problem

User Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64; rv:65.0) Gecko/20100101 Firefox/65.0

Steps to reproduce:

Tried to debug a web page I'm working on.

Actual results:

devtools debugger shows some old version of page

Expected results:

devtools shows actual page code

This is true also for regular HTML and page text, not just JS. The debugger shows some old version of it.

Component: Untriaged → Debugger
Product: Firefox → DevTools

Hey David, could you share a small test case?

Flags: needinfo?(david.balazic)

This seems to do it in my case:

  • have tomcat serve a JSP page (can be simple plain HTML, the server can be apache probably)
  • load the page in a tab
  • change the file on the server
  • load the into a private browsing tab, there:
    • ctrl-u to view source: show new version of source - CORRECT
    • press F12 to open Developer tools, then switch to the Debugger tab and open the page source: old version is shown - WRONG
Flags: needinfo?(david.balazic)

Hi - could you try reproducing the problem with a simple example we could use. We often try to make examples in glitch by forking this example. http://dbg.glitch.me/

I think the key detail might be private browsing.

Yes, it seems in normal browsing this does not happen.

I could not make a reproducable case on glitch.me, neither with local files.

Is there another similar service, where one can upload a HTML document and then edit/change/reipload it? A simple as possible?
(glitch me jumps from the editor to the test page a second after I type something, is that normal? Makes is hard to do any changes longer than a word or two)

Glitch should be capable of this -- thank you!

Priority: -- → P3
Priority: P3 → P5

is it worth to change status to confirmed? there is duplicate, also this blocks other tickets.

Blocks: dbg-70
Priority: P5 → P3
Whiteboard: [debugger-reserve]
No longer blocks: dbg-70
Whiteboard: [debugger-reserve]

I left a comment in bug 1438642 which has been marked as a duplicate of this one (it doesn't really sound like a duplicate to me, so I'm posting in both)

Severity: normal → S3
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Creator:
Created:
Updated:
Size: