- 浏览: 450611 次
- 性别:
- 来自: 北京
-
文章分类
- 全部博客 (267)
- java (8)
- 求职&面试 (1)
- linux (33)
- windows (1)
- C++ (5)
- android (12)
- QT (1)
- 经验 (1)
- memory-leaks (1)
- Streaming&V/A (1)
- network&security (5)
- SCM (13)
- mysql (10)
- browsers (4)
- Windows APIs (2)
- opensource (1)
- pm (1)
- GDI (1)
- database (14)
- MFC (1)
- web&fronts (17)
- Tomcat (4)
- OLE (1)
- 观后感 (1)
- Production (2)
- UML (3)
- Javascript (7)
- Cloud Computing&SAAS (5)
- SoftwareEngineering (1)
- Computer&Maintenance (1)
- Web (8)
- Desgin (1)
- J2ee (10)
- mysql cluster (0)
- LB&HA (2)
- webserver (11)
- php (5)
- cas&authtication (0)
- Languages (1)
- IDEs (3)
- architecture (2)
- iOS (8)
- spring (3)
- webservices (1)
- security (1)
- MVCFrameworks (2)
- bservices (0)
- build-tools (2)
- unittest (1)
- spring-security (0)
- sphinx (2)
- hibernate (1)
- mybatis (2)
- search (0)
- nginx (2)
- design&production (2)
- DFS (0)
- algorithm (0)
- distributed&network (0)
- blogs (0)
- os&admin (0)
- fastcgi (0)
- kv-db (0)
- operation&maintenance (1)
- productions (9)
- 养生 (1)
- appserver (1)
- HTTP (2)
- test (1)
- erlang (2)
- browser (0)
- 非技术 (2)
- mobiles (2)
- cloud computing (2)
- Business (2)
- maven (1)
- python (5)
- 人生 (0)
- Cryptography (3)
- CV (0)
- cms (2)
- jqm (2)
- html (2)
- flex (1)
- redmine (1)
- iptables (1)
- groovy (1)
- scala (1)
- grails (1)
- ftp (3)
- vsftpd (2)
- lua (0)
- chroot (3)
- jailkit (3)
- UED (0)
- myeclipse (2)
- ide (2)
- eclipse (2)
最新评论
-
Nick712:
http://blog.csdn.net/victory08/ ...
处理SVN出现:Cleanup failed to process the following paths: xxx -
xs6262460:
Spring AOP根据JdbcTemplate方法名动态设置数据源 -
xhpscdx:
我的解决办法是把D:\ACRS\Projects\TAIS 下 ...
处理SVN出现:Cleanup failed to process the following paths: xxx -
hnraysir:
总结得相当不错,支持下。
使用CodeIgniter 创建 RESTful 服务 REST API【原创译文】 -
云上太阳:
这个必须评论下,间接的救过俺的命啊
解决tomcat启动报错,加强错误日志的显示:
Debugging the hello-jni project with Visual Studio
转载自:http://visualgdb.com/tutorials/android/hello-jni/
This quickstart guide shows how to build and debug the hello-jni simple sample from Android NDK.
Before you begin, please install VisualGDB 2.0 (ensure that "Android Edition" is checked in the installer).
- Start Visual Studio. Select File->New project->Visual C++->VisualGDB->Android App Wizard.
- We will make a copy of the hello-jni sample project to experiment with it leaving the original files untouched. Please select a directory and a name for the project copy.
- If you are running VisualGDB Android wizard for the first time, please press the "Configure NDK/SDK locations" button to tell VisualGDB the locations of your Android-related tools. If you don't have any of the tools installed, simply press the "install" button.
WARNING! After installing Android SDK please run the SDK manager as Administrator and install the Tools (SDK tools/Platform tools) and all required Android APIs (at least Android 1.5 and 2.3.3).
- In this tutorial we are creating a copy of an existing NDK sample. Please select the second option to do this:
- The next page allows selecting a sample project to copy. Please select hello-jni and press "next".
- Finally VisualGDB wizard will ask you for the targeted Android platform. You will be able to change the platform in the VisualGDB project settings later. Please select Android 1.5 for now.
- When you press "Finish", VisualGDB will create a copy of the hello-jni sample for you. If you have an Android phone or a tablet, you can enable USB debugging on it and connect it to your PC. If not, please start the Android simulator (AVD Manager) by selecting "Android->AVD Manager" in Visual Studio:
- If you have no virtual devices defined by now, please create one. It is recommended to specify at least Android 2.3.3 as the simulator platform.
- Start the virtual device. While it is booting, go to Visual Studio, and select Build->Build Solution.
- Once the solution has been built, please ensure that the virtual Android device has been started.
- Once the device is ready, go to Visual Studio and select Debug->Start Debugging with GDB. VisualGDB will deploy the APK file automatically and will start a debugging session.
- If you are using the simulator instead of a real Android device, it might take up to several minutes for the debugging to start.
- Once the debugging is started, you can use the Visual Studio interface to set breakpoints, stop program execution, step through code or inspect variables. You will additionally see the output from the gdbserver in the Remote Console window:
- Go to the simulator and ensure that the app has been started.
- As the native function is only invoked during startup when the debugger is not yet attached, setting a breakpoint there won't result in any hits. You can either modify the Java code to call the native function continuously, or use the Debug->Break All command:
- You can use the Threads and Call Stack windows to observe currently running threads and their stacks:
- When you are done debugging, press Shift+F5 to close the app.
发表评论
-
android中实现消息推送
2013-04-18 11:45 1818android中实现消息推送 ... -
android 9patch (讲的很不错,相当全面:转)
2012-12-21 14:29 988android 9patch (讲的很不错,相当全面 ... -
ios, anroid统一推送
2012-12-17 15:01 0Location: Home / HomeLang ... -
Android Service待机/睡眠时运行
2012-12-06 23:38 0Android Service待机/睡眠时运行 ... -
android中实现消息推送
2012-12-05 23:30 0android中实现消息推 ... -
androidpn的学习研究(五)【转】androidpn-client 常见BUG解决方法
2012-12-05 22:57 0androidpn的学习研究(五)【转】andro ... -
解决androidpn服务器端掉线不会重连的问题
2012-12-05 22:50 6030解决androidpn服务器端掉线不会重连的问题 wi ... -
HttpClient的超时用法小记
2012-11-25 00:02 0HttpClient的超时用法小记 Ht ... -
Android的网络请求中GZip的使用
2012-11-04 00:28 0Android的网络请求中GZip的使用 刚才去 ... -
HttpClient实现对GZip压缩的Response进行解压
2012-11-03 23:48 0HttpClient实现对GZip压缩的Respo ... -
为android的HttpClient添加请求超时时间
2012-11-03 23:36 0在以前做一个android的移动项目的时候, ... -
演化理解 Android 异步加载图片
2012-11-03 17:59 888演化理解 Android 异步加载图片 ... -
Android Activity和Intent机制学习笔记
2012-10-10 16:22 982Android Activity和Intent机 ... -
Android推送通知指南
2012-10-07 15:55 988Android推送通知指南 ... -
Google Android chat using Jetty Cometd java client
2012-09-03 10:46 0Google Android chat usin ... -
Android Push Notification实现信息推送使用
2012-09-03 10:35 0Android Push Notification实 ... -
深入剖析Android消息机制
2012-08-30 23:44 852深入剖析Android消息机制 在Android ... -
AsyncTask的用法
2012-08-30 23:45 774在开发A ... -
解決在 Android 中使用 Bitmap 造成 Out of memory 的方法
2012-07-14 23:40 1526因为Android本身的限制,在2.x版 ... -
利用Necessitas 在Qt上实现Android应用开发
2012-06-19 10:59 1120Necessitas是一个 用于Android平台的qt开 发 ...
相关推荐
MySQL for Visual Studio provides access to MySQL objects and data using Microsoft Visual Studio. MySQL for Visual Studio provides: Design Time Support Query Designer Stored Routine Debugging Entity ...
DEVELOPING APPLICATIONS WITH VISUAL STUDIO.NET is an in-depth guide that takes Windows programming to the next level: creating .NET applications that leverage the prior knowledge and experience of C++...
Visual Studio 2013 includes better support for advanced debugging techniques, vast improvements to the visual database tools, and new support for UI testing for Windows Store apps. This update is the ...
Visual Studio 2017 is packed with improvements that increase productivity, and this book will get you started with the new features introduced in Visual Studio 2017 IDE and C# 7.0. Next, you will ...
Packed with helpful examples, this comprehensive guide explains how Visual Studio 2010 offers you a unique look at the beginning of the IDE’s evolution: improved code navigation, annotation and ...
By the end of the Mastering Visual Studio 2019, Second Edition book, you’ll have become a more efficient Visual Studio 2019 user, and be able to use it for developing, testing, debugging and ...
【标题】:“vscode-java-debug”是一个专门为Visual Studio Code(VSCode)开发的Java调试扩展,使得开发者在使用VSCode时能够便捷地进行Java程序的调试工作。 【描述】:这个扩展是开源项目,意味着其源代码对...
BRK3182 - Supercharge your debugging in Visual Studio 2017.pptx
Extension: Fix a conflict with ReSharper where controls in the settings of Visual Studio would not be displayed. Extension: Introduce an option to allow modifying the generated project properties. ...
《使用GDB进行调试》 GDB(GNU Debugger)是开源社区GNU开发的一款强大的源代码级调试器,广泛应用于C、C++等编程语言。它允许程序员在运行时检查和控制程序,查找并修复错误,从而提高软件的质量和可靠性。...
1. **脚本调试**:Unity内置的Visual Studio集成使得开发者可以直接在IDE中设置断点,查看变量值,跟踪调用堆栈。配合dnspy,可以进一步查看Unity引擎内部的函数调用。 2. **性能分析**:通过Profiler模块,开发者...
"Debugging by Thinking" 提倡的是一种系统性的、逻辑性的思维方式,它融合了计算机科学、心理学、逻辑学等多个领域的理论与实践,帮助开发者构建一个全面的调试框架。 1. 计算机科学基础:调试首先需要对编程语言...
Debugging programs with multiple processes . . . . . . . . . . . . 23 23 24 25 26 26 27 28 28 31 ii 5 Debugging with GDB Stopping and Continuing . . . . . . . . . . . . . . . . . . 33 5.1 Breakpoints....
Visual Studio 2013 includes better support for advanced debugging techniques, vast improvements to the visual database tools, and new support for UI testing for Windows Store apps. This update is the ...
•You can create and associate Azure Key Vaults from within the Visual Studio IDE. •Visual Studio Tools for Xamarin can automatically install missing Android API levels required by Xamarin.Android ...
Visual Studio 2005 Remote Debugging.mht
Packed with helpful examples, this comprehensive guide explains how Visual Studio 2010 offers you a unique look at the beginning of the IDE’s evolution: improved code navigation, annotation and ...