Debugging is a bad smell - how to persuade them?

I've been working on a project that can't be described as 'small' anymore (40+ months), with a team that can't be defined as 'small' anymore (~30 people). We've been using Agile/Scrum (1) practices all along, and a healthy dose of TDD. I'm not sure if I picked this up from Agile or TDD, more likely a combination of the two, but I'm now clearly in the camp of people that looks at debugging as a bad smell. By 'debugging' I'm not referring to the more abstract concept of figuring out what might be

Debugging gcc switches to enable analysis for warnings

In gcc, certain warnings require optimization to be enabled. For example: int foo() { int x; return x; } In order to detect the uninitialized variable, -O must be passed. $ gcc -W -Wall -c test.c $ gcc -W -Wall -c test.c -O test.c: In function ‘foo’: test.c:3: warning: ‘x’ is used uninitialized in this function However, this can interfere with debugging. Is there a way to enable just the analysis phases needed for warnings (and not just this particular warning, but as many as possi

Debugging How do I to add gdb to cygwin?

How do I add gdb to cygwin? I have downloaded gdb tar package for cygwin from sourceforge. When extracting it there were many files, so I pasted the gdb.exe file from the package into the bin folder of cygwin. However, it's not working.

Debugging How can you debug Lego Mindstorms programs?

Is there any way to add any sort of debugging to a Lego Mindstorms program, when using the NXT drag-and-drop environment? It would be nice to be able to monitor the status of the various sensors, but even knowing what step in the program was running would be nice.

Debugging windbg break on file open

I have a .net application which I don't have source too. I'm interested in determining what files this application is accessing. I thought that a debugger would be a good way to do this. I work only in the linux world and know nothing about windows debuggers. I feel like there should be a way to do this with windbg, I know how I would go about it with gdb but not with windbg. Any help or advice is much appreciated.

How to read/decode temporary function names of list comprehension in Erlang when debugging

When debugging a module (e.g. foo) with list comprehensions temporary function names e.g. foo:'-loop/4-lc$^2/1-3-' can be found in trace output or error messages. If many list comprehensions are in a module its often hard to find out which one is running. How can the function name be interpreted? What are the meaning of the call parameters of these functions? What is the meaning of the return value?

Debugging How to setup/using GDB 7 on MacOS Lion with MacPorts

I run into trouble using GDB 7 (7.3) on MacOS Lion. What I did was: $ sudo port install gdb After that GDB was installed to: /opt/local/bin/ggdb But when I try to execute GDB I always receive the following at start: BFD: unable to read unknown load command 0x24 BFD: unable to read unknown load command 0x26 BFD: unable to read unknown load command 0x24 BFD: unable to read unknown load command 0x26 Further it tells me: Reading symbols from ... done. but when I try to get for example a

Debugging Calculate mapping of exported function location in memory

I'm debugging an application using disassember (currently VS disassembly window), mainly because I don't have the source code/symbols of DLL I'm debugging. What I'm trying to find out is which function in the DLL is calling my code. I suspect (and want to check) if it is an exported function. Using the debugger I can see that the memory location I'm being called from is "0x52CCCF94". So from what I understand, if I can tell where each exported function is being mapped to, I can tell which expo

Debugging How to install Windows Web Services API (WWSAPI) in a Server w/o Internet Access

I'm trying to use Visual Studio 2012 Remote Debugger in a Server with Windows Server 2008 R2 SP1 x64 located in a DMZ, in a Development Environment. This server doesn't access to the Internet directly but through a Firewall. So, I downloaded the Remote Tools for Visual Studio 2012 from my workstation, and copy it to the Server, install it and everything is ok. Well, when I started the Remote Debugger Configuration Wizard, and it try to install the Windows Web Service API, it fails and shows the

Debugging Is valgrind preventing a segfault I want to debug from occurring?

I want to determine what's causing a segfault, and I'm trying to use valgrind to do this. https://gist.github.com/4349869 is a gist where I'm getting a segfault when I run something without valgrind, but I don't get a segfault when I use valgrind. (I've repeated this several times, with the same result) Does this mean that the bug is a heisenbug that won't occur when I use valgrind, and therefore valgrind isn't any use here?

Debugging Error when trying to debug in Visual Studio 2012

When I try to run "Start Debugging" I get the error: "Unable to launch the configured Visual Studio Development Web server. Unable to start debugging. Operation not supported. Unknown error: 0x80040d10. [OK]" Click "OK". Again I run "Start Debugging"... but now opens "ASP.NET Development Server - Port 1809" but now I get the error: "Unable to attach to application 'WebDev.WebServer20.EXE' (PID: 6592) usign 'GUSTAVO-PC'. Operation not supported. Unknown error: 0x80040d10. Do you want to conti

Debugging Debug gradle jettyRun in IntelliJ

I run Jetty from the command line with: export GRADLE_OPTS="-Xdebug -Xrunjdwp:transport=dt_socket,address=9999,server=y,suspend=n" gradle jettyRun and see: Listening for transport dt_socket at address: 9999 ... then in IntelliJ Idea (Ultimate 12.1.3) I create a new remote debug configuration with all defaults, changing only the port to 9999. When I start (debug) using the remote configuration, I see: Connected to the target VM, address: 'localhost:9999', transport: 'socket' ... whi

Debugging Compiler error : The program '[10216] ConsoleApplication1.exe' has exited with code -1073741701 (0xc000007b)

I'm trying the OpenCV library for my thesis. I already applied the steps given by http://opencv-srf.blogspot.com/2013/05/installing-configuring-opencv-with-vs.html My problem is that after building successfully I really think that the code should run properly. Please tell me the problem. Thanks :) Code: #include "stdafx.h" #include "opencv2/highgui/highgui.hpp" #include <iostream> using namespace cv; using namespace std; int main( int argc, const char** argv ) { Mat img(500, 1000,

Debugging What is the meaning of Karma runner log times

I've got a very simple question which I've tried to find out but without satisfactory results. Example is underneath: INFO [karma]: Karma server started at http://localhost:9876/ INFO [launcher]: Starting browser Chrome INFO [launcher]: Starting browser Firefox INFO [Chrome 28.0 (Linux)]: Connected on socket id MIsxYm-yXOtkIlbXrkr4 INFO [Chrome 28.0 (Linux)]: Connected on socket id Ek6biR3iiKgej2a-rkr5 INFO [Firefox 21.0 (Linux)]: Connected on socket id OcDqEq-VZ5o7tCjNrkr6 Chrome 28.0 (Linux)

Debugging Enable Kernel Debuggin in Windows Server 2008 R2 Standard

I'm trying to enable kernel debugging in Windows Server 2008 R2 Standard (running in Hyper-V on Windows Server 2012 R2): bcdedit /dbgsettings 1394 channel:32 bcdedit /debug ON shutdown /r /f /t 0 But when I run in WinDbg: File -> Kernel Debug -> Local -> Ok I see message box: --------------------------- WinDbg:6.12.0002.633 AMD64 --------------------------- The system does not support local kernel debugging. Local kernel debugging requires Windows XP, Administrative privileges, and

Debugging How does gdb set software breakpoints in shared library functions?

I know that software breakpoints in an executable file can work through replacing some assembler instruction at the desired place with another one, which cause interrupt. So debugger can stop execution exactly at this place and replace this instruction with original one and ask user about what to do the next or call some commands and etc. But code of such executable file is not used by another programs and has only one copy in memory. How can software breakpoints work with a shared libraries? F

Debugging debug.log in CakePHP without stacktrace

I log values of variables into debug.log using: $var = 'Hello World'; debugger::log($var); in my /app/tmp/logs/debug.log there is the whole stacktrace for that log: 2014-03-24 20:47:42 Debug: UserController::create() - APP\Controller\UserController.php, line 21 ReflectionMethod::invokeArgs() - [internal], line ?? Controller::invokeAction() - CORE\Cake\Controller\Controller.php, line 490 Dispatcher::_invoke() - CORE\Cake\Routing\Dispatcher.php, line 185 Dispatcher::dispatch() - CORE\Cake\Rou

Debugging Is this a hardware or Software issue?

I'm using Atmel Studio 6.1 and an Arduino Uno board with an Atmega328P microcontroller. Included below is my code and a picture of my hardware. I can't figure out if this is a hardware or software issue... All LEDs start off. When the button is pressed, it is supposed to change to a determined pattern. Pushing the button again results in a different pattern being displayed. I can't use C and I haven't been able to use real time debugging since I don't have JTAG or some other debugging supported

Debugging changing cakephp debug() html

The CakePHP framework executes the debug function by placing HTML on the view layer. I have implemented a new CSS but the HTML from the debug doesn't work so well with the CSS. How can I change cake's default HTML to export customer HTML when the debug is executed?

Debugging Zos cobol with RDz

My intetion is to debug the called cobol program aswel. But not sure how to keep a break point to go inside the called cobol program. At the moment i am able to debugg the main cobol program and control just goes over the called copbol program.Thanks

Debugging break when any address is assigned a value within a certain range

I am trying to debug an issue in lldb where I have some memory location that is getting updated to point into a location of memory that it should not be. I know that if anything points outside of a certain range of memory, then we are going to have an issue. Is it possible to set something similar to a watchpoint such that execution breaks if any address gets updated to point outside a particular range? Perhaps there is a way to do this with a python script that I can then import into lldb?

Debugging Launch Intel debugger (idb) in parallel mode with MPICH and input parameters file

I would like to launch Intel debugger idb in parallel mode with MPICH mpiexec and an input parameters textfile required by the program executable. Launching program in normal production mode: mpiexec -np 4 prog -f params.in where prog is the name of the executable -f is a switch understood by the program and params.in is the name of the input parameters file. My best take so far is: mpiexec -np 4 xterm -e idb prog This works without the input parameters file, but as soon as I supply the

Debugging CMFCColorDialog not working in MFC Property Page as Release, OK as Debug

The title pretty much explains it. Here's the function to display the ColorDialog when a button is clicked: void CMyPP::OnBnClickedButtonCol() { CMFCColorDialog dlg(m_text_colour); if (dlg.DoModal() == IDOK) { m_text_colour = dlg.GetColor(); } } In the release build nothing happens when the button is clicked. I can't see any difference in the VS 2008 options between debug and release to explain it. I think CMFCColorDialog is from the MFC feature pack but the res

Debugging Trick to quickly find file & line number throwing an error in Go?

In my journey with go discovered that there are no stacktraces. so whenever something breaks, all we get an simple string error message without any information where is this is coming from. This is in stark contrast with other languages where I am used to seing detailed stacktraces For example, below is the error message from apex $ cat event.json | apex invoke --logs webhook ⨯ error parsing response: json: cannot unmarshal array into Go value of type map[s

Debugging VS2015 Community - Debug Classic ASP pages / Ignore Compile Errors

So I'm a lucky boy, I've been tasked with upgrading the development environment but not the code of a monster classic ASP product. It has been developed over several years and contains huge amounts of superfluous code in. In order to modernise the development environment I'm targeting the IDE and moving away from FrontPage (yes, I know!); I've created an empty .Net project in VS2015 Community edition, manually added the legacy classic ASP code. The advantage is by using VSnn it can be linked

Debugging I want to enable debug messages on bluez

I am actually trying to figure out where the DBG("") prints are going when I do a music stream using bluez to my headset. So basically I want to know where all the bluez debug messages are getting printed, be it any kind of bluetooth operation. ex: scan, inquiry , connect and so on . Hopefully someone can help me with this . Thanks in advance .

Debugging Fixing my basic Lua battle system

This is a problem that I cannot seem to fix. I am a very new programmer and I love to code, however, I need help with this extremely basic battle system that I'm sure all you won't mind giving me. It isn't good looking or clean, so any tips on how I could shorten my code will also be greatly appreciated. local function battle() -- All of this is 100% unfinished, by the way n = math.random(10) + 1 -- Everybody's HP, enemy HP randomly generated number from 10 to 100 enemyhp = 10*n herohp =

elisp debugging, show backtrace when function fails

I'd like to see the backtrace of error when I run this code. (make-network-process :name (dbgp-make-listner-name 10004) :server 1 :service 10004 :family 'ipv4 :nowait t :noquery t :filter 'dbgp-comint-setup :sentinel 'dbgp-listener-sentinel :log 'dbgp-listener-log) https://github.com/gregsexton/ob-ipython/issue

Debugging How to get physical page in Solaris 11

I am using mdb on Solaris 11. I have opened a file by using " tail -f file_name" command in another ssh session. I got the pid of tail command and Vnode of the file opened by tail command. After getting the Vnode, I fired "walk page" on this file. Unfortunately, I am not getting any pages in walk. How to get Virtual Pages and Physical pages?

Debugging Elm reactor stuck with error message

I tried to install the seanhess/elm-style package, but could not because it isn't compatible with my version of Elm, 0.18.0. This is fine, but now when I visit any .elm file (even if it's empty), reactor in the browser returns this error: "Could not find package seanhess/elm-style. Maybe your elm-stuff/ directory has been corrupted? You can usually fix stuff like this by deleting elm-stuff/ and rebuilding your project." I tried restarting reactor, and using new .elm files, even trying to cre

Debugging Debugger configuration in GoGland

I want to debug my go application when I send request using curl command. Currently my request is handled by the binary I have. What I want that when I send request using curl command request should be handled by the code I have not by the binary. I did not find any documentation about it, only found this thiswhich is still unanswered. @Zoyd did you found a way to configure it?

`Use managed compatibility mode` or `Enable native code debugging`?

I write .net-plugins for Autodesk Revit. Revit is unmanaged application. So, for successfully debugging I am to set into ON either for Use managed compatibility mode option or for Enable native code debugging option (or for both of them). Otherwise debugging cannot be launched. The first of them is applied for all projects. The second of them is used for each project individually. What the difference of these options? I don't understand what they do. What option it is more correct to use in

Debugging How to debug tensorboard code

I would like to extend tensorboard with new features. For that I need a debugger for debugging the front-end. I have tried Visual Studio core debugger but it does not find the source-map. Is it possible to debug the code? What is the recommended IDE for tensorboard development?

Debugging on Dolphin browser for android

How could I inspect element on Dolphin browser? Few months ago, I debugged by chrome dev tools, but it's not working from now. Plz, help me to debug on Dolphin with Chrome dev tools or FireFox. Thanks

Debugging How does GDB know if a value is signed?

I was curious how GDB determines whether a value is signed or unsigned. I have created a small program that stores a signed negative value into eax. I have run it through the debugger, and I noticed that it interprets the value at eax to be negative. How is this so? I have also tried this without generating debug info. Here is my short program: section .text global _start _start: nop mov eax, [doubleWord] mov ebx, 0 mov eax, 1 int 0x80 section .data doubleWord dd -52

Debugging 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 asking him to signal when the script finishes. And if the user clicks on the "Finish execution" button, the script execution ends. Thanks a lot for the help

Problems uploading and debugging binaries on LPC4088 because of Boot ROM

I am trying to upload this simple assembly program: .global _start .text reset: b _start undefined: b undefined software_interrupt: b software_interrupt prefetch_abort: b prefetch_abort data_abort: b data_abort nop interrupt_request: b interrupt_request fast_interrupt_request: b fast_interrupt_request _start: mov r0, #0 mov r1, #1 increase: add r0, r0, r1 cmp r0, #10 bne increase

Debugging LLDB symbol dumps

I'm trying to understand the following symbol dump from the LLDB shell (lldb) target create --no-dependents '9.0/Symbols/Library/Application Support/WatchKit/WK' Current executable set to '9.0/Symbols/Library/Application Support/WatchKit/WK' (armv7k). (lldb) image list [ 0] 675ED1EB-BAA0-3453-B7B1-3E69310F40FD 0x00004000 9.0/Symbols/Library/Application Support/WatchKit/WK (lldb) image dump symtab Dumping symbol table for 1 modules. Symtab, file = 9.0/Symbols/Library/Application Support/WatchKi

Debugging Testbench in verilog produces errors saying real expression is being misused

When I run my testbench, it produces the error ERROR:HDLCompiler:480 - "/home/ise/FPGA/trapezoid/testbed.v" Line 31: Illegal context for real expression This is my first project in verilog, so I don't really know what's wrong. I'm trying to set up a simple testbunch like on page 10 of this for my code. The code with the UCF compiles just fine, so it must be something in the testbench. The testbench code is pretty similar to the code in the powerpoint, so I think it comes from my attempt to se

IntelliJ debugging - How to watch a variable throughout its lifecycle?

I'm working on a SpringBoot like service, and using IntelliJ idea. There are some objects that are instantiated at service startup and undergo numerous method calls in multiple classes throughout the lifecycle of each API call. With IntelliJ's debugging features, I can watch such a variable at any breakpoint, but is there a way to follow a variable's journey as it's passed around and watch all state mutations and method calls happening to it?

Debugging Xamarin.Forms not debuggable in release mode

I am trying to publish my Xamarin.Forms app to the play store and I am walking through the prep doc. The document says I should include the following code in the AssemblyInfo.cs file. #if DEBUG [assembly: Application(Debuggable=true)] #else [assembly: Application(Debuggable=false)] #endif I looked around but I can only find this file in my obj dirs which means it get's generated during the build. But not in my folder of my android project (the MyApp.Android\obj\debug or release dir) The com

Debugging How to fix Error: Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" }?

When making source code changes in main.rs (Rust), the changes are no longer recognized when I compile. When I try to debug I get: Error: Os { code: 1, kind: PermissionDenied, message: "Operation not permitted" } ? git source control is enabled Could this be caused by all my files being untracked in git? (wild guess) My launch .json file is: { // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, vi

Debugging What is a debugger and how can it help me diagnose problems?

This is intended to be a general-purpose question to assist new programmers who have a problem with a program, but do not know how to use a debugger to diagnose the cause of the problem. This question covers three classes of more specific question: When I run my program, it does not produce the output I expect for the input I gave it. When I run my program, it crashes and gives me a stack trace. I have examined the stack trace, but I still do not know the cause of the problem because the stack

  1    2   3   4   5   6  ... 下一页 最后一页 共 33 页