I need major help. My program will compile but when I run it I get a segmentation fault. I don't know how to run a debugger with multiple files. Could someone please find when this error occurs? My project is due in 2 hours.
nizbit
0
Junior Poster in Training
Recommended Answers
Jump to PostThat's an awful lot to expect someone to look at, and get you a response in your timeframe. Does the seg fault message give you any indication of where the problem lies? What have you done to track it down?
Jump to PostI know its a lot but I don't know really where to start troubleshooting it. The seg fault does not give me any info where the error is.
Then you need to either use a debugger and put breakpoints in and see what lines are reached before the program seg …
Jump to PostWell perhaps you could begin by using a debugger?
Do you even know what one is? I only ask because sometimes knowledge about even the existance of such things comes as a surprise to some people.Or even telling us the sequence of commands which leads to a problem.
…
Jump to Post> but for only a single file-not multiple files.
How is this any different?
Open your file of choice, click in the margin at the place you want to stop, and add breakpoint.
Or if you're using a command line debugger, then perhaps
stop in classname::method
All 15 Replies
vmanes
1,165
Posting Virtuoso
nizbit
0
Junior Poster in Training
VernonDozier
2,218
Posting Expert
Featured Poster
Salem
5,138
Posting Sage
nizbit
0
Junior Poster in Training
Salem
5,138
Posting Sage
nizbit
0
Junior Poster in Training
Salem
5,138
Posting Sage
nizbit
0
Junior Poster in Training
Salem
5,138
Posting Sage
nizbit
0
Junior Poster in Training
Salem
5,138
Posting Sage
nizbit
0
Junior Poster in Training
VernonDozier
2,218
Posting Expert
Featured Poster
Insomniac119
0
Newbie Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.