Questions tagged [debug]

The tag has no usage guidance.

Filter by
Sorted by
Tagged with
6
votes
0answers
335 views

Do YOU know how to find a seg fault?? Advice to new programmers

I have noticed a rash of questions lately that are essentially this: "My code has a segmentation fault. The code compiles, many tests pass, but I can't figure out the problem!" If this is you, then ...
4
votes
3answers
1k views

Debug button missing and GNU debugger not working

I'm using Chrome. I have never seen the Debug button but only the Run button on the top line in my online IDE. How to make the Debug button out? Every time I press the Run button, the bottom terminal ...
4
votes
2answers
522 views

Debugger hangs on “listening on port 15470”

Hello I am doing trying to use the debugger in cs50 IDE. However it will always hang here on "listening to port 15470" after I click the "run" button. I have no idea what the problem is or how to ...
1
vote
1answer
178 views

I don't have the C GDB Debugger runner option. How do I get it?

In the screenshot below, I have no "C GDB Debugging" runner option. I tried to make my own runner for the debugger by following these steps, but when I try to run it I have the same issue as this ...
1
vote
1answer
45 views

debug icon not showing on the top of cs50 ide

My cs50 IDE is not showing the debug icon or the run icon on the top. Can you tell me how to make it appear.
1
vote
1answer
237 views

Debugging in Problem Set 7: CS50 Finance

I am in the process of completing Problem Set 7 and I would like to know if there is a better way to debug than using print statements.
1
vote
0answers
50 views

how can we step through pset8 in debug mode?

So when I run my code in flask I get no infowindows. I wondered what this does in the distribution code: // open info window (if not already open) info.open(map, marker); How can I debug in ...
1
vote
3answers
3k views

Debugger not working in cs50 online ide

Hi I am doing cs50 and for the past few days the debugger on the ide is not responding. Whenever i press debug with breakpoints provided it just stops at the following point: What should I do? Edit: ...
0
votes
1answer
91 views

Program and debug50 different results

I'm trying to do pset3/tideman. My question is, why when I run program, I get different result (matrix[m]) than run with debug50? void lock_pairs(void) { for (int i = 0; i < pair_count; i++) ...
0
votes
3answers
319 views

pset5 - Load - Debug Error - “Process received SIGSEGV: Segmentation fault”

I commented out my check function so it must be something here in load. From what I've read I think the issue is dealing with pointers and fgetc. That or my first for loop is looping weird. granted I'...
0
votes
1answer
32 views

speller- tried using printf to debug -printf not working

I'm sure I'll soon feel stupid to ask this question. I'm trying to use printf() to see how far along my code got. But it wasn't printing anything even when I added printf to the first line in main(). ...
0
votes
1answer
9 views

Need help debugging

Here is the error im getting: ./Rule.h:17:12: error: use of undeclared identifier 'Predicate' vector preds; Here is my code for Rule.h: #ifndef RULE_H #define RULE_H #include <vector> #...
0
votes
2answers
230 views

PSET7 : “application raised an exception (see log for details)” Theres a log?

Pset7 works perfectly: db writing , back-end calculations, front-end rendering - you name it. But check50, via cs50.me, complains: Wheres this log ? There's no guidance as to which line, of which ...
0
votes
1answer
55 views

CS50 PSET5 Trie Check- Some words register as mispelt

G'day, I've been working away at pset5 and finally got it to compile with no memory leaks and runs fine, but does not pick up on all words. I've been using the debugger in combination with the cat.txt ...
0
votes
1answer
76 views

Puzzled by Pset3 - find less confortable- sorting output

I just checked my code for Pset3 finds less confortable and it works but I am puzzled by some of the printf I put to debug my code. I put this just at the end of my sorting function: printf("%i %...
0
votes
1answer
8k views

How do you pass arguments into GDB argv[1] argv[2]?

I need some clarifications on how GDB works in the IDE environment on cloud9 Is there two things different types of debuggers that the IDE environment? Debugger, through debug command input which ...
0
votes
1answer
167 views

Pset6: How to debug load() and indexes()?

Every time comes the debugging part with the GDB, I feel quite lost. To a novice like me, GDB is not so handy compared with debuggers in IDEs of other languages and the graphic debugger is not working....
0
votes
1answer
55 views

HELP ME!! CS50 pset1 credit.c says INVALID but when I debug it says AMEX?

#include <stdio.h> #include <cs50.h> int main(void) { long long cc; //get user input for cc do { cc = get_long_long("Number: "); } while (cc <= 0); /...
0
votes
1answer
266 views

c:30:25: error: invalid operands to binary expression ('char *' and 'string' (aka 'char *'))

Hey guys could someone advice me on the flaws in the following line of code. I'm visited by the following error message: c:30:25: error: invalid operands to binary expression ('char *' and '...
0
votes
1answer
36 views

How to know the position of the cursor when debugging? PSET4 RESIZE

I am trying to debug PSET4 resize. Is there a way to track the position of the cursor in both the infile and the outfile when debugging (by number or something)? If not, is there a better way to ...
0
votes
1answer
231 views

CS50/Pset3/Music, timed out while waiting for program to exit, How to debug?

Something goind wrong in the frequency function and i don't know how to debug with these many files of the programm to allocate the problem. i've made a seprate test file to just test the frequency ...
0
votes
1answer
205 views

How to debug find.c?

I'm just working on find.c and helpers.c. My sort is not completely working yet and I'm trying to debug the program but the debugger is not working. Is there anything special I have to do since find....
0
votes
0answers
441 views

How to debug Crack based on ten passwords given?

In crack since there is no check50 the assignment suggests inputting the 10 hashed passwords at the top of the assignment, but when I try that only 7/10 successfully return a password. Since the rest ...
0
votes
1answer
412 views

How to debug fseek not working as intended

I am pretty certain that my problem in this problem is my fseek in my vertical resizing for loop. Basically my idea is to print out horizontally resized code once per scan line always, then depending ...
0
votes
1answer
101 views

pset 1 hacker credit

#include<stdio.h> // have four spaces before code lines #include<cs50.h> // this will insert them in the code block #include<math.h> bool checksum(long long num); bool visa(long ...
0
votes
1answer
156 views

How to debug pset8 search.php?

Hello I have trouble to do any debuging in search.php pset8. In previous problems there where always some way to print my variables and figure out what was wrong with my querys och logics. However in ...
0
votes
1answer
120 views

Pset6: load() and indexes(), not standard errors

My first two functions passed the check50, but the last two report not standard errors. Am I on the right track? Could anyone give me some hints? Thank you! load() bool load(FILE* file, BYTE** ...