10

Maybe Firebug or Opera, Google Chrome tools allows it. Where to find it? how to use?

Example: I click the button and want to see what Javascript code fired up after that action.

2 Answers 2

23

In Google Chrome, you can open Developer Tools (Ctrl+Shift+J)

Choose Profiles tab, choose Collect JavaScript CPU Profile, click Start

When finish, click Stop and see the progress log...

Sign up to request clarification or add additional context in comments.

3 Comments

The same thing in Firebug can be found through Console tab, Profile (click to start, click again to see report).
Thanks, works... a little confusing. But ok :) better to watch in tree mode zimagez.com/zimage/screenshot-04072012-094707pm.php
BTW it's possible to debug events like mouse click or timer tick with google chrome. See screenshot zimagez.com/zimage/screenshot-04102012-070517am.php
0

you can include firebug lite in your html .. that will enable you to debug javascript ..you can get it from here : http://getfirebug.com/firebuglite

3 Comments

right:) if i want to track unknown function inside stranger code.
best thing I would say is to put a breakpoint in the initial stage ie when the first function is getting called and just flow through the code or you can always use profile mode of firebug
It is possible to set breakpoints on events - like mouse click. Screenshot from Google Chrome zimagez.com/zimage/screenshot-04102012-070517am.php

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.