Questions tagged [debugging]

22309 questions
1

votes
1

answer
869

Views

Breakpoint failed to bind error when debugging .NET framework code?

I'm trying to debug System.Security.Cryptography.Xml.SignedXml and related classes in Visual Studio 2015, but I consistently see lines in the core framework code being skipped while stepping through in the debugger. Unfortunately, the lines that are skipped include the lines I need to debug. Has any...
The Velcromancer
1

votes
2

answer
367

Views

Pythons Console Module has made it impossible to type the tab key

I started using it on one of my programs a while back. Ever since, whenever I type the tab key on a console (cmd.exe instance) with python running, I get a readline internal error. Full traceback is as follows (note I haven't imported the cmd module in this context or even imported a script using it...
Mohsin Kale
1

votes
1

answer
292

Views

Visual Studio Code - Python debugging - Step into the code of external functions when executing

In a Python project, how do you tell the built-in VSCode debugger to step into the code of functions from other libraries on execution? I know it is possible for functions implemented in standard libraries by adding a 'debugOptions': ['DebugStdLib'] to your configuration in launch.json as specified...
John Smith
1

votes
2

answer
45

Views

Run Web app separately from Service Fabric

I have Service Fabric and web service in it. If I run the Service Fabric locally, from Visual Studio, I can debug my service, and it is very convenient. However, it takes a lot of time to deploy my code changes to local fabric. I am sure there should be an option to start my service separately from...
PolinaC
1

votes
0

answer
6

Views

Can IntelliJ be configured to hit a breakpoint in a Java class that is loaded at runtime through reflection?

I have a Java class that is being loaded at runtime through reflection for a Kafka Streams application, configured with passing the name of the class as a String, like this: streamsConfig.put(StreamsConfig.DEFAULT_TIMESTAMP_EXTRACTOR_CLASS_CONFIG, 'com.company.data.kstreams.Processor.MediaTimestampE...
mjuarez
1

votes
3

answer
1.7k

Views

Java remote debugging, eclipse can't stay connected

I have an issue when I try to remote debug via eclipse. These are the arguments I use: -Xdebug -agentlib:jdwp=transport=dt_socket,server=y,suspend=n,address=4044 I also tried setting the address to 0.0.0.0:4044, using this: -Xrunjdwp:transport=dt_socket,server=y,suspend=n,address=4044 I have tried a...
marko
3

votes
4

answer
207

Views

How do I know the exact command that raised exception?

Related question on SO (by myself earlier today): Why does error traceback show edited script instead of what actually ran? Now I know why it happens, then I want to now how I can deal with it. I see some questions like How do I debug efficiently with spyder in Python? and How do I print debug mes...
Taegyung
1

votes
2

answer
1.5k

Views

Remote Debugging with JPDA won't connect to Tomcat through eclipse when using Docker-Compose

I'm very new to Docker so this could be something simple I'm doing wrong. With all the solutions out there I've been able to get remote debugging working with eclipse when using 'Docker run' to launch the Tomcat container. docker run -it --rm -e JPDA_ADDRESS=8000 -e JPDA_TRANSPORT=dt_socket -p 8888:...
Olmstov
1

votes
1

answer
99

Views

how to know a c program's stack overflows?

i am simulating a problem(3d Ising Model) in c but when the problem size gets larger the program stop and the below error appears : Process finished with exit code 139 (interrupted by signal 11: SIGSEGV) in the program I have a recursive function that does all the works, i suspect that the error is...
mehrdad
1

votes
3

answer
35

Views

How do I restore usual workflow after a breakpoint in Eclipse?

I have a breakpoint for debugging. But let's say, I don't need it on the first occurence, but I want Eclipse to pause the next time the breakpoint is reached. How do I do this? How do I skip it?
Bobby
1

votes
2

answer
85

Views

How to watch local variables with Emacs built-in debugger on Common LISP?

I'm writing Common LISP code with sbcl and slime on my iMac. I can call Emacs built-in debugger by inserting (break) between code lines or calling with (step) function. Below is a step of debugging procedure. Restarts: 0: [STEP-CONTINUE] Resume normal execution 1: [STEP-OUT] Resume stepping after re...
imgnpoints
1

votes
1

answer
49

Views

Save call stack [duplicate]

This question already has an answer here: How to print the current Stack Trace in .NET without any exception? 6 answers Short version: Is there a way to somehow save the current call stack and store it for later? Context: This issue seems like it would be so common that I might just be missing the...
Pedro Caetano
1

votes
3

answer
91

Views

Visual Studio loses ability to attach to Unity, why?

I'm using Visual Studio with Unity. In general in VS I can simply click 'Attach to Unity' and it will build the solution and indeed attach to Unity. Sometimes, however, a project loses the 'ability' to do so, what means that suddenly clicking the button will only build the solution and not attach to...
Benjamin Zach
1

votes
0

answer
95

Views

Pycharm debugger skips breakpoints after specific line of code - why?

I'm new to pycharm and so far my impression of the debugger is that it's marverlous! However, it behaves weird in my code and I cannot figure out what is going wrong. If I set a breakpoint to these lines of code and then press 'step over' or 'step into my code' it runs until the end ignoring all ot...
Svenno Nito
0

votes
0

answer
2

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 want to see all elements in the third column in the debug mode. I tried to type A[][2] or A[:][2] or...
Lingxiao Wang
1

votes
0

answer
19

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 issue. I have cleaned my app, deleted my screens, and started fresh, so it's not an outlet problem. I...
Kyle Davis
1

votes
0

answer
22

Views

Debug remote devices with Chromium

I try to debug my app generated with ionic, but when open the chromium debugger, I have the follow problem... Debugger have a bug ?? My configuration Browser version: Version 63.0.3239.108 (Developer Build) (64-bit) My os: Linux Arch Please let me know if to anyone have the same problem and how to...
CATCODER PHP
1

votes
1

answer
505

Views

How to debug the Nashorn JavaScript use the IntelliJ IDEA debugger ?

I have clone this project. https://github.com/winterbe/java8-tutorial/ And I want to debug the project's Nashorn JavaScript file use the IntelliJ IDEA debugger. I run the Nashorn9.java in debug model, and I want to add a breakpoint at nashorn9.js. But it is not working. When I run the debug model, t...
FishGel
1

votes
1

answer
806

Views

Debugging Topshelf Service

I am using Topshelf to create a Windows service which uses the chrome Selenium driver to manipulate and parse various webpages. While the service code runs fine from a normal (NetCore2) console test application, there's a problem when it runs under the Win32 console app that Topshelf requires. Unfor...
Mark Olbert
1

votes
3

answer
49

Views

Camera not working?

I was developing an app just to open camera and capture images. I am new to this and I cannot understand what am I doing wrong. Please someone help me with this, I am posting my java code and XML code here: Java code package com.chiragsharmaengineer.linked_layouts; import android.app.Activity; impor...
S. Chirag
1

votes
0

answer
89

Views

Different behaviors of executable when executing with GDB and with the shell

In my attempt to understand buffer overflows I have written the sample C/C++ program. The program asks you for a password and then displays two different messages depending on if you get the password correct or not. I opened the code up and disassembled it to find a point that I could jump to so I c...
Matthew
1

votes
0

answer
55

Views

Trace 32 How to retrieve user input asynchronously

I'm running a script and whenever a breakpoint is hit, a subroutine will be executed, printing/retrieving a buffer's information, asynchronously. This process will be performed for an indefinite time, until a user wants to stop this process. Is there a way to present the user with a dialog/message a...
Jorge Sequeira
1

votes
1

answer
430

Views

LLDB - Qt missing debug info

I've installed Qt 5.10.0 through the macOS installer. I'm currently running OSX El Capitan 10.11.6. Whenever I try to load any of the Qt libraries/ frameworks, I get the following warning: warning: (x86_64) /Users/randomuser/Qt/5.10.0/clang_64/lib/QtWidgets.framework/QtWidgets empty dSYM file detect...
vejmartin
1

votes
1

answer
37

Views

Eclipse cdt debugger only step through dessembly code and not my own

Recently I asked a question and one of the guys here really tore into me about not using a debugger. Someone else was nice and suggested Visual Studio C++. I have been trying to work with it and it was really nice until I tried more complex code. So I decided to try eclipse since that is the IDE I...
Mae Davis
1

votes
0

answer
67

Views

Why's Google Maps showing me users incorrect location?

According to my code, Google Maps shows that the location of the user (denoted by a blue marker) is in San Francisco (I'm in NYC). Why isn't it showing the current location of the user? I didn't include any manual coordinates in latitude and longitude parts of my code. It's all dynamic. How com...
nomchomp
1

votes
1

answer
208

Views

Meaning of GDB “info frame” output?

What is the difference between the two Instruction pointers (eip)? What is the goal of each one? Frame info image: There are two different eip?
Marcus
1

votes
1

answer
123

Views

Is there any tooling to profile “hanging” RxJS subscriptions in Angular 5 apps?

In Angular apps, especially when NGRX is used, we have a lot of RxJS subscriptions. And yes, we (developers) may forget to unsubscribe. Is there any tooling that can help profile the issue?
alvipeo
1

votes
1

answer
247

Views

Qt Creator does not show locals while debugging with gdb on Windows

I've recently run into the issue of not being able to use the debug view of Qt Creator. No Local Variables would show up and Expression Evaluators only work to some extent. I've created this tiny C program to demonstrate the issue, though it happened in a standard Qt App as well. #include int main(...
Binary
1

votes
2

answer
500

Views

Visual Studio 2017 outputting older build versions in bin/debug folder

When I build a C# program (this has been going on for several different solutions/projects I have been working on) in Visual Studio 2017, the new, updated code will build and run in debug mode (and run correctly). However, the application that Visual Studio has been outputting when I build/debug the...
foreevermore
1

votes
1

answer
224

Views

Is there opportunity to debug http request in RubyMine?

Appear problem when I try to debug http response with default Ruby lib Net::HTTP Example. I have such piece of code url = URI.parse('http://nibbler.silktide.com/') # any http resource req = Net::HTTP.get_response(url) # the same situation with get method of the Net::HTTP module p req I set breakpoin...
user2267897
1

votes
2

answer
545

Views

debug not working for rest method PUT using postman rest client

I have two Uri's POST : http://localhost:8080/applications/2851/involved-parties/1/contacts PUT : http://localhost:8080/applications/2851/involved-parties/1/contacts I am trying to debug methods,I have added breakpoint for both methods at starting, started server in debug mode. while sending json r...
kiran rathod
1

votes
1

answer
290

Views

inspecting cordova android app per usb with chrome devtools results in blank screen

Debugging a Cordova webview running in Chrome on Android (Pixel / Android 8.1) via the USB connection in Chrome desktop browser (65.0.3319.0 (Offizieller Build) canary (64-Bit)) is not working. Attempting to inspect web pages running on the mobile device results in a blank page. When I inspect the b...
Helmut Heiß
1

votes
0

answer
28

Views

How do I find out where this CSS-value comes from?

I am trying to use bootstrap tooltip for something it probably wasn't designed for, namely the possibility of showing a quite large text. I have managed to tweek it to my needs, with one exception. The width of the text box shown is way too narrow, unless i set it to a fixed width, but then it looks...
KjetilNordin
1

votes
1

answer
56

Views

How to print the name of a recursive lambda template?

For debug purpose, would it be possible to use any macro to print the name of a recursively defined lambda inside a class template function? For example template class X{ public: X(); //rest of declaration private: //rest of declaration }; template X::X(){ functionsomeLambda = [] (){ //recursive d...
user9196120
1

votes
2

answer
1k

Views

Check if string is balanced with brackets

I have to write Python supplementary function: def find(searched, open) for function which recursively checks if the input string has balanced brackets: def balanced (text): #.... return find(text, None)[1] I can't use stack. I have to include option, when input string is empty, when the bracket...
ljaniec
1

votes
1

answer
602

Views

Using SEGGER SystemView with STM32

Currently I'm developing a project with FreeRTOS on a STM32L476VGT. Until now I've been debugging with Ozone(SEGGER) and J-Link (Edu and Ultra+) Now I would like to 'debug' or record system event using SystemView (SEGGER), but it's not working. first of all some of the configurations I think there a...
taquionbcn
1

votes
0

answer
120

Views

Debug an running exe app that packed by zeit/pkg

Can I attach a debugger to a running NodeJS application that packed by pkg? My new company has a packed console app without source code. It's worked fine in last year, but it has some small exception in this year. It seems some exceptions happened because the old developer did not cover or hardcode...
NSK
1

votes
0

answer
267

Views

Guide to use valgrind with wine

Requirement: Remove memory-leaks for windows application(x86 and x64) by using wine and valgrind. After lot of seraching on net and also looking into official page for this Valgrind and wine, i am still unable to fine proper steps/ guide to this. Constaraints involved : 1. OS type (Centos, RHEL... I...
0x6900
1

votes
0

answer
443

Views

Eclipse Oxygen lags very often at very simple tasks

For a while my eclipse is hanging at many points and freezes for some seconds even at the most simplest tasks. For example when i'm adding/removing breakpoints it takes like 5 seconds until i can continue doing my work no matter if i'm actually debugging or not. So because of actions like this, whic...
flixe
1

votes
0

answer
65

Views

Debugging expressions

Using statements in code is quite easy to put breakpoints and debug: bool GetBoolean() { return true; // or false } int result; if (GetBoolean()) result = 1; else result = 2; a breakpoint can just be added to any line to see the results. With expressions (conditional operator in particular) the code...
DWorkAccount

View additional questions