I'm new to Android Studio and Java programming. I have the following draft 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 exception of type IOException, so e.printStackTrace() will be called. While running this under debugger, I cannot find a place/window in Android Studio where this stack trace is printed. I guess this must be printed in Android Studio's Console window, but there is nothing printed in there. Android Studio 1.3.2, default settings. So where is this stack trace printed?
Thanks in advance!
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.