Posts

Showing posts with the label debug

Enable JavaScript debug menu in Safari in Mac OS

Image
Apple Safari in Mac does have a hidden Debug menu that is useful for finding out the JS errors in the page. But, this is disabled by default. You can easily enable this using the following command in the terminal when Safari is not running. Terminal % defaults write com.apple.Safari IncludeDebugMenu 1 Now, open Safari and you can see an additional menu on the top. You can always disable this menu by replacing the 1 at the end of the command with 0 and executing again.

View debug/log information inside Eclipse with NTail

Image
Implementing Debugging and Logging functionality in your application will help you a lot when tracing the details of an error - while developing and also after deployment. There are lot of libraries out there like log4j , which you can integrate with your app for easier log management. Log4j/log4net have the provision to either log the information to a file or send email . So, will it be helpful if you can directly see the logs in Eclipse that will get updated whenever the log file gets updated ? Using NTail, you can achieve this. The content of the log file will be shown in a window inside Eclipse which will automatically get updated. Steps: