[TIMOB-19125] Windows: console.debug is not implemented
GitHub Issue | n/a |
---|---|
Type | Bug |
Priority | Critical |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-07-01T13:16:43.000+0000 |
Affected Version/s | Release 4.1.0 |
Fix Version/s | Release 4.1.0 |
Components | Windows |
Labels | n/a |
Reporter | Fokke Zandbergen |
Assignee | Fokke Zandbergen |
Created | 2015-07-01T09:25:16.000+0000 |
Updated | 2015-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
PR on master: https://github.com/appcelerator/titanium_mobile_windows/pull/342
Verified the fix. We now see debug logs :
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