Programming :: Using Switches - Allow Program To Run In Debug Mode
Nov 23, 2010
I want to allow my program to be able to run in DEBUG mode. i.e., I want to be able to run ./program, and I want to be able to run ./program -v to show all the debug output. How do I go about setting up something like that?
View 3 Replies
ADVERTISEMENT
Oct 8, 2014
I have Windows 7==>Oracle VB==>Ubuntu==>Gfortran. How do I debug fortran programs? I would like to have a step by step debugging.
View 1 Replies
View Related
Jun 4, 2011
Is it possible to debug remotely a java program with ddd (data display debugger)?
View 2 Replies
View Related
Jan 9, 2010
I purchased a foot pedal [URL], which I want to use as a substitute for the ALT, CTRL and SHIFT key (Mainly in my texteditor, Emacs, where these modifiers are used a lot for commands). So instead of pressing ALT+x I want to press the left pedal + x. However, instead of going into the command mode it just types x to the screen. If I keep the pedal pressed, and type another x, it switches into command mode, like it should have done right away. The device seems to use HID, and lsusb gives:
Bus 005 Device 004: ID 1130:660c Tenx Technology, Inc.
Is there a way, how I can change the behaviour of the device?
View 3 Replies
View Related
May 1, 2011
Upgraded to Ubuntu 11.04 which trashed my useful desktop.
Synapticed gnome and changed login preferences to ubuntu classic which basically fixed the desktop except...
If I open a program, say LibreOffice or firefox it opens correctly.
If I move the window to the second screen, it switches to fullscreen mode.
If I click on the resize button, then it opens correctly, but on the first screen
View 1 Replies
View Related
Jun 2, 2010
changed terminal into raw modecfmakeraw(&termios);After that terminal no more captures CTRL+CIs there a way to enable CTRL+C (to terminate the program) while still have RAW mode?
View 3 Replies
View Related
Jun 26, 2010
When I leave my computer and later return, depending on how long I've been away, I find the screen-saver running, the screen turned off, or the computer suspended, i get the error as specified below on a black screen:
Quote:
Ubuntu is running in low-graphics mode.
Your screen, graphics card, and input device settings could not be detected correctly. You will need to configure these yourself.
The message gives several options. Despite some experimentals, The only solution which I have found is to reboot and everything becomes fine as before.
View 9 Replies
View Related
Jun 18, 2011
For whatever reason, the "Ctrl-Alt-Fn" sequence has no effect on one of my Ubuntu machines; the sequence is interpreted as ordinary input. I need to get the system to a console because I'm trying to do a dist-upgrade and that's going to bounce gdm etc.
Is there some command-line tool that can be used to switch consoles? I have some vague distant memory of that being possible.
(I'm running Ubunty Jaunty at the moment. Yes I know it's old; I'm trying to march forward.)
View 2 Replies
View Related
Jan 31, 2011
I have a problem with Maverick. Whenever I change my volume or brightness from the keyboard, as soon as the indicator goes down, my mouse automatically switches to drag mode. I have to switch to open terminal by keyboard shortcuts and reboot
View 2 Replies
View Related
Jun 10, 2009
i installed freeradius 2.1.3 on fedora 10 and want to use it with ieee802.1x using peap. when i run command to start radius service in debug mode the following output come
[Code]....
View 4 Replies
View Related
Feb 13, 2011
I need debug my program and I need something like a virtual microphone. I would like device "microphone" where I can put sound file and this file will be input for microphone stream. And in application I get this stream from this "microphone"
File -> Microphone -> Application
is it possible?
something like bash command should by very very useful:
aplay --device=mic my_microphone.wav to run a microphone stream
View 2 Replies
View Related
Sep 4, 2010
My GUI seems to be stuck in some sort of debug mode. If a battery or network notification pops up in the upper right hand corner of my screen...there are lines thru the popup (sort of looks like nine slicing), and what looks like a debug message...."<urgencyLevel> - report incorrect urgency?". I'm not sure what might have been done in the system to turn these on....I know they weren't always there.
View 3 Replies
View Related
Jun 10, 2010
I have done some searching around the internet and this site, but I haven't found a good way to count the context switches on a thread in a c++ program I am running. I need to know if it get swapped off of a CPU for correct timing.
View 4 Replies
View Related
Apr 22, 2011
As a part of a school project I am working on monitoring context switches. I'm working on redhat 8.0, kernel version 2.4.18-14 and for some reason I keep getting unclassified reasons which causing context switches from a process to itself. I am trying to determine each context switch, what was the reason that causes it, whether time slice ended, or yielded, or went for waiting or returned from waiting or parameters changed or task ended to task forked or any possible reason.
But all the time I find that the only switches that I cannot determine the reason happens from a process to itself, all this unrecognized switches from process to itself happens only on interactive processes, and sometimes the need_resched flag is on and sometimes is off. What could possibly cause a context switch from a process to itself? Can a returning of a process with a lower (higher by number) priority from waiting cause a context switch?
View 2 Replies
View Related
Mar 15, 2011
I have a coredump file which gives stacktrace. But I dont know which thread executed or any task switches happened before a crash happened from a given thread. is there anyway to find out.
View 3 Replies
View Related
Aug 28, 2009
I had been working on a CPP code for sometime now, without being aware that some parts of its code, especially security related were not being compiled. Problem was like my product did not work for SSL mode. On analysis, I found that some part of CPP codes inside a switch(ENABLE_SSL_LIBRARY)were not getting compiled at all. And also that this gets set when we do newgrp crypto command on the box. This left me without lots of doubts. I wanted to understand how these switches work and if this switch was propreitary to my code or something related to Linux.
My questions now are:
1. Switches like the one mentioned above, are they user defined, for my particular code or are they related to Linux/GCC or makefiles?
2.If a user can define such switches to control code compilation, then need to know the concepts/procedures behind it. How is it done ?
Kindly excuse if these are very very basic. But since I could not get proper stuffs on google, I thought I should ask some experts here who could either explain me or point me to appropriate resources (links of articles / tutorials)
View 1 Replies
View Related
Apr 21, 2009
downloaded a project from the Internet and tried to debug it, but run into a problem. i managed to copy the part where it build the executable I need. The problem is that I cannot use gdb with this executable for some reason. However, running the it without gdb seems to work ok. Below is what it shows when compiling and link.
Compile:
Code:
gcc -g -DPACKAGE_NAME="" -DPACKAGE_TARNAME="" -DPACKAGE_VERSION=""
-DPACKAGE_STRING="" -DPACKAGE_BUGREPORT="" -DPACKAGE="sphinx3"
-DVERSION="0.7" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1 -DHAVE_SYS_STAT_H=1
[code]....
View 9 Replies
View Related
Mar 3, 2011
I have a html page that calls a c cgi script on my local server; how can i view the html page and debug the script at the same time? if i would give some input in a form on the html page then i want to debug the script with the entered data. my gues was with w3m and gdb but i don't know how its done...
View 9 Replies
View Related
Jun 14, 2010
It seems GDB can not expand or show the macro expansion or its definition under the GDB debug to while debugging the program. how to debug macros under GDB?
Sample Code:
#include <stdio.h>
#include "sample.h"
#define M 42
#define ADD(x) (M + x)
[code]....
View 7 Replies
View Related
Jan 31, 2010
I want debug kernel.bin
this file is boot in floppy
View 1 Replies
View Related
Nov 15, 2010
I have developed an application written in C, Linux well tested and stripped off all the symbols for final deployment. When I'm testing the stripped off version of the application in the field. Here the application has got crashed. Now how to debug the application.
View 6 Replies
View Related
Jun 16, 2010
debug my code as root in eclipse without starting the eclipse as root? I searched on the net, and seems like it is not possible.
View 4 Replies
View Related
Aug 25, 2009
is there a way to debug my library files from DDD? Basically a way to pass the paths to DDD so I can view the source etc. I'm having a segmentation nightmare, which only crops up about every 10 or so starts, I know it's in one file in a library. I could move the source file into my general code to debug, but am sure there's a way in DDD.
View 1 Replies
View Related
Jun 26, 2011
I am trying to debug the dsdv.cc file of ns-2. I have attached the screenshots of the results.I added ns-2.34 as project in eclipse then opened dsdv.cc file. given a ".TCL" file as argument it runs ok. as in screenshot-1 but when i want to debug it gives the error "No Source Available for main at 0x83b269f" shown in screenshot-2.
View 1 Replies
View Related
Jun 21, 2010
I'm using ubuntu 9.04;I want to debug my project that comprises mutiple files.When I cd to the project folder and run the command "gdb rawusb_test",Once I tried the flag -g and changed the line "$(CC) -o $(PROG) $(OBJS) $(LIBS)" to "$(CC) -g -o $(PROG) $(OBJS) $(LIBS)", it didn't work!I want to trace the program "rawusb_test" line by line and see the parameters' values!Could you help me how I should debug this project or how the Makefile should be changed?
View 8 Replies
View Related
Nov 11, 2009
Now I have a project which include three directories /bin, /inc and /src. All of header files (*.h) are included in /inc and all of source(*.c) files are stored in /src, i.e. a.c, b.c, c.c..., the final generated executable file will locate in /bin. after compling with makefile, all of obj files will be generated in /src/obj like a.o, b.o, c.o, d....! Moreover an final.exe executable file will be generated in the /bin directory. Now if I want to debug it with GDB, how can I do it?
View 1 Replies
View Related
Apr 26, 2010
I want to know how can I debug shell scripts.Many a times I found while installing a software or a package some where some link to some file or dependency is broken.Some one suggested me use of -vx in the beginning I want to know what are the other methods to debug shell scripts.
View 1 Replies
View Related
Nov 11, 2010
I'm trying to debug the NTLM LWP module.
I added use LWP:ebug qw(+); to the top of my script, but I can't see any change.
I'm on Windows if that makes a difference (installed activeperl).
I know there are probably a million reasons why something perl won't work, but can anyone help me get debug logging showing up?
View 1 Replies
View Related
May 6, 2010
After doing make I have the following questions? How can I see that the build is with debug information? What shall I do to build the release version? Can I have the release version in one directory and the debug version in another? I mean, when I change from debug to release, make will not overwrite the debug version.
View 7 Replies
View Related
Oct 17, 2010
I am trying to debug a src code that I download from the Internet.It is built with libtool. I am able to debug it with gdb, but i cannot debug it with eclipse.
View 3 Replies
View Related