I am new to Android Studio and Java programming. I have the following project code:
try {
InetAddress serverAddr = InetAddress.getByName("whatever");
Socket socket = new Socket(serverAddr, 5555);
} catch (UnknownHostException e) {
e.printStackTrace();
} catch (IOException e) {
e.printStackTrace();
}
Socket throws an exception of type IOException, so e.printStackTrace () is called. While running this under the debugger, I cannot find the place / window in Android Studio where this stack trace is printed. I assume that this should be printed in the Android Studio Console window, but there is nothing there. Android Studio 1.3.2, the default settings. So where is this stack trace printed?
Thanks in advance!
source
share