JavaScript Logging Library (with log levels) [closed] - mobile

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 8 years ago.
Improve this question
Can you recommend an easy JavaScript logging (with log levels) library?
It will be good if I can see logs when testing my application with mobile devices.

Try loglevel (full disclosure: I'm the creator of loglevel).
It's an easy minimal logging library including only the bare essentials (i.e. log levels and little else), and underneath it's (very carefully, for compatibility) internally just logging to console.log and friends where available, so output will end up in the system log, as described in tkone's answer.
For developing you should also check out weinre, which lets you get directly at the console of your app running on live devices, for debugging etc (hosted public instance available at debug.phonegap.com, or you can run it locally yourself to make it a little quicker).

Have a look at Log4JS
You can also use console.log on both Android and iOS.
On iOS, turn on developer tools from the Safari options in the Settings app. You'll have to keep your messages short though since it truncates. More details from Apple here
For Android install the Android SDK and install any of the SDK software packages from [sdk base]/tools/android.
Plug your phone into your computer andgo to [sdk base]/platform_tools/ and run adb devices. You'll see which Android devices are connected. If there is only one, you can just run the logcat command adb logcat. I find it helpful to use grep adb logcat | grep -i console and you'll see all the console.log messages in your website. More details from the Android developer site here

Log.js is a JavaScript logging framework with log levels. I have created this one because all other JS logging frameworks I have found did not satisfy me.
Usage:
var myLog = LogJS.get({name: "MyLog", level: "trace", enabled: true});
myLog.info("Hello, Log");
If you pass a message as a function - it will be evaluated only if appropriate logging level is enabled:
myLog.trace(function() {
return "Current log level is: " + myLog.getLevel();
});
If you don't want to bother with creating a new logger and just want to log something quickly, the here is a default logger LogJS.root that can be used the same way:
LogJS.root.error("Something bad...");

Related

In visual studio 2015 ,Can i make a software/App which can run on any devices and any operating systems? [closed]

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 6 years ago.
Improve this question
I have knowledge in Asp.net technology and recently i have just completed a Universal windows platform app which run on any windows-10 device.But now i want to a make software which can run on any devices (Desktop/Tabulate/Mobile and all.) and any of the operating system (ios,android,Windows).
My question is that ,Is Microsoft provide ant feature in visual studio so i can make a software in visual studio which will run on each and every devices and operating system.
I just recently read a blog of Apache Cordova ,Visual studio code and also read about angular.js and node.js and react.
I also hear about Atom editor so any one please guide me and suggest a better way to start a new application.
I think it will be available in the future. It's not only something can run on Desktop/Tablet/Mobile. The important is which Operating System where the application can be run. Now we can use C# for Universal App run on Windows, or Xamarin for native mobile app run on iOS, Android and so on. But we cannot use C# for building application run on Ubuntu and MacOS.
Currently, there is no super language as your expectation. But if you want to make a jump start for your idea which can be run on a lot of devices, you can take a look at below technol
Electron - Compatible with Mac, Windows, and Linux, Electron apps build and run on three platforms with JavaScript, HTML, and CSS.
Xamarin - Xamarin apps are built with standard, native user interface controls using C# on iOS, Android, Mac.
Apache Cordova - Mobile apps with HTML, CSS & JS. Target multiple platforms with one code base. Support iOS, Android, Windows Phone and so on.
Native Script - NativeScript is a runtime that lets you build native iOS, Android using JavaScript code.

Is it possible to create an iOS build in CodenameOne without spending 99$/year? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about programming within the scope defined in the help center.
Closed 5 years ago.
Improve this question
Is it possible to create an iOS build in CodenameOne without Apple certificates? Can I install the .ipa file onto my iPad. I am a beginner and $99/y is just too much for merely getting my feet wet! Any workarounds?
Because of the way Codename One works you can just test on Android and then purchase the $99 subscription when you are ready to move to iOS. You will need to buy it anyway regardless of whether you use xcode or not.
Apple didn't allow building on xcode without a certificate until version 7+ (we launched Codename One when version 4 was new). As a workaround we let people use our certificate but this meant they needed to jailbreak their iphone. This also created a lot of issues in our build process due to the complex set of scripts.
With version 7 Apple introduced the ability to build without the certificate but that only works if you have the device physically connected with a cable and have xcode & a Mac. Both of these aren't required for Codename One.
Yes you can, just install Xcode 7 from the Mac App store:
https://itunes.apple.com/us/app/xcode/id497799835?mt=12
Once it downloads, run the app and go to the settings:
click Accounts
click the + in the lower left and add an Apple ID
enter a personal Apple ID, the one you use for the App Store is fine to reuse
When you build an app for iOS, connect the iOS device and choose that AppleID to sign the app when asked.

Best gui for remote gdb [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 7 years ago.
Improve this question
I know this question has been brought up before but it was mostly in respect to gdb for a program running on the local machine.
I've had some success with eclipse-cdt but it only seems to work occasionally. Supposedly Insight was previously used to debug (this embedded x86 board) but it seems to be dead.
I only need C debugging not C++. If possible I would prefer to connect through gdbserver (as that is on the advice and I connect to it through the command line all the time) but if you think putting gdb or ssh on the device and using it through those is better please mention those solutions also.
P.S. The version of gdbserver on the device is 7.1 it would be nice if the solution can work with a compatible version of gdb but I might be able to install a different gdbserver version.
I'd recommend eclipse Indigo it has built-in support for remote debugging applications via gdbserver. I just don't know where the source code has to be located for it to work.
Sinec it uses the MI interface of gdb it should work as any other interface that interacts with gdb.
I recommend trying out Qt Creator. It's cross-platform, has pretty good "code insight" features, and is a hell of a lot lighter-weight than Eclipse. It is a full IDE, not just a debugger front-end. It does require a gdb built with python support (client only, I think), but does come with it in its cross-platform installer. It is definitely more geared to developing C++/Qt applications, but does support generic Makefile and CMake projects, and I use it as my everyday C IDE and debugger.
Depending on exactly what kind of remote target you're debugging, the answer to this question could vary a lot. If you're cross-debugging to a deeply embedded microcontroller target running an RTOS, your options are going to be more limited.
For Makefile-based projects, you want to use the "Generic Project" creation wizard, which by default adds all the source files under the specified directory to your project. It may take some manual work to maintain your project, if you want Qt Creator to "understand" things that you've specified in your Makefile like command-line include directories (go in your .includes file), command-line included headers (go in your .config file), and command-line symbol definitions (go in your .config file). The project file list and compile, deploy, and run commands can all be maintained from the GUI though.
How about using DDD? I haven't used it much to be honest, and there seems to be a way to do remote debugging using DDD http://www.gnu.org/s/ddd/manual/html_mono/ddd.html#Remote%20Program
Gdb itself has already built-in curses based pseudo gui. By default, it splits main screen on 2 windows. Upper window contains source code, lower window is command line interface. Also there are other modes allowing to show you register values and assembly. It works well over ssh, so if you can, copy gdb on your device and debug it over ssh. If not, everything above can be applied for debugging over gdbserver.
You can use NetBeans. NetBeans support remote debugging with gdb. Gdbserver support plug-in also exist. I don't test plug-in but remote debugging using ssh working well.
Try Affinic Debugger GUI. It has newer design.
DDD is too old, Affinic Debugger supports all major platforms and is more powerful than DDD.

Free cross-platform tools for web development [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 3 years ago.
Improve this question
This question is geared towards a group of newly hired developers that need to adopt into a minimal learning curve, maximum development/programming/management effort. Some of the developers have senior level experience and will be mentoring the junior developers. My question is I would like a solid set of tools that can run on any system (as they can choose what they like) but be the same for the entire group. The focus is on Mobile web (Not App) Development but are looking to venture into the Application market once the team gets up to speed with the web development.
Categories of software I need,
Web Development:
IDE (I think I'm set on Aptana stand alone version, unless someone sees something better)
Database GUI (I like DBVisualizer but I'm open to suggestions. MySQL and PostgreSQL are my options)
Code Repository (SVN, GIT, CVS ???)
Debugging tools (need server side as well as client side)
Frameworks (PHP, Ruby, Perl, jQuery, CSS framwork???)
Development Methodology (Agile, Scrum, etc...)
Workflow Documentation (Something like Visio but free)
Mobile Browser set (Firefox, Multi IE, Opera, Safari, Google Chrome) Why/Why Not???
Missing anything from the list???
App Development:
Application SDK's (iPhone,Android, Pre if it still exists)
Handset device
Anything else I might need to plan for???
For communication we are using Google Hosted Apps as well as Wave.
Code Repository: Add Mercurial - Its the only free, distributed version control system that easily runs on windows, mac, linux, etc. SVN will be the only one of those that has a friendly interface.
You'll need to plan for how to make your UI cross platform compatible. As of this writing, its quite difficult to perform a write-once interface in HTML/JS. Although state-of-compatibility is getting better, I would plan to very carefully separate your UI from your business logic because I think you'll likely need to either deploy separate versions of the UI for each device or to have unified, but very simplified, UI that works on many devices (assuming a web app).
Plan on unit test your business code to make sure it works on all of your devices. The JS engines differ, and you need to know that early in your dev process.
Plan ahead as to how to handle user input. If your users have a physical keypad, for example, they'll expect to use it. You may want a very different layout for a site targeting Blackberries with trackballs, then an iPhone or Storm that uses finger taps.
Know ahead of time which platforms you will target, and then buy those phones. If its worth doing, its worth buying the phone. As an example, my first iPhone app talked to the database. It worked fine on the simulator but I was waiting for my developer key before I could test on the device. Once on the device, I discovered that what I thought would be a 1/2 second delay was more like a 40 second delay, which forced me to totally revamp the project.
Hope this helps.
IDE - I think Eclipse (Aptana is a custom version of Eclipse) is a good choice for a cross platform and cross-language IDE. You could also look into NetBeans.
Database GUI - I haven't used many DB Visualizer's myself, so I'll pass on that one.
Source Control - I would go with GIT even if your developers haven't used it before. They will learn to like it quickly and the client tools have improved considerably in the last year or so. Check out Git Extensions for Windows and GitX for Mac.
Web Framework - This should be based on your team's experience and the requirements of your project. I would pick whatever your team feels the most comfortable with. Personally, I'm a fan of Ruby on Rails and ASP.Net MVC, but Asp.Net MVC is microsoft platform, and it seems like you want to stay open source.
Dev Methodology - Whatever your team feels comfortable with. I would say look into Agile and TDD (test driven development)
Workflow Documentation - Not sure about this one
Browser Set - Use them all. Test your applications in as many places as possible. For testing multiple versions of IE, I use IETester. Safari and some extensions for Firefox allow you to change your browser's user agent, which can be useful.

How to profile a silverlight application? [closed]

Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
We don’t allow questions seeking recommendations for books, tools, software libraries, and more. You can edit the question so it can be answered with facts and citations.
Closed 9 months ago.
Improve this question
Is their any profilers that support Silverlight? I have tried ANTS (Version 3.1) without any success? Does version 4 support it? Any other products I can try?
Updated
since the release of Silverlight 4, it is now possible to do full profiling on SL applications... check out this article on the topic
At PDC, I announced that Silverlight 4 came with the new CoreCLR capability of being profile-able by the VS2010 profilers: this means that for the first time, we give you the power to profile the managed and native code (user or platform) used by a Silverlight application. woohoo. kudos to the CLR team.
Sidenote: From silverlight 1-3, one could only use things like xperf (see XPerf: A CPU Sampler for Silverlight) which is very powerful to see the layout/text/media/gfx/etc pipelines, but only gives the native callstack.)
From SilverLite (PDC video, TechEd Iceland, VS2010, profiling, Silverlight 4)
Install XPerf and xperfview as available here: http://msdn.microsoft.com/en-us/library/cc305218.aspx
(1) Startup your sample
(2) xperf -on base
(3) wait for a bit
(4) xperf –d myprofile.etl
(5) when this is done, set your symbol path:
set _NT_SYMBOL_PATH= srvC:\symbolshttp://msdl.microsoft.com/downloads/symbols
(6) xperfview myprofile.etl
(7) Trace -> Load Symbols
Select the area of the CPU graph that you want to see
Right-click and select Summary Table
(8) Accept the EULA for using symbols, expand IExplore, expand agcore.dll or whatever is your top module
Visual Studio 2010 (with the Silverlight 4 tools) comes with command line support for profiling Silverlight apps.
Full instructions for profiling SL4 can be found at: http://www.nachmore.com/2010/profiling-silverlight-4-with-visual-studio-2010/
Try JetBrains dotTrace performance profiler.
Here is the detail how to:
http://confluence.jetbrains.net/display/NetProf/How+to+profile+silverlight+application
Here is a detailed blog entry about using XPerf... Also check out this video (at PDC) about profiling silverlight!!!
AtoLogic SilverProfiler should work for you. See http://www.atologic.com
SL 4.0 has coreclr etw events. Should be able to diagnose exception,gc, threading and few others using the XPERF and Perfmonitor and clr etw. I have blogged about this.
FYI using Perfmonitor should be able to provide call-stacks.
ETW is available only in Windows.
I like RedGate ANTS. I find it to be a much nicer profiler than dotTrace.

Resources