Last modified: 2011-02-17 20:35:18 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T29466, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 27466 - Unable to debug scripts neither with FB nor with Opera Dragonfly
Unable to debug scripts neither with FB nor with Opera Dragonfly
Status: RESOLVED WORKSFORME
Product: MediaWiki
Classification: Unclassified
ResourceLoader (Other open bugs)
1.17.x
All All
: High critical (vote)
: ---
Assigned To: Trevor Parscal
http://pl.wikipedia.org/w/index.php?t...
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2011-02-16 19:35 UTC by Nux
Modified: 2011-02-17 20:35 UTC (History)
2 users (show)

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description Nux 2011-02-16 19:35:23 UTC
Steps:
1. Open example URL.
2. Open FB Scripts panel.

Results:
1Failed to load source for sourceFile scriptTag /w/index.php?title=MediaWiki:Vector4monobookies.js&action=raw&ctype=text/javascript script.tags( )

Steps:
1. Open example URL.
2. Open Opera Dragonfly.
3. Click "Reload to..."
4. Set a breakpoint e.g. at line 53.
5. Reload page.

Results:
No breakpoints are set.

Having no ability to debug code is like taking a journey about 5 years back and crushing into today's complex scripts... Not a nice thing to weak up too ;-).
Comment 1 Nux 2011-02-16 19:40:33 UTC
Oh and yes, javascript:alert(debug) gave me true (though I had to clear my browsers cash with CTRL+SHIFT+DEL i FF).
Comment 2 Brion Vibber 2011-02-17 00:07:56 UTC
Setting breakpoints and having it break on them on subsequent run works for me in Firefox 4.0b11 with Firebug 1.7a11 (except when Firebug's script debugging is entirely broken by some bug that sometimes makes it claim there's no JavaScript on the page).
Comment 3 Brion Vibber 2011-02-17 00:15:02 UTC
Seems ok in Opera 11.01 too. (Tested both on Mac OS X 10.6.6) Is there a very specific piece of code where the breakpoints don't work?
Comment 4 Nux 2011-02-17 08:36:26 UTC
The only way to break on a script for me was to insert a "debugger" statement. So I guess it's not that bad as I originally thought.

Loading any scripts sources loaded with importScript still doesn't work for me in: Mozilla/5.0 (Windows; U; Windows NT 6.1; pl; rv:1.9.2.13) Gecko/20101203 Firefox/3.6.13 (.NET CLR 3.5.30729).

Note that scripts from bits load fine. I'll try to ask someone from FB team to comment.

(In reply to comment #3)
> Seems ok in Opera 11.01 too. (Tested both on Mac OS X 10.6.6) Is there a very
> specific piece of code where the breakpoints don't work?

Hm... I was unable to set any breakpoint yesterday at MediaWiki:Vector4monobookies.js in Opera/9.80 (Windows NT 6.1; U; pl) Presto/2.7.62 Version/11.01. Strangely it works now. Maybe it works because the script was altered now and it was something with cache? I'll try to test more thoroughly later today.
Comment 5 Nux 2011-02-17 20:35:18 UTC
Not sure what changed but it started to work now. Opera thing must have been just a cache thing.

FB thing is a bit strange. FB shows me a lot of different scripts. The first ones that appear on the list are those that say "Failed to load source for sourceFile scriptTag". Now that I've checked it seems more likely to be a problem with FB anyway.

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links