Today I am gonna introduce you to wonderful online tool which all C/C++ programmers would love it.
Onlinegdb.com
It allows you to compiler and debug C/C++ program using gdb online.
Yes you heard it right, not only compilation but now you can use gdb debugger online for debugging program.
Here is story how I found it and why I needed something like onlinegdb.com
Yesterday I was solving problem on hackerrank.com
I kind of like coding in online editor provided by hackerrank. As its very easy to use and test. After reading problem statement I started coding in C++ language, my preferred language for online coding competitions.
It took around 20 mins to finish coding, and now its time to test my code against problem's testcases. The moment I pressed Test button within few seconds I got compilation errors, as expected during my first trial.
Then It took my another 5 mins to remove compilation errors from code and finally my code was tested against.
And unfortunately It gave me segmentation fault.
Grrrr!!! The worst programming error which I hate a lot.
Because when segmentation fault occurs in program, you can't tell exactly from which location segmentation fault occurred. Unless you go through with your source code and do some experiments and boundary checks for data access, etc.
I wished that If I could debug such hard to debug errors online itself, similar online compiler. And I knew that gdb if well known debugger for debugging C and C++ programs. So I searched for 'online gdb debugger' on goggle.
https://www.google.co.in/search?q=online+gdb+debugger
And I found this cool debugger online on onlinegdb.com
Let me give you brief info about onlinegdb.com
You can compile your C/C++ code online like ideone.com
But it also lets you debug code using gdb debugger.
Here is screenshot of onlinegdb.com
Well thats all for now.
you can also use onlinegdb.com next time you face any kind of untraceable errors with your code.
Onlinegdb.com
It allows you to compiler and debug C/C++ program using gdb online.
Yes you heard it right, not only compilation but now you can use gdb debugger online for debugging program.
Here is story how I found it and why I needed something like onlinegdb.com
Yesterday I was solving problem on hackerrank.com
I kind of like coding in online editor provided by hackerrank. As its very easy to use and test. After reading problem statement I started coding in C++ language, my preferred language for online coding competitions.
It took around 20 mins to finish coding, and now its time to test my code against problem's testcases. The moment I pressed Test button within few seconds I got compilation errors, as expected during my first trial.
Then It took my another 5 mins to remove compilation errors from code and finally my code was tested against.
And unfortunately It gave me segmentation fault.
Grrrr!!! The worst programming error which I hate a lot.
Because when segmentation fault occurs in program, you can't tell exactly from which location segmentation fault occurred. Unless you go through with your source code and do some experiments and boundary checks for data access, etc.
I wished that If I could debug such hard to debug errors online itself, similar online compiler. And I knew that gdb if well known debugger for debugging C and C++ programs. So I searched for 'online gdb debugger' on goggle.
https://www.google.co.in/search?q=online+gdb+debugger
And I found this cool debugger online on onlinegdb.com
Let me give you brief info about onlinegdb.com
You can compile your C/C++ code online like ideone.com
But it also lets you debug code using gdb debugger.
Here is screenshot of onlinegdb.com
No comments:
Post a Comment