gavinpugh / vs-android

Integrated development of Android NDK C/C++ software with Microsoft Visual Studio.
Other
119 stars 34 forks source link

it can debug the android ndk on the vs-android #95

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
as the title, it is any plan for this futrue?

Original issue reported on code.google.com by flywings...@gmail.com on 5 May 2013 at 5:03

GoogleCodeExporter commented 9 years ago
I doubt Gavin will wake up one day and decide to write a debugger. 
Unfortunately there are no good debugging options for Android. gdb is 
command-line and you can't break a running program, because GDB expects Ctrl+C 
to break, but this is apparently caught by the OS or something and terminates 
GDB itself. WinGDB is a non-starter--I couldn't make it work no matter what I 
tried, and development has been discontinued (the developer told me it was 
because people weren't buying licenses--err, people are not buying licenses 
because it doesn't work). Also, WinGDB is not supposed to be compatible with 
vs-android but rather a replacement for it, as it uses its own project files 
and build process.

You might have luck debugging C++ in Eclipse (but on my machine, that didn't 
work either):

http://mhandroid.wordpress.com/2011/01/23/using-eclipse-for-android-cc-debugging
/

Original comment by qwertie...@gmail.com on 6 May 2013 at 5:45

GoogleCodeExporter commented 9 years ago
Thanks! that is a bad news.i had try gdb,but it is very hardly to use it;so far 
as i know,google offical does not have any plan to develop a debugger for 
android.

Original comment by flywings...@gmail.com on 7 May 2013 at 1:45

GoogleCodeExporter commented 9 years ago
There's a few options:
- WinGDB as mentioned. AFAIK one of their packages bundles a modified version 
of vs-android.
- http://visualgdb.com/ - Someone posted that on the "Troubleshooting" page 
recently. http://visualgdb.com/tutorials/android/vs-android/
- Nvidia NSight - https://developer.nvidia.com/nvidia-nsight-tegra

Original comment by gavin.dj.pugh on 18 May 2013 at 7:26