debugger shows old version of (JS) code
Categories
(DevTools :: Debugger, defect, P3)
Tracking
(Not tracked)
People
(Reporter: david.balazic, Unassigned)
References
(Blocks 2 open bugs)
Details
Attachments
(1 file)
20.43 KB,
image/png
|
Details |
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
Reporter | ||
Comment 1•5 years ago
|
||
This is true also for regular HTML and page text, not just JS. The debugger shows some old version of it.
Updated•5 years ago
|
Comment 2•5 years ago
|
||
Hey David, could you share a small test case?
Reporter | ||
Comment 3•5 years ago
|
||
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
Comment 4•5 years ago
|
||
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.
Reporter | ||
Comment 5•5 years ago
|
||
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)
Comment 6•5 years ago
|
||
Glitch should be capable of this -- thank you!
Updated•5 years ago
|
Updated•5 years ago
|
Updated•5 years ago
|
Comment 8•5 years ago
|
||
is it worth to change status to confirmed? there is duplicate, also this blocks other tickets.
Updated•5 years ago
|
Updated•5 years ago
|
Comment 10•5 years ago
|
||
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)
Updated•2 years ago
|
Description
•