Sykje yn Support

Mij stipescams. Wy sille jo nea freegje in telefoannûmer te beljen, der in sms nei ta te stjoeren of persoanlike gegevens te dielen. Meld fertochte aktiviteit mei de opsje ‘Misbrûk melde’.

Learn More

Dizze konversaasje is argivearre. Stel in nije fraach as jo help nedich hawwe.

Can't debug JavaScript written under RequireJS with built-in Debugger

  • 4 antwurd
  • 13 hawwe dit probleem
  • 3 werjeftes
  • Lêste antwurd fan dmenssen

more options

Hi! I'm new to Firefox and I'm developing a website using this browser.

The JavaScript code written in our pages conform to the RequireJS standards. When I want to debug the code, I find that the new built-in debugger of Firefox can't enter the functions correctly.

For example, if I put a break point inside a function that is defined in a "define" function, the debugger only stops at the last line of the "define" function, and shows the information of all the global variables.

I really like the look and feel of the debugger, but it seems not working correctly.

See the picture of the first reply.

Bewurke troch tiden0614 op

Alle antwurden (4)

more options

This is the picture describing the problem.

The debugger stops at the last line of the "define" function instead of the point I want it to stop.

more options

You can try out the debugger in the latest Firefox Nightly release to see if it already works better in that version as the devtools are still being developed.

You can install multiple Firefox versions via a custom install in different installation folders and keep the current release version installed to be able to fallback to the release version in cases when the Nightly or Aurora build aren't working properly.

Do a custom install of each version in a different program folder and use the Profile Manager to create a new profile for this version, so make sure not to start Firefox after the installation has finished.

Create a desktop shortcut with -P "profile" appended to the target to launch each Firefox version with its own profile.
Note that the Aurora (28.0a2) and Nightly (29.0a1) build are updated daily and can be unstable being alpha releases.

See these mozillaZine KB articles for information:

more options

THX for the reply!

Although the appearance of the debugger changed (seems updated), the problem is still not solved. At least for the Mac version.

Anyway, I'm looking forward to future versions! I like this browser which possesses a lot of features that I can't find on other browsers.

more options

I'm having exactly this problem. Screenshot attached from Aurora, but I also tested and had the same issue in Nightly.

Would be happy to help with a test case or in any way I can.