6
votes
Debugger button missing
I've just found that if you right click on the tab for the program, the menu list includes an option 'Run this program', this opens a new terminal and runs the program using the debugger.
4
votes
Accepted
Debugger button missing
EDIT September '16
The latest version of the IDE (69-ish) has a new utility called debug50.
I can't find a way to get the button back, but you can run the GUI debugger this way:
In View uncheck ...
3
votes
Accepted
I don't have the C GDB Debugger runner option. How do I get it?
CS50 has now released debug50 a more stable version than its predecessor. You can also manually use gdb through the command-line with; gdb OBJECT-FILE (where OBJECT-FILE is a vigenere.o, or just ...
3
votes
gdb vs debug50 for debugging
Here is a CS50 short on gdb. debug50 is essentially a GUI wrapper for gdb. As Doug mentions, if you are not in a CS50 IDE environment, it would be the goto for debugging.
valgrind will basically ...
2
votes
Accepted
Debugging a program using command line arguments
See the image below:
Note the command window. After I ran "Debug" once, I had to add the command-line argument "bacon" in order to get vigenere to run. I can simply edit the command box with any ...
2
votes
Problem with CS50 IDE Debugger
The graphical debugger seems to have problems with code that opens other files. You should use the command line gdb instead in these instances.
2
votes
Debugging Webserver in C
GDB should be a very useful tool for debugging server. The waiting is the hardest part. Remember server will be waiting for input from a browser/curl to process something or waiting for gdb to ...
2
votes
Accepted
Pset3 Music random interger stored
That's because you're trying to store the character at the 1st index of a char array (string), node, into an int variable directly, without converting it into an int first. So the 5 in your example is ...
2
votes
Debugger not working properly for pset4?
You need to pass GDB the complete path to your program, THEN whichever arguments you need.
Correct format: pset4/bmp/copy.c smiley.bmp copy.bmp
1
vote
How to write command line arguments when debugging Codes in VScode
You don't need input while running here, you need a commandline argument. Look you have an empty args array in your launch config:
"args": [],
You just need to fill in card.raw :)
"...
1
vote
Accepted
1
vote
gdb vs debug50 for debugging
It depends on who you ask you will tell you one thing or another, as far as their differences, apart from the obvious, at an elementary level they do practically the same thing. Regarding my ...
1
vote
Accepted
Pset4 Recover: Able to recover all images except first!
Ok, I did find out the answer to my problem, I allocated size 6 to array filename but in the sprintf() function, memory has to be allocated to the "%" operator and the null value as the copied string ...
1
vote
CS50 IDE debugger, where is it?
The IDE has changed since some videos were made. debug50 is the new debugger tool that was introduced in the fall. There is also a section on debug50 in the week2 lecture at around 22 minutes.
1
vote
I dont have dubug tab on my cs50 ide, how can i debug.Here is the screen shot
The lastest version of the IDE has a new debug50 utility.
1
vote
Accepted
I dont have dubug tab on my cs50 ide, how can i debug.Here is the screen shot
Google "cs50 gdb youtube" and you will find two helpful videos explaining how to use the debugger from the command line. It's much more reliable, and has the added benefit of being a tool that will ...
1
vote
CS50 IDE Debugger; not running as expected
I had the same problem. The only way I've been able to use the graphical interface is to run debug50 ./programname from the terminal.
An alternative would be to use gdb from the terminal which there'...
1
vote
CS50 IDE Debugger; not running as expected
I think this is a common problem, you are not the first to post this issue and I have had similar issues. I never really fixed the problem but it resolved itself after some time.
You can still use ...
1
vote
Debugger hangs on "listening on port 15470"
I had the same problem. What seems to be working for me is running debug50 ./programname from the terminal.
1
vote
Debugger hangs on "listening on port 15470"
Google "cs50 gdb youtube" and you will find two helpful videos explaining how to use the debugger from the command line. It's much more reliable, and has the added benefit of being a tool that will ...
1
vote
debugger hanging in PSET5
Here is a sure fire way to duplicate your result:
dictionary.c and speller.c open in editor
click Debug from dictionary.c
Say "Oops!" [optional]
switch to speller.c tab and click Debug
Watch CPU ...
1
vote
Accepted
How to pipe PRNg into find.c debug GUI?
I don't think anyone has figured that one out. It may not be possible, but I would be happy for someone to prove me wrong.
OTOH, why do you want to work with so much input data in the debugger? ...
1
vote
pset4 debugger stopping
If you are having problems with the graphical debugger in the CS50 IDE (as I did!) then you should learn to use GDB from the command line, as others have suggested. There are two reasons to do this: ...
1
vote
Accepted
Debugger hangs on "Remote debugging from host 127.0.0.1"
I found this happens if you launch the debugger from dictionary.c instead of speller.c. I also found a couple of remedies.
First: set your breakpoints in dictionary.c then launch Debug from speller....
Only top scored, non community-wiki answers of a minimum length are eligible
Related Tags
debugger × 28cs50-ide × 6
pset4 × 4
ide × 4
pset3 × 3
c × 3
gdb × 3
debug × 3
debugging × 3
run × 3
recover × 2
cs50x × 2
error × 2
hangs × 2
pset6 × 1
segmentation-fault × 1
server × 1
find × 1
pset3-helper.c × 1
debug50 × 1
crypt × 1
pset4-speller × 1
library × 1
linker × 1
generate × 1