Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19125] Windows: console.debug is not implemented

GitHub Issuen/a
TypeBug
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-07-01T13:16:43.000+0000
Affected Version/sRelease 4.1.0
Fix Version/sRelease 4.1.0
ComponentsWindows
Labelsn/a
ReporterFokke Zandbergen
AssigneeFokke Zandbergen
Created2015-07-01T09:25:16.000+0000
Updated2015-07-01T21:16:27.000+0000

Description

The following example will crash on console.debug:
var win = Ti.UI.createWindow();
var btn = Ti.UI.createButton({
	title: 'Click',
	color: 'red'
});
btn.addEventListener('click', function(e) {
	Ti.API.info('hello Ti.API.info');
	Ti.API.debug('hello Ti.API.debug');
	console.info('hello console.info');
	console.debug('hello console.debug');
});
win.add(btn);
win.open();
This is because console.debug is not mapped to Ti.API.debug here: https://github.com/appcelerator/titanium_mobile_windows/blob/master/Source/TitaniumKit/src/ApplicationBuilder.cpp#L241-L245

Comments

  1. Fokke Zandbergen 2015-07-01

    PR on master: https://github.com/appcelerator/titanium_mobile_windows/pull/342
  2. Lokesh Choudhary 2015-07-01

    Verified the fix. We now see debug logs :
    [DEBUG] :  hello console.debug
    Closing. Environment: Appc Studio: 4.1.0.201506261427 Ti SDK: 4.1.0.v20150701131146 Ti CLI: 4.0.1 Alloy: 1.6.2 Windows: 8.1 Enterprise 64-bit APPC NPM: 4.1.0-1 APPC CLI: 4.1.0-4 Windows emulator : 8.1

JSON Source