--ionic2 rc0--如何在ios中显示consolelog。我的应用程序在device.not模拟器上移动

时间:2016-11-14 01:57:34

标签: ios angular logging ionic2 device

如何在iOS中显示控制台日志。

我试过>>> import pandas as pd >>> >>> df1 = pd.DataFrame({'a': [1, 2, 3, 4], 'b': [ 8, 7, 6, 5]}) >>> df1 a b 0 1 8 1 2 7 2 3 6 3 4 5 >>> >>> s1 = df1.loc[df1['a']<=2, :] >>> s1 a b 0 1 8 1 2 7 >>> s1['b'] = 0 __main__:1: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame. Try using .loc[row_indexer,col_indexer] = value instead See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy >>> df1 a b 0 1 8 1 2 7 2 3 6 3 4 5 >>> s1.loc[:, 'b'] = 0 /Library/Frameworks/Python.framework/Versions/2.7/lib/python2.7/site-packages/pandas/core/indexing.py:508: SettingWithCopyWarning: A value is trying to be set on a copy of a slice from a DataFrame. Try using .loc[row_indexer,col_indexer] = value instead See the caveats in the documentation: http://pandas.pydata.org/pandas-docs/stable/indexing.html#indexing-view-versus-copy self.obj[item_labels[indexer[info_axis]]] = value >>> df1 a b 0 1 8 1 2 7 2 3 6 3 4 5 >>> s2 = df1[df1['a']<=2] # next try: # this seems to create a detached copy of df1 >>> s2 a b 0 1 8 1 2 7 >>> s2.loc[:,'b']=0 >>> df1 # df1 didn't change :-( a b 0 1 8 1 2 7 2 3 6 3 4 5 >>> s2 # ... only filtered copy of df1 did. a b 0 1 0 1 2 0 命令, 但我可以显示控制台日志。 我的应用在设备上移动。 请问我如何显示控制台日志。

1 个答案:

答案 0 :(得分:0)

不是将标志添加到构建步骤,而是将其添加到运行中。

int x = 0; eventHandler = new EventHandler(this); eventHandler.start(); eventHandler.createEvent("Change X Value", 800, new EventHandler.OnEventListener() { @Override public void onFinished() { //x is not declared final so it will not work x = 5; } });