How to set logging level in the Appcelerator Studio to show trace messages (posted by Ti.API.trace()) in the console?
version of the studio is 4.4.0.201511241829
Thanks!
In Studio, you can change the log level on the Console Window as seen below
Change your Run Config to run as trace instead info
Related
I am trying to access the console of Visual Studio Code, but I can not. I can not type in the Debug Console. I am trying to use 'typeof' command but keep getting the zsh:command not found error.
Tutorial snapshot
That console is actually the browser console. If you right click or command click on your browser click inspect and then Console.
I have installed the appecelator studio 6. I have placed the breakpoints and when i debug either as android or ios, the code is not breaking. I have verified the axway documentation and have done the setup correctly. Can anyone suggest me if I need to change any configurations under debug configurations tab.
You might want to have a look at this tutorial:
https://github.com/m1ga/from_zero_to_app/blob/master/chrome_safari_devtools.md
You can use the ChromeDev tools to debug you app and set breakpoints there, too. Big advantage: you don't need to use Appcelerator Studio but can use VSCode or Atom.
You could also do the old fashion way and use console.log() to output stuff to the console (without break-points)
On a side note:
Debugging works fine with studio too:
Just make sure you run in debug mode in the top left corner. I've successfully tested with the Android emulator and the demo alloy project.
The current configurations in my Appcelerator Studio
Is there something I need to change in the debug configurations?
enter image description here
I am getting this message in the Diagnostic Tools window in Visual Studio 2015 when debugging a C# MVC web application.
I've checked solutions to a similar problem: Visual Studio 2015 diagnostics tool does not support current debugging configuration but using administrator mode and disabling "Use Managed Compatibility Mode" do not help. I've also tried disabling Options -> Debugging -> Just-In-Time -> Script, which still has no effect. It's the only reference I can find to 'Script' and I don't know how to change my debug engine.
I've also tried this solution from the web about setting the Visual Studio locale to the same as the OS, but they're both using US English. https://blogs.msdn.microsoft.com/devops/2015/05/06/known-issue-for-diagnostics-tool-window-in-visual-studio-2015-rc-the-diagnostic-tools-failed-unexpectedly/
Can anyone tell me what I'm doing wrong?
My error message is
The diagnostic tools failed unexpectedly. The Diagnostic Hub output in the Output window may contain additional information.
Try to modify the Environment Variable TEMP as following rules and reopen Visual Studio. That works for me, maybe it also works for you. My IDE is Visual Studio Enterprise 2015 Update 3.
It must only one path in TEMP. For example,
Fail:%USERPROFILE%\AppData\Local\Temp;C:\OTHER_PATH
Fail: %USERPROFILE%\AppData\Local\Temp\;C:\OTHER_PATH
Pass: %USERPROFILE%\AppData\Local\Temp
If you create a default MVC web app, and then debug your app, could you use the Diagnostics tool in your side? I test it in my side, it works well using the default settings, my OS and VS all are the English version. So you use the same language version, am I right?
If possible, you could check the following steps:
Reset your VS settings:
Open VS, TOOLS->Import and Export Settings Wizard->Reset all settings->select “No, just reset settings, overwriting my current settings”->Choose a Default Collection of settings(I often use the General or C#).
Please use the latest VS2015 with update 3.
Maybe you could download and install the match VS version as your windows directly, debug it again.
I tried to configure the storage for my debugging data in Azure Storage by following the instructions in this page (source). After doing this the outputs from Diagnostics like Debug.WriteLine stopped appearing on the Debug output of Visual Studio which I didn't intend to happen.
After a while it was decided it wasn't necessary to store the debug data in the end, so I deleted the diagnostics.wadcfg file and removed the diagnostics configuration from the Web.config file of my role and from both ServiceConfiguration.Local.cscfg and ServiceConfiguration.Cloud.cscfg files, hoping that would restore the output to Visual Studio . It didn't.
How can I restore fully the Debug output to be displayed on Visual Studio console once again? It's really hard to work without these outputs of information.
Any help will be appreciated.
Try going to Visual Studio > Tools> Options > Debugging > Output Window > And check the options there for Output types.
Be sure you are runnning the project un Debug mode and not in Release mode.
In window--->Reset window layout
How to debug/test wp7 app in vs2010? Can I log any info into a log file? Can I print info on the console? Is there any debug tools for wp7 like android adb?
-Henry
You get an emulator and full debugger integration through Visual Studio. It just works.
Load your project in Visual Studio. Connect your Phone. At the top select Windows Phone 7 Device (instead of Emulator). Press F5.
Now you're debugging.
You can set breakpoints if you want to debug that way, or you can log whatever your want to the output window via Debug.WriteLine().
If you want to log to a file, you can write your own logger that writes data to Isolated Storage. There is a hacky, non-supported way to get this data off the phone, or you can just add the functionality to your app to view the log.
You can see this MSDN document. I search about debug and I found it on MSDN page.
Hope it helps.