Category Archives: debugger

Debug javascript.

Guide to Debug your java script files in google Chrome.


Ways to find debug console in chrome.
2. press F12 or inspect element
Below window will open up which contains various tabs.
 
Tab Details:
Elements: it shows HTML part of your page.
console : in case you want to run some statements.
sources : all your JavaScript files.
Network : shows all your Ajax and load requests.
Performance: you can monitor your page performance
How to debug:
To debug any javascript file just search your file by using ctrl+O or select your file from the left panel of your browser window.
To add debug point just click on row number as shown in the image below.
Now perform any operations on you webpage. Here I’m selecting value from the dropdown.

As soon as you select any value from the drop down. your request goes for processing and your request stop on debug point.
For this request in network tab there is an entry for it. which shows data retrieve from the request for more information you can select request header,response and preview tab.
After successful hit of the request your request will enter in the success part of your ajax request.
If you want to change and explore more values you can go to console tab.
if you want to change values of HTML element then go to element tab where you can change style of the page and can see change in real time.

67 total views, no views today

Eclipse debugger waiting to connect when running through remote application.


Many a time happen that you are trying to connect your eclipse debugger through remote application server like JBOSS and it always shows waiting to connect.
This happens because the port you are trying to connect is bind to some another application.

Find and listening port


1. Go to run
2. Type cmd
3. Write this command ———– 


netstat -ano | find "<port>"


*<port> you are trying to listen in my case this is 8080
you will get a list of process listening to that port




4. Kill all the task 


write this command 


taskkill /F /PID 7820


7820– This is the Id which you can see in the last coloumn


That’s it your port is free to use now.

80 total views, no views today