Questions tagged [debugging]

Debugging is a methodical process of finding and fixing bugs in a computer program. **IMPORTANT NOTE:** This tag is ONLY for questions about debugging techniques or the process of debugging itself, NOT for requesting help debugging your code.

0
votes
0answers
4 views

how to set symbolic breakpoint for initWithNibName in xcode

How to set breakpoint in xcode 10.1 to break when the method [initWithNibName: bundle:] is called in objective C ? I can set breakpoint for -[UIViewController viewDidLoad] but don't know how to do ...
0
votes
0answers
5 views

Xcode does't print any debug logs after Attach to Process by PID or Name

I use Xcode Version 10.2 Normal app debug print logs as expected, but when I want to test some delegate like - (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions: (...
0
votes
0answers
9 views

Rails compiled javascript asset debug

In a production environment, where my javascript assets are bundled, when there is a javascript error that I catch, I get with it the line and column, for example: d86c04c8f3.js:2:9588 Now, since ...
-1
votes
1answer
30 views

iOS app crashing in debug mode, working in release mode

There are several questions asking the exact opposite of this, and I don't understand how/why running my app in release mode works, but crashes with an EXC_BAD_ACCESS error in debug mode. The method ...
0
votes
0answers
16 views

How to count breakpoint hits using IntelliJ during debugging

I need to count the number of times a given line of code is hit during execution. I want to use it via debugging tool on my IDE and not a code or performance tool solution. I am already using YourKit ...
0
votes
0answers
23 views

Why can't the PHP debugger find this object change?

I am trying to track down where a change to a PHP object takes place, and the debugger is unable to step into the code where it happens. I am tracing through a constructor with three assignments. ...
1
vote
0answers
20 views

Why does this config always shows my default web server?

I have the attached config, I am trying to display mysite.com (defined as vhost at the very end) but it always shows the default index page, the one I have in /var/www/html/domains/default/index.php ...
-1
votes
0answers
15 views

How to debug django (logic) code using django shell in Visual Studio Code

I'm developing a django app including custom logic code using Visual Studio Code and I would like to debug my code while interactie via the django shell. Is this possible and if so, what debugging ...
0
votes
1answer
16 views

How can I remove destination path that already exists in git?

I'm having this strange behavior where I have 2 repositories (that I've made in bitbucket) in my project directory. I get an error that says fatal: destination path 'gitsub' already exists and is not ...
0
votes
0answers
17 views

In Visual Studio Code run Node.js, call python script as child-process and debug it

I'd like to jump into the python code as soon as the child process is created by nodejs to debug the python code Server.js: const spawn = require("child_process").spawn; const pythonProcess = spawn('...
-3
votes
0answers
33 views

Why does it open debug perspective automatically? [on hold]

code is here What's wrong with this code? Why it is saying to open debug perspective? public void missingNumber(int[] array) { Arrays.sort(array); int j=0; System.out.println("Here are ...
-1
votes
2answers
35 views

Getting a seg fault but has no idea how to fix it

The following code has a seg fault but I have really no idea how to debug it, maybe it's because my knowledge lack of C syntax, and I have read TCPL but still get nowhere. #include <stdio.h> #...
0
votes
0answers
12 views

How to debug pip install <package name>

If I want to debug the setup.py file of my package packagename getting installed via "pip install packagename" , is there a way to do so? I have tried downloading the source, adding set_trace() in ...
1
vote
2answers
19 views

How to watch a column of a 2-D matrix in Visual Studio 2017 debug mode?

guys. I know we can watch an array in the VS debug mode by adding the array into the watch window, but how do we view a column of a matrix (2D array)? Let's say we have a matrix A[3][3], and I only ...
0
votes
1answer
23 views

General debugging options (VS2017): “Use Managed Compatibility Mode” and struct with enum

I'm trying to debug code with some struct struct VirtualArrayTest { private T[] Array; private TypeCurrentArray CurrentArray; private int StartPos; private int FinPos; public ...
1
vote
1answer
22 views

How to debug fractal tree?

I need help debugging my code. I have a create task for the AP exam. I tried giving prompts to the "undefined" ctx, angle, len, and arc, because it did not recognize these. var ctx = prompt("Please ...
0
votes
0answers
8 views

Disable coverage while running nosetests

I'm new to Python. I am new to PyCharm. I am trying to debug through my unit tests. They are done with nosetest. Currently, when I run my tests with the vagrant debugger, it gives me the following ...
-2
votes
1answer
30 views

How can I debug / step through a string of Javascript code?

How can I programatically control the execution of a piece of Javascript code, step through it, isolate it to a separate scope, watch the variables defined within it and similar? So in practice, a ...
0
votes
0answers
24 views

How To Correct An Debug Issue In Xcode Workspace

I'm running into thread 1 signal sigabrt every time I build my app in Xcode workspace to connect with the Firebase server. Can I get some help why this keep popping up? 0x112601804 : callq ...
1
vote
0answers
23 views

How to integrate Firebase with app in Xcode?

Every time I try to run Firebase Server in my app I get a thread signal SIGABRT. I have plugged in the code correctly as I was told. I need to know if I'm missing a critical step on maybe a Podfile ...
0
votes
0answers
19 views

How to step through suspend function calls when debugging Kotlin coroutines

How is it possible to debug Kotlin code when stepping into or out of a "suspend" function? (see example below). fun mainFunction() = runBlocking { println("before suspend call") ...
0
votes
0answers
11 views

How to fix debug crash when using SetConsoleTextAttribute?

I am programming C++ on QT-Creator. I want to use "SetConsoleTextAttribute" function from windows.h, but as soon as I use it, debugging does not work, it outputs "Unable to create a debugging engine". ...
-1
votes
0answers
12 views

Basic Calculator Class Error while doing an assigment [duplicate]

Basically, I'm trying to do the assignment that requires me to make a basic calculator. The calculator should have one class and that's MyCalculator. This class should have the 4 math methods: ...
0
votes
2answers
25 views

Data is being received but not able to show

I am trying to use axios http request to display some data, I am testing how to display api data on to the client side with react. https://codesandbox.io/s/4x291xp574 I have my api call working ...
0
votes
1answer
33 views

How to set up debugging code in C ++ in RDi? [on hold]

Previously, wrote and debugged in RDi (Rational Developer for i) programs in C, CL and RPG. Now there was a task to debug a C++ program and then I ran into a problem. The debugger starts, the program ...
0
votes
0answers
11 views

Eclipse Clear Debug Shell

This is kind of a weird question so bear with me. I found a way to allow unlimited output in the 'debug shell' view and then I executed a function in the Eclipse "debug shell" (used to be known as '...
0
votes
1answer
18 views

Stderr and Stdout redirection to file doesn't save original line no from script

I have script as #!/bin/bash exec 3>&1 4>&2 exec 1>/tmp/stdout.log exec 2>/tmp/stderr.log echo "This goes to /tmp/stdout.log" echo "This goes to /tmp/stderr.log" 1>&2 ...
0
votes
2answers
25 views

What's inside a debugger box and how does it work exactly

I'm working with an iSystem debugger box used for debugging automotive embedded systems. I can't help but wonder what is inside such boxes and how they work exactly. I understand only that there is ...
0
votes
0answers
10 views

ELI5: Help me understand remediation / debugging when functional tests fail on mobile apps (iOS or Android)

Situation: QA runs functional tests on real devices, using any framework like Appium or XCUITest, or Espresso. Let's say you have true positive failures. These QA folks only know how to zip up the ...
0
votes
0answers
19 views

Using log4net With Visual Studio Debugger

I'm having trouble getting my log4net.config file to load when using Visual Studio in debug mode for an Excel VSTO Plugin. The config file is in the top level directory of my project. I have the ...
0
votes
1answer
56 views

VS2017 C++ debugger skipping lines of code

I did a quick search and found nothing similar to this question. Maybe I don't know how to search for this one, sorry. I recently moved to VS2017 (community version) from VS2015. I'm involved in a ...
0
votes
0answers
23 views

OpenCL usable when compiling host application with Address Sanitizer

I'm debugging a crashing issue of my OpenCL application. So I turned on asan to pin down where the problem originates. But then I discovered that by turning on asan and recompiling, my application ...
1
vote
1answer
28 views

Visual Studio debugger crashes on set of a virtual property

I have 2 classes, DataDiff and SimpleDataDiff. SimpleDataDiff inherits DataDiff. DataDiff has two virtual Properties, SimpleDataDiff overrides both of them. They look like this: class DataDiff { ...
0
votes
2answers
23 views

Debugging ASP .Net Core symbols and source don't match

I'm trying to track down an issue with MVC so I thought I would step into the ASP .NET Core source code. I've unchecked "Enable Just My Code" and I've checked "Enable .NET Framework source stepping" (...
0
votes
0answers
12 views

Android Debug Failed, Unable To Debuging the App

App Running Fine But Debugging The app Showing App Keep stopping! below is my logcat: 2019-04-18 18:25:31.226 14010-14010/? E/Zygote: v2 2019-04-18 18:25:31.226 14010-14010/? I/libpersona: ...
0
votes
0answers
17 views

Chrome logger not outputting with PHP

I'm not getting debug output. I do have the extension enabled. PHP ('upload.php'): include '/opa/ChromePhp.php'; //Wrong path maybe, I already tried just 'ChromePhp.php'? ChromePhp::log('Hello ...
0
votes
0answers
37 views

How can I debug a dynamically defined method with Ruby? (method created within repl session)

Is it possible to debug dynamically defined method in Ruby? If so, how can I achieve it? So I opened a new Pry session and first tried it like this: require "byebug" def hello(x) byebug x += 1 ...
0
votes
0answers
16 views

Automatically add breakpoints from searched text in chrome

In chrome say I have 5000 lines of javascript code, I have an object called 'description' this appears roughtly 100 times in the code, now I want to set breakpoints at all 100 occurrences of this ...
1
vote
0answers
27 views

Stackwalk get Function Name, Line number and File Name, in debug

Quick summary In a nut shell i wish to access the debug information regarding the stack, preferably for passing information to Logger. I wish for the information to tell me the Function Name, Line ...
0
votes
0answers
10 views

Debugger does'nt display after update

I've a strange problem since yesterday, I've made an update of Symfony and since I don't have anymore the debug toolbar. It is displays in my html code like this : <div id="sfwdtd14ed8" class="sf-...
-4
votes
0answers
23 views

Say “Program type already present: com.google.android.youtube.player.internal.u”

I integrated two android projects in new project as a module and i have used the youtube player SDK in both projects and also added the youtube's jar as a dependancy for both project's but its throws ...
0
votes
2answers
23 views

Failed to read key AndroidDebugKey from store “C:\Users\aleja\.android\debug.keystore”: Detect premature EOF

Every time I try to load an app to a virtual device, wheter I'm using react-native or flutter, vs code or android studio, it always happens!! Failed to read key AndroidDebugKey from store `C:\Users\...
0
votes
1answer
53 views

Error in javax.persistence.PersistenceContext.synchronization()

I am trying to build my Jhipster Spring boot application in maven. However, Maven is not building in the debug mode. Otherwise, it is working fine. I have added following dependency, didn't help. &...
0
votes
1answer
29 views

Can't tell if Vue project is in debug more or release mode for Visual Studio

I'm building this Vue app with Visual Studio and regardless of the build mode (debug/release) I still get this message below in the console. You are running Vue in development mode. Make sure to ...
0
votes
2answers
33 views

What's the difference between ESLint and the normal console errors?

I use the normal error logging in the console... Following the call stack trace and all. Never had much of a problem. A friend recommended ESLint. After looking at some screenshots, I don't see much ...
-2
votes
0answers
24 views

Can someone debug this R code? It was working perfectly today morning but now not creating “dataq3_tbl_2” table [on hold]

This piece of R script was working perfectly fine but now it is not working & unable to create table "dataq3_tbl_2" Debug help required dataq3_tbl_2 <- dataq3_tbl %>% mutate(...
0
votes
1answer
11 views

it is possible to import package in condition defined in a breakpoint

In eclipse I'm trying to do some modification of a string value, while debugging.this modification need the use of regex, therefor importing java.util.regex..., So I wonder if it is possible to import ...
0
votes
0answers
8 views

Problems with debugging own OVS Controller (timeout issue)

Short summary: I have own implementation of OFController (golang) for OVS and OF. I'm using vswitch from "github.com/digitalocean/go-openvswitch/ovs" I have a test which creates all network ...
0
votes
1answer
22 views

Why's my image fade behaving weirdly when fading into next & last image in the array?

I don't understand why the previous image's being shown for a split second before moving on to the next image upon clicking. Also, when I reach the last image, it should redirect to indexTwo.html ...
9
votes
2answers
172 views

How do I check if current code is part of a try-except-block?

I'm debugging a function that I wrote as part of some form of plug-in framework. The function does not appear to be doing what it should, and I have the suspicion that, somewhere up the stack, ...

http://mssss.yulina-kosm.ru