How to debug a C++ code


 
Thread Tools Search this Thread
Top Forums Programming How to debug a C++ code
# 1  
Old 04-06-2008
How to debug a C++ code

Hi,

I recently has a C++ code which only run on Fedora Platform.

I wanted to run debugging on these code as I came across some unexplainable
scenario output.

Can anyone suggest how could I use any debugger? I tried to use GNU GDB but then the code I am dealing now are involving multiple files background. So, I am not too sure how to debug in this matter.

I also thought of porting to Visual C++, but I am not so sure how to.

Please advise. Thanks..
Rgrds,
Jason
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. OS X (Apple)

Debug help

Hello, I was looking at kernel log's and found some parts what was "interesting" I previously started looking what has been going on in my computer because I had hacker attacks on my machine. Installed Avira & Little Snitch - softwares Previously my computer opened few folders what I have... (1 Reply)
Discussion started by: Scourge-
1 Replies

2. Programming

Debug Threads

How can we debug threaded application in Linux? If we have some doubt on a thread then how to set the context of that thread and how to check the values of variables for that thread? (1 Reply)
Discussion started by: rupeshkp728
1 Replies

3. Shell Programming and Scripting

If - then -else debug please

Can you help please ? ./get_df.sh: syntax error at line 13 : `then' unexpected #!/bin/ksh while : do PER=`df -h /DATA/ | nawk '{if (NR != 1) { sub (/%/,""); print $(NF-1)}}'` if then if] then mailx -s "FS over 90 per" me@company.com touch... (2 Replies)
Discussion started by: drbiloukos
2 Replies

4. Programming

Compile and debug Vim source code

Hi, I want to debug Vim source code with GDB but I can't get it. It seems to run without debugger. Here is my try. I have supressed output of most commands. Tell me if you need them. $ uname -mor 2.6.37-ARCH i686 GNU/Linux $ mkdir ~/birei && cd ~/birei $ wget... (2 Replies)
Discussion started by: birei
2 Replies

5. Shell Programming and Scripting

perl: a way to see a sub code in debug mode: perl -de 0 ?

Is there a way to see or print a sub code? Sometime a sub could be already defined, but in the debug mode (so, interactively) it could be already out of screen. So, I would think about a way to check if the sub is defined (just 'defined' is not a problem) and how it is defined. Also, if... (4 Replies)
Discussion started by: alex_5161
4 Replies

6. OS X (Apple)

How to debug signals

Hi, In our program, we are using SIGTERM and i tired to put break point in this function. But my debuger is unable to brake at that point. I am working on Mac X and using XCode. Thanks (0 Replies)
Discussion started by: Saurabh78
0 Replies

7. Programming

debug with eclipse

Hi, i' m using eclipse 3.2.2 on ubuntu. When i debug a program (C language) i cannot see any variable in the variables view. From the console (debug perspective) i can see the message: no source file named class.c. What is the problem??? thanks (1 Reply)
Discussion started by: littleboyblu
1 Replies

8. Programming

how to debug

i am new to solaris i have one module which contain certain header files and sub modules i want ot execute the module and c what the values are beeing assigned to variables is makefile only solution for this is there any editor to help it,so that i can c the flow of the program and also... (1 Reply)
Discussion started by: ramneek
1 Replies
Login or Register to Ask a Question
debug(3snmp)							     net-snmp							      debug(3snmp)

NAME
debug - Print out debugging information about the handler chain being called. Functions netsnmp_mib_handler * netsnmp_get_debug_handler (void) returns a debug handler that can be injected into a given handler chain. void debug_print_requests (netsnmp_request_info *requests) int netsnmp_debug_helper (netsnmp_mib_handler *handler, netsnmp_handler_registration *reginfo, netsnmp_agent_request_info *reqinfo, netsnmp_request_info *requests) void netsnmp_init_debug_helper (void) initializes the debug helper which then registers a debug handler as a run-time injectable handler for configuration file use. handler void netsnmp_init_serialize (void) initializes the serialize helper which then registers a serialize handler as a run-time injectable handler for configuration file use. void netsnmp_init_read_only_helper (void) initializes the read_only helper which then registers a read_only handler as a run-time injectable handler for configuration file use. void netsnmp_init_bulk_to_next_helper (void) initializes the bulk_to_next helper which then registers a bulk_to_next handler as a run-time injectable handler for configuration file use. void netsnmp_init_table_dataset (void) void netsnmp_init_stash_cache_helper (void) initializes the stash_cache helper which then registers a stash_cache handler as a run-time injectable handler for configuration file use. void netsnmp_init_helpers (void) call the initialization sequence for all handlers with init_ routines. Detailed Description Print out debugging information about the handler chain being called. This is a useful module for run-time debugging of requests as the pass this handler in a calling chain. All debugging output is done via the standard debugging routines with a token name of 'helper:debug', so use the -Dhelper:debug command line flag to see the output when running the snmpd demon. It's not recommended you compile this into a handler chain during compile time, but instead use the 'injectHandler' token in the snmpd.conf file (or similar) to add it to the chain later: injectHandler debug my_module_name to see an example output, try: injectHandler debug mibII/system and then run snmpwalk on the 'system' group. Function Documentation netsnmp_mib_handler* netsnmp_get_debug_handler (void) returns a debug handler that can be injected into a given handler chain. Definition at line 51 of file debug_handler.c. void netsnmp_init_bulk_to_next_helper (void) initializes the bulk_to_next helper which then registers a bulk_to_next handler as a run-time injectable handler for configuration file use. Definition at line 139 of file bulk_to_next.c. void netsnmp_init_debug_helper (void) initializes the debug helper which then registers a debug handler as a run-time injectable handler for configuration file use. Definition at line 155 of file debug_handler.c. void netsnmp_init_helpers (void) call the initialization sequence for all handlers with init_ routines. Definition at line 36 of file all_helpers.c. void netsnmp_init_read_only_helper (void) initializes the read_only helper which then registers a read_only handler as a run-time injectable handler for configuration file use. Definition at line 81 of file read_only.c. void netsnmp_init_serialize (void) initializes the serialize helper which then registers a serialize handler as a run-time injectable handler for configuration file use. Definition at line 93 of file serialize.c. void netsnmp_init_stash_cache_helper (void) initializes the stash_cache helper which then registers a stash_cache handler as a run-time injectable handler for configuration file use. Definition at line 238 of file stash_cache.c. Author Generated automatically by Doxygen for net-snmp from the source code. Version 5.4.3.pre1 23 May 2010 debug(3snmp)