FAQ Database Discussion Community


Breakpoint “concurrency” in Intellij

java,debugging,intellij-idea,concurrency,ide
Lets say I have a class that initiates two threads Thread_A and Thread_B, each doing some calculations and ocassionally using a subroutine of my the class. (don't worry about data sharing, lets say it's a log line or imagine the subroutine is a method in a Java library) I want...

A variable in my code won't define properly

python,debugging,variables,math,pygame
This is my code for a maths program I am making for high school. I am struggling at the moment because I can't figure out what I've done wrong, it says that sum1 isn't defined. If someone could please take their time to go through my code and sort it...

This Expression causes side effect and will not be evaluated

c#,linq,debugging
I am getting this error on my LINQ query and i am not for sure why. when i run the table is empty but when i add a break point a force the results then it works find and adds all the data in perfectly private void GetSQLOraclelinqData() { var...

AngularJS: UI-Router blank page debug

angularjs,debugging,angular-ui-router
I just wondering does anybody know how to debug situation when you have blank page for UI-Router. (Of course, without any errors in console) By doing console.log for router events(take from here) I found you that it went to correct state but after did not stop on breakpoint inside state...

Using a scanner loop across classes (Java)

java,debugging,while-loop,java.util.scanner
I am trying to use a scanner loop as a method in my input class, in my main method. I keep getting this error: Exception in thread "main" java.lang.NullPointerException at Blackjack.Input.getBet(Input.java:27) at Blackjack.BlackJackGame.main(BlackJackGame.java:23) Here is the loop (this loop is in a separate class) : public int getBet(int cash) {...

Debbugging angularjs app without ripple or browser because it uses cordovasqlite plugin

angularjs,sqlite,cordova,debugging
In my AngularJS/Ionic app I use the cordova-sqlite plugin and a local database to store data; I also use a web service to fill the database with data from a remote database. Well, sometimes I get a strange behaviour when I try to get data from the remote database. My...

How can I debug scala.js unit tests?

debugging,intellij-idea,scala.js,utest
I have some scala.js unit tests written in utest. They all run just fine from the sbt build, however I would like to be able to step through the unit tests in a debugger. Using my favorite IDE (intellij) to debug the tests won't work because it will try to...

Scala: Setting programatically a break-point to be recognized by IntelliJ

scala,debugging,intellij-idea
In Visual Studio / C# I can easily set programatically a break-point. Is there any similar feature available for IntelliJ/Scala-Plugin and the Scala language ? To clarify: In C# you can call an API function System.Diagnostics.Debugger.Break(); and then the Debugger in VS stops like with any breakpoint, set in the...

I need some debug help please

javascript,debugging
I just started learning JavaScript. I tried to make a simple game to see if I could. But I keep getting errors. I fix one but I get another so can someone please help me debug this? I know I am missing something simple. Right now I am getting: SyntaxError:...

Debugging service test client: Netbeans debugger won't recognize Glassfish server

java,debugging,java-ee,netbeans,glassfish
Here's what I've done so far: Did a fresh build of project (web service project). Redeployed project war file to Glassfish server. Restarted server with --debug=true. Attached debugger from Netbeans. Debugger attaches to the server without an error (responds "User Program Running"), however the Debug tab (in the Projects/Files/Services window)...

Debugging Blackjack program? (Java)

java,debugging,if-statement,for-loop,arraylist
I am trying to write a Blackjack program where the user bets against a CPU dealer.The problem I am having is that I have written classes for card, deck, and dealer, but when I try to initialize a new dealer and a new deck I get the error: Exception in...

ASP.NET strange behaviour: Adding Debug=true in web.config changes css

css,asp.net,debugging,web-config
Just as the question states: When I add debug=true to my web.config (no other changes anywhere in the code) my page is rendered with no background colour. Any explanation why this should occur?...

PhpStorm IDE. Collapse custom/debug code

debugging,ide,phpstorm
Is it possible to collapse custom code in PhpStorm? Like if you set in settings pattern: [START]$this->debugOutput(*)[END] The concept is to hide debug code after developing finished. In example below all lines with $this->debugOutput should be hidden class Foo { public function bar() { $x = 1 + 2; $this->debugOutput($x);...

Firefox Add-Ons: Variable Is Not Defined In Console

javascript,debugging,firefox,firefox-addon,xul
I'm developing a Firefox extension. When I run it, I open up the browser console and it says, [name] is not defined. It's in "browser.xul." <?xml version="1.0"?> <?xml-stylesheet href="chrome://Uedit/skin/skin.css" type="text/css"?> <!DOCTYPE Uedit SYSTEM "chrome://Uedit/locale/translations.dtd"> <overlay id="Uedit-overlay" xmlns="http://www.mozilla.org/keymaster/gatekeeper/there.is.only.xul"> <script src="Uedit.js" /> <toolbarpalette id="BrowserToolbarPalette"> <toolbarbutton id="Uedit"...

trace stack external library eclipse

java,eclipse,debugging,stack,mpi
I imported mpi.jar library in Eclipse and everything works perfectly. I would like to trace the stack of my application but I don't know I to do it. For example, my app calls a method from mpi.jar library called send() and I would like to understand what send() does. I...

Python prime number function returning error in tutorial

function,python-2.7,debugging,primes
Python newbie here, so bear with me... Unfortunately there's no "support" for these tutorials, except posting questions in a Q&A forum and maybe another student can help. I know that there are a ton of Python prime functions out there, but I think I've come up with one that works....

VBA Debugger shows only 256 elements of a collection

excel-vba,debugging,collections
the title explains my problem. Im working on an excelmakro and my questions is, is there an option that the debugger shows all elements like it does with an array? And if not, is the only workaround the storage of my classobjects in an array after inflating the collection? I...

Rails 4 + delayed job - constantly writing debug code to production logs

ruby-on-rails,debugging,delayed-job
I'm using delayed job for the first time, and it seems to be working fine. I started to tail my production log to fix another issue, and found that delayed job is constantly updating the production log with debug code. Is this normal, and can I turn it off? [2015-06-14T16:05:35.983383...

Working with TreeMaps (21.9- Intro to Java, Liang, 10th Edition)

java,debugging,treemap
I'm supposed to write a program that returns the capital of a given state in the U.S. using TreeMaps. However, the program returns null when I run it, before I even get a chance to input anything. Can someone tell me what's wrong? public class Map { private TreeMap<String, String>...

Eclipse find source file from library

eclipse,debugging,eclipse-cdt
I am currently using the OpenCV library in Eclipse. For debugging it is often helpful to read the library's source code. When I open the context menu (pointing at the library-function which I want to inspect) on 'Open Declaration' in my code I will just have a look at the...

Debugging a SQL command in c#

c#,sql-server,debugging
So below I have a piece of code that I have been working on: SqlConnection connect = new SqlConnection("Server=OMADB01;Database=PATRICK_DEV;Trusted_Connection=True;"); connect.Open(); SqlCommand command = new SqlCommand("UPDATE FILE_DATE_PROCESSED SET FILE_DATE_PROCESSED = DATE_ENTERED, DATE_ENTERED = GETDATE() SELECT top 1 FILE_DATE_PROCESSED, DATE_ENTERED FROM FILE_DATE_PROCESSED, ORDER BY DATE_ENTERED DESC ", connect); SqlDataReader reader = null;...

Scribble uncovering bug in block use I don't understand

xcode,osx,debugging,memory,objective-c-blocks
I have a bug which I have uncovered by enabling Scribble in Xcode, fixing the bug is not an issue, it isn't implemented in the best way, I can just remove the whole block, but I don't understand why I am getting the issue in the first place, which tells...

Debug Excel VSTO add-in when launched by double-clicking existing file

excel,debugging,visual-studio-2013,vsto
I have a bug in an Excel VSTO 4.0 C# add-in that I've developed but it is only occurring when double-clicking on an existing file to launch Excel. I'm trying to figure out a way to start the VS2013 debugger so that I can put in some breakpoints but none...

WinDbg takes extremely long time to loading symbols; is searching every directory in large network UNC symbol store

performance,debugging,windbg,symbols,hang
I've spent several days trying to speed up loading of symbols when debugging crash dumps using WinDbg, and I'm unable to get past a particular problem. The issue is that when symbols for a module in the dump doesn't exist in any accessible symbol store or symbol server location (e.g....

Print addresses of all local variables in C

debugging,pointers,gcc,gdb,memory-address
I want to print the addresses of all the local and global variables which are being used in a function, at different points of execution of a program and store them in a file. I am trying to use gdb for this same. The "info local" command prints the values...

Can't find out how button click event got wired

debugging,firebug,google-chrome-devtools
I have a button which posts back through Ajax. I tried to find out what code executes when the button is clicked. I used Visual Event (screen capture below) to see how the event was bound but the info didn't help me enough. Then I set an event listener breakpoint...

Add user input to JFrame [closed]

java,debugging,jframe,user,jtextfield
How can I make a JFrame have an option for user input, that can also detect a certain input and do something afterwards? Is it something along the lines of JTextField?

Why Eclipse Debugger does not stop on scoped exception breakpoint (how to stop on handled exception)

java,eclipse,debugging,exception
I am using Eclipse Luna (tested also in Kepler so not version specific). Run on JDK 1.8_40. I would like to find places with "eaten" exceptions - e.g. inproperly handled with try/catch block. Example code below. When I am setting Exception breakpoint as on picture e.printStackTrace() does not stop with...

Android Studio: breakpoints in static methods are ignored

android,debugging,android-studio
I have a problem with the Android Studio debugger: every breakpoint I set inside a static method is completely ignored. The ones set in non-static methods, on the other hand, work perfectly. In fact, even if I break just before calling a static method and then manually "step into" it...

What am I doing wrong in my coin flip code?

python,debugging,python-3.x,attributeerror
I am trying to write a program that flips a coin, and displays Heads or Tails accordingly. This is what I have: from random import random while True: for i in range (2): spin = i.random() if spin == 0: print ("Heads") else: print ("Tails") but I keep getting the...

Different Objects, same name variable should have two different values but doesn't?

java,debugging,variables,object
PURPOSE: Take User Input of Name and Age and print a message at the end that says: "Name is Age." NameIsAge.java public class NameIsAge { static String userName; static int userAge; NameIsAge (String userName, int userAge) { userName = this.userName; userAge = this.userAge; } public String getUserName() { return userName;...

Doesn't work debug for play project in IDEA 14 Ultimate

scala,debugging,intellij-idea,playframework,breakpoints
I do following steps: Import to IDEA Play project generated with Activator UI from Play Scala Seed template. Create Run/Debug configuragion using standart "Play 2 App" template. Add break point in my project. Run debug and open page in a browser. I can see in IDE console "play - Application...

How to drill down into shared_ptr [Netbeans, clang++, gdb]

c++,debugging,gdb,clang,netbeans-8
I'm using Netbeans C++ 8.0.2 clang++ (Ubuntu clang version 3.6.0-2ubuntu1 (tags/RELEASE_360/final) (based on LLVM 3.6.0)) gdb (GNU gdb (Ubuntu 7.9-1ubuntu1) 7.9) In my "C++ Simple Tests," whenever I inspect a variable that is a shared_ptr, all I see for value is: std::shared_ptr (count 1, weak 0) 0x64d3a0 or similar. There...

Strange gdb c++ error

debugging,g++,mingw
I am making a commandline program in C++ and have run into some strange problems. I am very new to C++, so this is probably why I am so baffled. I am using MinGW to compile and debug. Here is the current code: #include <string> #include <vector> #include <iostream> #include...

How to convert Solaris MDB addresses into file names and line numbers?

debugging,solaris
Say you have a MDB stack trace that look like this: libumem.so.1`vmem_seg_alloc+0x170 libumem.so.1`vmem_xalloc+0x628 libumem.so.1`vmem_alloc+0x1f8 libumem.so.1`umem_alloc+0xec libumem.so.1`malloc+0x40 compute+0x14 main+0x54 _start+0x12c For example a stack trace that is generated when applying ::vmem_seg -v to an address that is listed by ::findleaks. The corresponding binary has debugging symbols included, thus it should be...

Print output of a Theano network

python,debugging,neural-network,theano
I am sorry, very newbee question... I trained a neural network with Theano and now I want to see what it outputs for a certain input. So I can say: test_pred = lasagne.layers.get_output(output_layer, dataset['X_test']) where output_layer is my network. Now, the last layer happens to be a softmax, so if...

Transferring large application to Android Wear through Android Studio

android,debugging,testing,android-wear,large-files
I am developing a large application for Android Wear through Android Studio (~200 MB). Trying to test the application on my LG G Watch R through "Debugging over Bluetooth" is taking a lot of time to send the large app to the Watch. Are there any alternatives / faster methods...

Visualise CSS selectors like :read-only in debug (F12 tools)

css,google-chrome,debugging,google-chrome-devtools
Having :read-only, [readonly] { background-color: aliceblue; } <form> <h2>test</h2> </form> How can I detect, when debugging, say, in Chrome, that the h2(or form) field has an :read-only property (or other type of selector, like :disabled, etc.) set to true? PS. To clarify the question: the question is not about a...

Debugging with node-inspector: Cannot GET /

node.js,debugging,node-inspector
I am running a Nodejs server with an application which I want to debug. In order to achieve this using node-inspector I run the app as follows: node-debug server.js Unfortunately I can not access the webserver via URL anymore. Visiting http://127.0.0.1:8080 results in Cannot GET / However if I start...

C++ Have lone executable log exceptions?

c++,debugging,exception,logging
I'm currently in a beta testing phase of my C++ Server. I'm sending it out to users to stress test it to see if an exceptions show up. However, since the .exe is a standalone, how do I make it so it automatically creates a dump or a log of...

Codecademy “SyntaxError: Unexpected token else”

javascript,debugging
I'm doing the codecademy js course, and I'm at the part with rock paper scissors. When I save the code it says "SyntaxError: Unexpected token else". What did I do wrong? This is my code: var compare = function(choice1, choice2) { if (choice1 === choice2) { return("The result is a...

Cucumber.js debugging in IntelliJ

debugging,intellij-idea,bdd,cucumberjs
IntelliJ has a plugin for Cucumber.js. This suppose to enable running and debugging inside the IDE. The run configuration for cucumber.js works, but the debug mode is deactivated (Debug button can not be clicked). Does anybody else has the same problem and managed to solve it? Debugging is very essential...

python debugging, and finding out where variables get set

python,debugging,wikipedia
I'm working on modding the wikipedia python module, that's located here: https://pypi.python.org/pypi/wikipedia/ Effectively, I'd like to be able to point it at a different wikimedia based site that also supports the same API calls (which is pretty common). there is a global variable defined in wikipedia.py in that package, that's...

Differences between the usage of log4net, ETW & TraceLogging

debugging,log4net,trace,etw
I have used Debug.WriteLine to debug an existing legacy application to find the program flow. Now I'm studying an event (message) based application which contains multiple services which react on events. It uses many cloud (like Azure) resources. I'm trying to understand the different logging system ETW (Event Tracing For...

Breaking as the code execution enters the Dll or Lib space

c++,visual-studio,debugging,dll
I'm debugging a Dll used by OS mechanisms using microsoft visual studio(In my case it is a minidriver). I want the execution to break as it enters the dll code I want it because I don't know when base smart card CSP calls which function. Is there any means to...

Python function returning correct result but interpreter returning strange error

python,function,debugging,user-input
Python newbie here, so bear with me... I'm attempting to utilize the often poorly written Codeacademy Python tutorial, wherein the exercise challenge is to: Write a function called digit_sum that takes a positive integer n as input and returns the sum of all that number's digits. For example: digit_sum(1234) should...

Best way to print information when debugging a race condition

c,debugging,gdb,printf,race-condition
I am debugging an application to fix a segmentation fault that I suspect to be caused by a race condition. I'd like to put some print statements in the code, but I know for experience that adding calls to printf is not recommended since this could change the behavior of...

How to pass or declare array members in c?

c,arrays,debugging,parameter-passing
I developed a program that is supposed to pass the following members of the array of double purchase from the following function: float beverages () { char response; double purchase [8]= {3.50, 3.80, 3.90, 4.20, 4.00, 4.30, 3.00, 3.10}; printf("\nEnter your order: "); scanf("%c", response); if (response == 'l') {...

CSS for Drag & Drop UX

css,angularjs,debugging,drag-and-drop
I should preface this by saying my CSS skills are rather lacking. problem I am utilizing an angular drag & drop directive - angular-drop-and-drop-lists. When I switch it over to be a horizontal list where I'm trying to drag boxes, the dndPlaceholder element (i.e. the grey box) doesn't style like...

Eclipse conditional breakpoint - only after other breakpoint

java,eclipse,debugging,breakpoints
I'm debugging an application that does a lot of method calling. I want to, for example, debug methodA. It is called 1000 times. But, in my main loop, I only want to start debugging method A after a few statements. public void methodA() { //does something nasty that I want...

iOS how to programmatically read device's screen auto-lock timeout time?

ios,objective-c,debugging,screen-lock,user-inactivity
I'm creating a method to send debug info to the support team for one of my apps. I have method calls like these: NSString* appVersion = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleShortVersionString"]; NSString* build = [[NSBundle mainBundle] objectForInfoDictionaryKey:@"CFBundleVersion"];; NSString* iOSVersion = [[UIDevice currentDevice] systemVersion];; An additional requirement is to understand how our internal...

GET document canceled upon first visit (Chrome)

javascript,jquery,google-chrome,debugging,developer-tools
This is a very strange issue with google chrome that some of my customers are reporting that is happening to them when they first visit my website. Bascially what happens is when they load Chrome for the first time, enter my website domain and press enter. It will load for...

What is the mistake in this quicksort implementation?

algorithm,sorting,debugging,quicksort
The code works for a few test cases but fails for most. Where am I getting it wrong? Also if anything could be done to make the code more efficient. void quicksort(int *a, int a1, int b1) { if ((b1 - a1) > 0) { int pivot = (a1 +...

Java - multiple return statements - first one not returning?

java,android,debugging,return
I'm toying around with some Android programming, and was in the process of writing a couple methods to open and close a file. Well, I wanted to do some basic checks on the file and return true if the conditions were satisfied, or return false if it reaches the end...

Chrome Developer Tools shows favicon 404 error in Brackets LivePreview

google-chrome,debugging,google-chrome-devtools,developer-tools,adobe-brackets
I've just started doing Anthony Alicea's "Javascript: Understanding the Weird Parts" course, and he's using the live preview feature of Brackets to demo his code. The first module is a barebones HTML page with a script tag linking to an empty JS file. When I open this page in Brackets...

iOS app crash on launch using XCode debugger, runs fine without debugger

ios,xcode,debugging,crash,launch
When running the app on a device (iphone), it crashes at startup without any error messages. But if the device is not connected to xcode (not in debug mode), just open up the app, it runs fine. Same code runs perfect on simulator. Never seen this before, I guess something...

How can I read .CRe files on Incense Platform?

debugging
I tried many ways but I cannot launch or read .CRe files on the VDR. The IDE is saying that the applet is ready. But the Emulator says cannot launch the App. Please Help!!!!!

Awesomium Winforms does not work in VMWare

c#,debugging,awesomium
We have an application that runs Awesomium 1.7.5.1 great on our physical machines but will fail on virtual machines. The one "gotcha" is running on a virtual machine with a remote debugger attached seems to somehow make Awesomium work.

Get actual class from stack trace element

java,debugging,reflection,stack-trace
Using Eclipse I can set a breakpoint and see current stack trace on debug view: But when I inspect stack trace using Thread.currentThread().getStackTrace(), the information I get is not exactly the same. For example, selected element is JUnitTestClassReference and the correlated one in stack trace (within dashes) is JUnit4TestReference (its...

LLDB Restart process without user input

debugging,lldb
I am trying to debug a concurrent program in LLDB and am getting a seg fault, but not on every execution. I would like to run my process over and over until it hits a seg fault. So far, I have the following: b exit breakpoint com add 1 Enter...

Outputing logs to Console in Android

android,debugging
I'm using the command line to build a project that I am working on: I use it to generate an APK, transfer it to my device, and then run it in on my device. I am trying to debug this application now, and I am not sure how to go...

Is there a way in PyCharm to check an object's methods while debugging?

python,debugging,pycharm
While debugging in PyCharm, it's easy to check an object's fields while execution is suspended. Is there a way to similarly check the object's methods from the IDE, or is this a feature that has just not been implemented by JetBrains? The builtin hasattr function checks for both, so one...

BSTD inorder traversal produces erroneous behaviour

java,debugging,recursion,immutability
I have a BSTD implementation which is inserting values incorrectly and I can't find for the life of me what is going on. EXPECTED ACTUAL -------- ---------- Alex Janice Carlos Janice Elton Janice Janice Zidane Zidane Zidane Implementation private Node<K,E> insert(Node<K,E> node, K key, E elem) { if (node ==...

Visual Studio 2013 Compiler issue on Windows phone 8.1 silverlight project

visual-studio,debugging,visual-studio-2013,windows-phone-8.1
Today I tried to make a windows phone application, I first stared with universal application and and it worked, emulator was running with project but when I try to use Windows.Phone.Speech namespace I couldn't do that, thus I make some research for it, Then I find the answer I need...

how to solve this error aapt.exe

android,debugging,android-gradle
Please help me what is error I did everything I could but as before \Project\TEST\app\build\intermediates\res\debug\drawable-xxhdpi\ic_launcher.png: Original is here. The version qualifier may be implied. \Project\TEST\\app\build\intermediates\res\debug\drawable-xxhdpi-v4\ic_launcher.png: error: Duplicate file. I'm try delete ic_launcher.png from intermediates\res\debug\drawable-xxhdpi-v4 and clean and rebuild but as before Error:Execution failed for task ':app:processDebugResources'. com.android.ide.common.process.ProcessException:...

What is this error about perllocale in Perldoc?

osx,perl,debugging,documentation,locale
I was discussing here about setting no locales in Perl and was recommended to run this perldoc perllocale in OSX Yosemite 10.10.3 but I get the error: Error while formatting with Pod::Perldoc::ToMan: at /System/Library/Perl/5.18/Pod/Perldoc.pm line 1346. at /usr/bin/perldoc5.18 line 11. Got a 0-length file from /System/Library/Perl/5.18/pods/perllocale.pod via Pod::Perldoc::ToMan!? at /usr/bin/perldoc5.18...

Fixing a System.FormatException

c#,debugging,formatexception
I am writing a code that will look at a group in a text file called a, and if a line in that code contains the phrase "Savings Found" it will write out that line, and if has 30% or more savings it will place an asterisk in front and...

try-with-resource close sequence : FileInputStream close executed three times

java,debugging,java-7,close,try-with-resources
I was trying a simple try-with-resource example using Java 8 on OS X. I see some strange behavior. First, following is the code I am running: public void test() { try( FileInputStream fin = new FileInputStream("/tmp/test"); FileOutputStream fout = new FileOutputStream("/tmp/test1") ){ System.out.println("Nothing here"); System.out.println("Nothing here"); }catch (Exception e) {...

Debug java in brackets editor or Visual Studio Code

java,visual-studio,debugging,editor,brackets
I really hate the IDE. They are too heavyweight and add a bunch of IDE specific files and folders and whatnot when creating a project. For the sake of making things easier, I use code editors. My favourite are Brackets (found at this site) and microsoft's cross platform Visual Studio...

View a Javascript method's contents in Chrome console

javascript,google-chrome,debugging,google-chrome-devtools,console.log
When I console.log an object in Chrome, I see all properties and a method name, but I can't see the contents of the method itself. How can I view the contents of an object's method? I've created a JSFiddle that may help explain what I'm looking for. ...

Eclipse Debugger Hitting Comments, Skipping Actual Code

eclipse,debugging
Using Eclipse Luna Service Release 2 (4.4.2) Build id: 20150219-0600 Java Web app running in Tomcat v8.0 (Gold Copy) I've restarted my Eclipse and its debugger numerous times over the course of several days, this has been happening constantly for a few days now, so this is not some random...

Unable to debug after installing Android 5.1.1 on Nexus 5

android,osx,debugging,android-studio,usb
Today I received the Android 5.1.1 update on my Nexus 5. After updating the device I'm unable to connect it to adb (in Android Studio on Mac OS X) via USB. Developer options are enabled, tried to toggle usb debug off & on, changed usb memory emulation from storage to...

Errors trying to add rectangles to JPanel

java,swing,debugging,graphics
I am trying to draw a grid of rectangles on a JPanel that already has a few JButtons on it. I get a big list of errors when I try to run it. Here's my code: package GameOfLife; import java.awt.Dimension; import java.awt.Graphics; import java.awt.Graphics2D; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.awt.*;...

Android Studio missing exception stacktrace in Logcat

android,debugging,android-studio,logcat
For some time, Android Studio doesn't show me stacktrace when developed application crashes. All I can see is following line: 06-09 16:12:36.875 26037-26037/com.a.b W/dalvikvm﹕ threadid=1: thread exiting with uncaught exception (group=0x4206c700) This drives me crazy because I cannot see, where application really crashed (and what exception occurs). I'm using AS...

What does the double colon mean in Scope Local variables in Chrome's debugger?

javascript,google-chrome,debugging
See the screen dump fragment below. Notice that there are two colons between legend and Object (legend is a field of ptd). What does the double colon mean? My problem is that if I test the value of ptd.legend, it is 'undefined'. Which it shouldn't be... ...

ORA-0131 :insufficient privileges DEBUG CONNECT SESSION

oracle,debugging,plsql
I got this error message "ORA-0131 :insufficient privileges DEBUG CONNECT SESSION" trying to start debug PL/SQL script using PL/SQL Developer. Oracle Database 11g Release 11.1.0.7.0 I'm a part of admin group. Is this privileges necessary? grant DEBUG CONNECT SESSION to =<bobens_83-here_goes_your_db-username> ...

Perl Debugging Using Flags

perl,debugging,script-debugging
So my goal is to find an easy way to turn on print statements in Perl a flag. In C/C++ you can use a #define to choose if certain code is run and it is a way to turn on and off debug print statements. Where if a #define DEBUG...

Install Android app on device through wifi - no usb or emulator

android,debugging,android-emulator,usb,wifi
Just as it says in the title. It seems my smartphone data connectors are broken, and the emulators run far too slow on my computer (surprisingly because it is i7). So, is there any way I can use an alternative to usb debugging through WIFI instead of usb? ...

What are my next steps on finding the cause of this exception?

java,android,eclipse,debugging
I'm fairly new to Eclipse, Java, and Android programming. I've taken over development of an Android application. Someone has made a change several months ago that is causing the application to crash (exception) in code that is not part of the application code. I don't have any idea where or...

Debugging Conway's Game of Life Graphics?

java,algorithm,debugging,if-statement,multidimensional-array
I am trying to make a simple version of Conway's Game of Life where the computer generates a grid of rectangles and fills in the rectangles that represent "live" cells. The problem I am having is that I cannot get the grid to clear after the first pattern, so all...

Chrome F8/hotkey debugger breaking during a drag and drop operation

google-chrome,debugging,drag-and-drop,google-chrome-devtools
In Chrome's web-developer tools one can break at any point by pressing F8. Often times I would like to break and inspect an element during a drag and drop operation by pressing F8. This won't work however. Is there a native Chrome-way shortcut without running a custom script?...

Error messages and console logs in Electron?

javascript,node.js,debugging,electron
How do you view error messages and console logs in Electron during development? Also, is it possible for the logs to be written directly into a file? Edit: Kind of like the errors and console logs displayed by Chrome's dev tools: Except in Electron rather than Chrome....

Once I turn off debuggingData in angular, is there another way to get the rootscope?

angularjs,debugging,angularjs-injector
I think having debugging info on by default in Angular will sink large apps. You can now disable this in production: https://docs.angularjs.org/guide/production#disabling-debug-data But there are some cases where I do: angular.element(document).scope() in order to access the rootScope. Is there another way in angular to get the $rootScope without this debugging...

node does not output using console log

javascript,node.js,debugging,webstorm
I fairly new to nodejs and I put the following code in some module, module.exports = function (app) { app.get('/aa', function(req, res) { console.log("test"); debugger; res.send('file updated'); ... the application is working and I see in the browser "file updated" but I've two problems: why don't I see "test" in...

Chess game gives invalid moves

java,debugging,chess
I'm writing a chess game, but I keep running into a bug. When I ask for valid moves, my program returns some spots that shouldn't be valid. This is my current code public enum PieceType { PAWN('p', (piece, pieceOnEndTile, board, move) -> { PieceTeam team = piece.getTeam(); int dx =...

IntelliJ freezes for about 30 seconds before debugging

java,debugging,intellij-idea
when i try to debug my java app the IDE freezes for about 30 seconds with the message: "Finished, saving caches" After it unfreezes all works fine. It happens every time. When i only run (not debug) it does not freeze. What i tried: I changed the JDK on system....

Why am I getting a debug assertion failed error on running the code

c,loops,debugging,while-loop
When I enter a password in my program below and press enter I get a debug assertion error, specifically isctype.c line 56 Expression:(unsigned)(c+1) <= 256 Could someone help me get around this please? Code: int main() { int j=0; char pass[100]; int upper=0, lower=0, digit=0, sc=0; printf("Enter your password:\n"); scanf("%s",&pass);...

Suggestions for my Selection Sort / Java

java,debugging,selection-sort
My Selection Sort algorithm is not working. I am getting the following errors: //Exception in thread "main" java.lang.NullPointerException Note: this is for a java class. I do not have a lot of experience. I am done with the assignment. I am trying to understand the reason why my sorting algorithm...

What are the meaning of icons associated to symbols in thread debug navigator

xcode,debugging
While debugging thread on Xcode, in this case Xcode 6, icons are associated to symbols on threads: what are the meaning of these icons. ...

expected identifier or '(' before '~' token

c,debugging,token,getopt,pagerank
I encountered a problem while working on a project. I know there are many simillar questions that are answered, but regarding this special one I could not find any help. I am getting the following error: Compiling main.c main.c:42:1: error: expected identifier or '(' before '~' token ~ ^ Makefile:47:...

Java Reflection vs Java Debug Interface (JDI) [closed]

java,debugging,reflection,jdi
What are the differences between use Java Reflection and Java Debug Interface? when can I use one and when the other?

Concurrent modification exception when using iterator? (Java)

java,debugging,arraylist,iterator
I am trying to write code for the simulation WaTor in which sharks and fish eat each other and simulate population control etc. Anyways, the problem I am having is that i keep getting a concurrect modification exception even when using an iterator. Here is my code: private void updateSharks()...

Watch a value instead of an address?

debugging,reverse-engineering,disassembling,ida
I'm new to reverse-engineering all in all and been having real difficulty to find exactly what makes a message box appears in the application which I don't have the source code for. I tried using the very slow search for text to see if it would find the "Error when...

“Generics add stability to your code by making more of your bugs detectable at compile time.” - Explained in laymen's terms?

debugging,generics,types,compiler-errors
"Generics add stability to your code by making more of your bugs detectable at compile time." I keep reading this everywhere, but I can't seem to find an explanation for why generics help make errors more detectable in compile time rather then run time. Maybe this might be answered somewhere...

Qt Creator failed to start Debugger

python,c++,qt,debugging
Qt c++ project build under Qt Creator 3.4.1 successfully. But when I just can't launch the debugger. Output in the application Output: Debuging starts Debuging has failed Debuging has finished The debugger never really starts. output in the terminal : QProcess: Destroyed while process ("/usr/local/bin/gdb") is still running. Unexpected GDB...

Debug native code in Android Studio

android,debugging,android-studio,android-ndk
Google I/O 2015 promised debugging native code in Android Studio. To do this, you need to install ndk-bundle through SDK manager and update Android Studio to the latest version (Canary branch). And what to do next? How setup? Here is a link to the source. Source

Can somebody explain why this is the result? [on hold]

java,debugging
public boolean isNumber(String s) { String a = s.trim(); if(a == null || a.isEmpty()){ return false; } boolean dFlag = false; boolean eFlag = false; boolean nFlag = false; for (int i = 0; i< a.length();i++){ char c = a.charAt(i); if (c == '+' || c == '-'){ if (i...

Segmentation fault strcmp in c

c,debugging,segmentation-fault,gdb,strcmp
I am trying to run a program in c that takes in a text file and string from the user and then searches the file for that string. It keeps getting a segmentation fault and gdb is pointing me towards this function but I am not sure what the problem...

I cannot debug two projects at once - one with Resharper NUnit tests

debugging,visual-studio-2013,nunit,resharper
My team has a solution with multiple projects. One of these projects is an ASP.NET MVC website. Another project contains NUnit tests. We launch these NUnit tests inside Visual Studio 2013 with Resharper 8.2.2. Another developer on my team is able debug both the MVC project and the NUnit tests...

How and Why is this If condition satisfying when value is false in C#

c#,debugging,if-statement,visual-studio-2013,and-operator
I have this strange problem in Windows Phone Application. Hitting hardware Back button exits the application when it should have shown the previous page. While debugging, I found something really strange. In this method, this.Frame is Not null (as shown in 3rd pin) but this.Frame.CanGoBack is False (as shown in...