简体   繁体   中英

Debugging Android on Netbeans

I've setup Netbeans using nbandroid (http://kenai.com/projects/nbandroid) which has been working just fine for the last few days. I've already made a small app which runs in the emulator and even on my phone.

The thing I can't get to work is the debugger console in netbeans. If I add these lines of code to my app nothing appears in any of the output screens in netbeans.

System.out.println("blaat");
Log.d("info", "blaat")

Even though I'm 100% sure the code should run. Any suggestions on what I might have missed?

尝试打开一个新的cmd提示符,然后键入“ adb logcat”。

Ok, just found a better solution in another question: Android Debugging with Logcat and Emulator. Is it possible?

started using ddms, which is exactly what I wanted.

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM