debugging

java.lang.RuntimeException: Unable to instantiate service

强颜欢笑 提交于 2020-01-04 11:03:36
问题 I am trying to code an application that monitors sms messages. I want to start a service from my main Activity class, but the service doesn't start for some reason. I think there might be a problem with how I declared my service in the manifest file or how I call it from my activity. Here is a part of my activity Code: public class TablighBlockActivity extends Activity { /** Called when the activity is first created. */ private ToggleButton toggEnable; public void onCreate(Bundle

Debugging Android JNI/C++ No Debug Symbols Found Target Machine Actively Refused Connection

爱⌒轻易说出口 提交于 2020-01-04 08:27:52
问题 Here is the console log: (no debugging symbols found) D:\ws\test\MyProject\obj\local\armeabi\gdb2.setup:4: Error in sourced command file: :5039: No connection could be made because the target machine actively refused it. localhost:5039: No connection could be made because the target machine actively refused it. Following debug steps for eclipse plugin sequoyah: http://www.eclipse.org/sequoyah/documentation/native_debug.php I'm almost at the end trying to connect the C++ Debugging. My Android

How to debug C++ code on Android by using Eclipse?

二次信任 提交于 2020-01-04 08:21:48
问题 I wrote some video streamer ( C++ ) on PC and now I try to to implement the same cross platform section on Android. I "played" enough with NDK and know a bit about how to compile and integrate C code with Android (aka JNI). The problem is that sometimes my application crashes and as you know Android doesn't point me where code failed (in C/C++ part). Video Streamer code have a lot of libraries and, lets say, open source parts I used so to leave logs - not good idea. I use Eclipse, how can I

How to get a stack trace for “Invalid chrome URI” exceptions?

北城余情 提交于 2020-01-04 07:09:22
问题 I'm debugging a XUL-based Firefox extension which has been broken by Firefox 46 release. When I run the extension, the Browser console shows: Invalid chrome URI: / with neither line numbers nor stack trace. On Web forums, I've read that ChromeBug could be used for that. Then, I've tried the latest stable version of ChromeBug (1.7.2) but it hasn't been updated since oct. 2014, and seems to be incompatible with recent Firefox versions. Because the extension is an "old-style" one, I cannot use

PhpStorm mapping paths

你离开我真会死。 提交于 2020-01-04 06:29:36
问题 I'm setup a docker container with SSH and FTP access. My local project looks like this: /Users/gezimhome/projects/ziprecipes.net/zip-recipes is my project dir. The source code for my WordPress plugin is in src folder. I have wordpress downloaded and extracted locally here in /Users/gezimhome/projects/ziprecipes.net/workdir/wordpress . Here are my deployment settings: My mappings: My server: In the docker container, wordpress is downloaded and uncompressed here: /usr/share/nginx/html/wordpress

VS2017 debugging error: Evaluating the function timed out and needed to be aborted…

感情迁移 提交于 2020-01-04 05:58:03
问题 when I debug code, I often get this popup in Visual Studio 2017, that prevents me from evaluating objects. I clicked on Help button and read the instructions what to do, however none of the options they suggested, which is basically - to disable all property evaluation, that makes debugging useless since I do want to see the state of the object or the collection. Is there any way to solve this? Thanks. 回答1: Check this option: Debug > Options > "Use Managed Compatibility Mode" This is not

VS2017 debugging error: Evaluating the function timed out and needed to be aborted…

我与影子孤独终老i 提交于 2020-01-04 05:57:08
问题 when I debug code, I often get this popup in Visual Studio 2017, that prevents me from evaluating objects. I clicked on Help button and read the instructions what to do, however none of the options they suggested, which is basically - to disable all property evaluation, that makes debugging useless since I do want to see the state of the object or the collection. Is there any way to solve this? Thanks. 回答1: Check this option: Debug > Options > "Use Managed Compatibility Mode" This is not

Possible to get the line number of the currently executing sproc in SQL Server?

不想你离开。 提交于 2020-01-04 05:43:28
问题 A few years back I worked in a Sybase/Delphi environment, using the BDE to connect to the DB server. We had a little Delphi app that, given the name of a currently executing stored procedure, could tell you what line of that sproc was currently being executed. This was exceptionally useful for debugging sprocs that seemed to be hanging. I'd like to use this functionality in SQL Server, but I can't remember whether it was a Sybase or a BDE feature. Is this functionality available in SQL Server

Possible to get the line number of the currently executing sproc in SQL Server?

岁酱吖の 提交于 2020-01-04 05:43:21
问题 A few years back I worked in a Sybase/Delphi environment, using the BDE to connect to the DB server. We had a little Delphi app that, given the name of a currently executing stored procedure, could tell you what line of that sproc was currently being executed. This was exceptionally useful for debugging sprocs that seemed to be hanging. I'd like to use this functionality in SQL Server, but I can't remember whether it was a Sybase or a BDE feature. Is this functionality available in SQL Server

VSCode will not stop on breakpoints when first node prcess forks a second

最后都变了- 提交于 2020-01-04 05:29:07
问题 The first issue is that there is some conflict error when you do the following from your app.js file and hit F5 to debug: var cp = require('child_process'); var node2 = cp.fork('./app_FORK.js'); Error: listen EADDRINUSE :::15838 at Object.exports._errnoException (util.js:856:11) I had the same issue with VS Community, so I did the following there and it worked: var node2 = cp.fork('./app_FORK.js', [], { execArgv: ['--debug=5859'] }); However, in VS Code, it does not seem to work. I place