Titanium JIRA Archive
Appcelerator Community (AC)

[AC-2670] Ti.API.debug() fails

GitHub Issuen/a
TypeBug
Priorityn/a
StatusClosed
ResolutionInvalid
Resolution Date2014-02-21T22:16:20.000+0000
Affected Version/sn/a
Fix Version/sn/a
Componentsn/a
Labelsn/a
ReporterMichael Stelly
AssigneeRitu Agrawal
Created2014-02-21T16:41:41.000+0000
Updated2016-03-08T07:41:46.000+0000

Description

Steps to Reproduce

- app: iOS mobile - sdk: 3.2.1.GA - os: osx mavericks - studio Titanium Studio, build: 3.2.1.201402041146 - output: iPhone Simulator v 7.x --------------------------- create new project add the following to index.js file Ti.API.info('this is info'); Ti.API.debug('this is debug'); Run Studio once in RUN mode, once in DEBUG mode (I tested on iOS simulator)

Actual Result

On both tests, only output received in console was: [INFO] this is info

Expected Result

In run mode: [INFO] this is info In debug mode: [DEBUG] this is debug

Attachments

FileDateSize
.log2014-02-21T16:41:44.000+0000703847
diagnostic1918577682070353035.log2014-02-21T16:41:46.000+000015281

Comments

  1. Ritu Agrawal 2014-02-21

    [~madcode] To see the debug info, the selected log level should be debug. Here is the output if the log level is debug. [INFO] : BugTC3806/1.0 (3.2.1.GA.991027b) [INFO] : this is info [DEBUG] : Analytics is enabled = YES [DEBUG] : Loading: /Users/ragrawal/Library/Application Support/iPhone Simulator/7.0.3/Applications/0FD3C39D-1512-4C0E-8A4F-47EE20EB6585/BugTC3806.app/app.js, Resource: app_js [DEBUG] : this is debug [DEBUG] : Application booted in 59.518039 ms Please let us know if this resolves your issue.
  2. Michael Stelly 2014-02-21

    Apparently, when I updated to studio 3.2, my trace settings were reset without my knowledge. It had been so long since I had to set them that I simply forgot how to check. Sorry to waste your time. Thanks for the help. Please close.
  3. Ritu Agrawal 2014-02-21

    no problem [~madcode].

JSON Source