Closed Bug 1027072 Opened 10 years ago Closed 5 years ago

Debugger fails to discover scripts when they are added to body tag

Categories

(DevTools :: Debugger, defect, P3)

defect

Tracking

(Not tracked)

RESOLVED DUPLICATE of bug 1503422

People

(Reporter: miker, Unassigned)

References

(Blocks 1 open bug)

Details

(Whiteboard: [polish-backlog])

Attachments

(1 file)

Attached file Archive.zip
STR:
1. Open the attached Archive.zip and load scriptnotfound.html in your browser.
2. Open devtools

The script is not discovered by the debugger.
Summary: Script missing when added to body tag → Debugger fails to discover scripts when they are added to body tag
I seem to recall that Debugger.Source would solve this issue as well. James, can you confirm/deny this?
Flags: needinfo?(jlong)
I'm not sure my Debugger.Source will fix this. Once you open the devtools, the source is always listed, regardless if you close them, reload, and open again. This seems to be connected with how we lazily start the devtools somehow. My script will fix all eval'ed scripts and make them show up, but this is just a normal script, so I don't see how anything will change.

I have noticed this happened sometimes though, and I need to reload the page to get sources to show. Worth having a bug about it.
Flags: needinfo?(jlong)
Whiteboard: [polish-backlog]
Priority: -- → P2
Product: Firefox → DevTools
Blocks: dbg-sources
Priority: P2 → P3

I'd assume this is because the Source is GCed before the devtools is opened?

(In reply to Logan Smyth [:loganfsmyth] from comment #3)

I'd assume this is because the Source is GCed before the devtools is opened?

Yes, it is.

Status: NEW → RESOLVED
Closed: 5 years ago
Resolution: --- → DUPLICATE
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: